28X2 PWMOUT question

MikeGyver

Senior Member
28X PWMOUT question

So the 28X/X1/X2 chips have 2 PWM pins, can both of these be used at the same time at independent frequencies? (seperate internal timers from each other and the rest of the chip)
 
Last edited:

inglewoodpete

Senior Member
I use the 2 PWM ouputs on a 28x1 indepenently without any difficulties. Having said that, I haven't actually measured the output with a CRO or frequency meter.
 

hippy

Ex-Staff (retired)
Looking at the 16F886 datasheet (28X1), PWM1 and PWM2 both use Timer2 for PWM so I don't think they can run at independent frequencies only with independent duty, as per the PWMOUT description in PICAXE Manual 2.

This appears to also be the case with the 28X2.
 

BCJKiwi

Senior Member
On theX1/2s there is both pwmout and hpwm.
Hpwm can be used in single mode simultaneously with pwmout on portc1 leg12 (but not leg13 pwm2).

These are different and independent pwm systems. The manual is not clear on whether they use the same time base or not - should be easy to test.
 
Top