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

4 pwm output suggestions - dsPIC33

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



Joined: 27 Jun 2006
Posts: 39

View user's profile Send private message

4 pwm output suggestions - dsPIC33
PostPosted: Fri Jul 17, 2009 4:01 pm     Reply with quote

I am getting ready for a project that will require 4 pwm outputs. I have up to this point been using the PIC18 series MCU's.

I don't see any option for PWM outputs up to 4 in the pic18's, but do see that it is available with a device such as: dsPIC33FJ128MC202 (QFN) package.


I am wondering what exactly I am getting into with goint to this new device. To begin with it seems a few downfalls would be: It appears that if i go this this PIC33 pic i will have to complete redesigns, (due to different pinouts), if i wish to use it anywhere i would have been using the PIC18.

I am also wondering about learning curve in getting things to work code wise - how transparent is the coding between code that i already have written for the PIC18.

Can anyone recommend a good book that may be directed towards these dsPIC beasts. Any thoughts, opinons and suggestion would be greatly appreciated.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 17, 2009 4:28 pm     Reply with quote

Quote:
I don't see any option for PWM outputs up to 4 in the pic18's

18F4431 and related PICs have 6 channels. Sample code:
http://www.ccsinfo.com/forum/viewtopic.php?t=37206
Two channels are ordinary PWM. Four channels are power PWM, but
they can emulate ordinary PWM, as shown in the link above.

You can use this page to find more 18F PICs:
http://www.microchip.com/maps/microcontroller.aspx
Set the Prefix for "PIC18F". The two columns are called "From" and
"Thru", buts it's really "Min" and "Max".

Set the PWM Channels to 4, and leave the 2nd column at "All".
The results show 18F8520 and 18F6520. But when you look at
the data sheet for those PICs, it shows there are six PICs in that
series that have 5 PWM channels. So the "PIC Finder" page isn't
perfect.

Also, there's no direct way to search for "Total number of independent
PWM channels (of any type) in a PIC".

You can find PICs in the 18F4431 series by setting "PWM channels" to 2,
and "Motor Control" PWM channels to 4. Then it shows many more PICs,
including the 18F4431.
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