Frequency = Fosc / (4 * (period+1) *postscale)? (Power PWM).
Posted: Mon Oct 12, 2009 4:19 am
Frequency = Fosc / (4 * (period+1) *postscale) in PIC C Help. I don't understand if i want a channel PPWM works with frequency from 10kHz - 20kHz then period and postcale = ???.
bungee-
Joined: 27 Jun 2007 Posts: 206
Posted: Mon Oct 12, 2009 6:22 am
uC with 8Mhz internal clock and 15kHz PWM would have setting: setup_timer_2(T2_DIV_BY_1,132,1);
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Oct 12, 2009 11:42 am
Here's an example of how to setup the Power PWM module in the 18F4431:
http://www.ccsinfo.com/forum/viewtopic.php?t=37206&start=2
By looking at the setup code, and the #use delay() frequency, and
the list of frequencies of the output signals, you should be able to
verify how the PWM frequency is calculated.
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