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 support@ccsinfo.com

dspic30f4011 pwm module

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



Joined: 21 Aug 2012
Posts: 47

View user's profile Send private message

dspic30f4011 pwm module
PostPosted: Tue Oct 23, 2012 1:44 am     Reply with quote

hi
I want to setup 6 channel pwm module on dspic30f4011.
I need a sample code.
Its code is not like with a pic16 and pic18f series.

Please help me.

thanks
Ttelmah



Joined: 11 Mar 2010
Posts: 19336

View user's profile Send private message

PostPosted: Tue Oct 23, 2012 3:28 am     Reply with quote

Be aware, that Microchip are very misleading in what they call 'channels'. They use 'channel' as a PWM output pin. This PIC _only_ has three PWM timing generators, and can only output three PWM signals at a time. The three signals can drive six pins.

Look at the example "EX_MOTOR_PWM.c", which shows how to setup this PWM.
In your case only pairs 1 to 3 can be used.

Best Wishes
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