I have a question regardnig PWM in 16F785. How many PWM outputs does it have??
1 or 2. It says in deescription that it have 10 bit resolution 1 output channel on pin RC5. But later it says about TWO PHASE PWM output on pins RC1 and RC4. What it means TWO PHASE and which is the real PWM output. I'm thinking about using this chip for driving two motors and 10 bit ADC resolution is perfect for my project.
I would appreciate if somebody clear that thing for me.
Thanks in advance.
The chip you mention has one standard PWM output, it also has the separate special function of a two phase pwm output, I'm not heavily into motors but that seems a very specialised function and not something for the normal hobby dc motors - sure other can explain that is better detail than I can.
I assume you are looking to control dc brush motors, servos and steppers ?
In which case you might be better looking at more popular chips with good pwm features like the 18F2520 and 4520 or even the 18F1330 as detailed here
**broken link removed**
Also have a look at this board and its users guide for some ideas
**broken link removed**
Microchip also do several good beginners Application Notes on the use of dc motors.
Don't know exactly what you are trying to do, thats why I gave you a wide range to look at with those links - a lot of good info there.
You seem to be into C, so the larger memory 18F chips seem a good choice, there are many good all round chips that have 2 ccp/pwm - the 18F - 2520, 2525,4520, 4620 are readily available and have much more general and motor control program examples around for them.
Thanks wp100 and blueroomelectronics for your replys.
Yes i have some experience with C. I did few simpler projects with microcontrolers, but this is my first thing involving PWM. It'll be a double axis light tracker.
Since the informations in the 18F1330 datasheet are so ambiguous, at least for me, i'm gonna go with the device with clearer datasheet I will use the PIC18F2520.