View previous topic :: View next topic |
Author |
Message |
andys
Joined: 23 Oct 2006 Posts: 175
|
pic with 4 pwm channels |
Posted: Fri May 04, 2012 7:32 pm |
|
|
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
|
|
Posted: Fri May 04, 2012 7:44 pm |
|
|
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
|
|
Posted: Fri May 04, 2012 8:15 pm |
|
|
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
|
|
Posted: Fri May 04, 2012 8:20 pm |
|
|
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
|
|
Posted: Fri May 04, 2012 8:34 pm |
|
|
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
|
|
Posted: Fri May 04, 2012 9:11 pm |
|
|
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
|
|
|
|