Can you use 2 PWM's simultaneously?
Hello Everybody. I need to output 2 PWM's at 15KHZ (approx) simultaneously and control the duty cycles independently. The PBP manual says you can do it on PIC's with more than 1 channel. However, the PIC I want to use is 16F684. According to the datasheet, the PWM module is multiplexed among 4 possible outputs. There was also a note that changing something while the PWM is running will "cause a glitch". Will this PIC work? I need a small PIC with more than 1 PWM and if I can't use the 'F684, do I have to move up to a 28 pin PIC? Thank you.
bad chip ... for that purpose ( ! )
You DO need 2 CCP or ECCP modules ... an ECCP as the 684 just drive many pins from 1 CCP.
look for a PIC that has 2 CCP's ...
I think you need a 28 pin package ... at least. maybe 18F series in 18 pins: 18F1230/1330, if you find some !!!
Do a search on the µChip site for 2 CCP's ... you'll see what's possible.
Alain
see also here: http://melabs.picbasic.com/Scripts/perl/pic.pl