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

pic with 4 pwm channels

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



Joined: 23 Oct 2006
Posts: 175

View user's profile Send private message

pic with 4 pwm channels
PostPosted: Fri May 04, 2012 7:32 pm     Reply with quote

I would like to ask if there is any pic microcontroller with 4 pwm channels
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri May 04, 2012 7:44 pm     Reply with quote

Yes, every PIC ever made can have 4 PWM channels.
I've had 16C84s have 8 channels of PWM,piece of cake.

Though your question is really,really vague.It's all in the 'details'.
You need to supply more info of your project and scope. Desired update or frequency rate,resolution,speed,syncrhonous or async,interPWM delay,4 hardware PWM or will software PWM be good enough?
What's the project ? LEDs or motor control ? 4 axis robotic arm ? CNC controller? Again, the better you define the project's requirements the better we can answer it!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri May 04, 2012 8:15 pm     Reply with quote

Use this Microchip PIC selector page to answer that question:
http://www.microchip.com/maps/microcontroller.aspx

1. Set the Prefix to PIC16F or PIC18F.

2. Then set the "PWM Ch." to 4 (in the first column).

3. Wait a few seconds after you make each change, to allow the
screen to refresh with new data.

4. Then look at the list of PICs shown at the top. They will have at
least 4 PWM channels.

You can also run it again and set "MtrCtrl PWM Ch." to 4.
Some PICs have Motor Control PWM channels that can be used as
ordinary PWM.
andys



Joined: 23 Oct 2006
Posts: 175

View user's profile Send private message

PostPosted: Fri May 04, 2012 8:20 pm     Reply with quote

From my knowledge, a pic micro-controller needs to support CCP to have the ability to create pwm.

The most common for PIC micro-controller is to support 2 pwm channels.

The pic16c84 doesn't support any pwm channel.
andys



Joined: 23 Oct 2006
Posts: 175

View user's profile Send private message

PostPosted: Fri May 04, 2012 8:34 pm     Reply with quote

Thanks PCM programmer this is was exactly i need.

I found the pic which i need but MPLAB is not support the header file of the micro controller.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri May 04, 2012 9:11 pm     Reply with quote

It's true that you must have a version of MPLAB that supports the PIC.
(Just get the latest version). Also you must have a programmer that
supports the PIC. Finally, your version of the CCS compiler must also
support it.

You can use the 18F4431. It has 6 PWM channels:
http://www.ccsinfo.com/forum/viewtopic.php?t=37206
dezso



Joined: 04 Mar 2010
Posts: 102

View user's profile Send private message

Re: pic with 4 pwm channels
PostPosted: Fri May 04, 2012 9:27 pm     Reply with quote

andys wrote:
I would like to ask if there is any pic microcontroller with 4 pwm channels

Many !

http://www.microchip.com/productselector/MCUProductSelector.html
_________________
I'm could be wrong many time's, at least I know what I'm doing Smile
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