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

Power Pwm Module on DSPIC30F1010

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



Joined: 09 Dec 2008
Posts: 2

View user's profile Send private message

Power Pwm Module on DSPIC30F1010
PostPosted: Wed Feb 25, 2009 11:22 am     Reply with quote

Dear Sirs

I am currently trying to use the Power PWM Module on the DSPIC30F1010.To clock the device i am using a 15MHz external crystal in the HS w/PLL 32x mode. This should give me a frequency of 120Mhz (30MIPS), yes? I am using the standard edge aligned PWM mode and a attempting to generate a square at a fixed frequency of 50KHz(Period 20us). I have lots of experience using the standard PWM Output Capture Modules on 16 series pics but this is the first time i have attempted using the power pwm module on the DSPIC devices.

Could anyone tell me what formula i need to use to calculate the PTPER value that will enable me to obtain a switching frequency of 50KHz. Also how do i calculate the maximum duty cycle and the duty cycle resolution on the power pwm module? I know that on standard PICS the Max duty cycle = Fosc/(Fpwm*preScaler). Any help would be much appreciated.

Can someone also confirm that in order to clock the device in the manner stated above i should be using the PR_PLL fuse.

Thanks

Thanks
Ben
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