As it is it generates 100Hz, now I need it to generate frequencies between 67 and 1750Hz.
Regards
Martin
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Mar 16, 2007 11:38 am
You can change the frequency by changing the LOOPCNT value,
and also the RTCC_DIV_x value.
If the width value = LOOPCNT, then you have 100% duty cycle.
So when you reduce the LOOPCNT value to increase the PWM
frequency, your resolution (number of available steps) will go down.
That's the trade-off.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum