CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Frequency = Fosc / (4 * (period+1) *postscale)? (Power PWM).

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
nhamdtk4



Joined: 18 May 2009
Posts: 8
Location: Việt Nam

View user's profile Send private message

Frequency = Fosc / (4 * (period+1) *postscale)? (Power PWM).
PostPosted: Mon Oct 12, 2009 4:19 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Oct 12, 2009 6:22 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Oct 12, 2009 11:42 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group