Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4928

PIC18F4550 pwm frequency

$
0
0
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?

Viewing all articles
Browse latest Browse all 4928

Trending Articles