Hello,
I read in the datasheet that the equation for the pwm period is PWM period = [(PR2 + 1) * 4 * Tosc * PrescalerTimer2].
I need a 120Hz frequency (8.3ms period), but it seems I can't reach it. I'm using Fosc=16MHz, and by my calculations, the highest pwm period I can achieve is 1.024ms. Is that correct? Is there any way I can have 120Hz pwm frequency with this Fosc?
I read in the datasheet that the equation for the pwm period is PWM period = [(PR2 + 1) * 4 * Tosc * PrescalerTimer2].
I need a 120Hz frequency (8.3ms period), but it seems I can't reach it. I'm using Fosc=16MHz, and by my calculations, the highest pwm period I can achieve is 1.024ms. Is that correct? Is there any way I can have 120Hz pwm frequency with this Fosc?