terka
Advanced Member level 4
+lab +power +supply +project +pic
Hill
Look at this.
4 Mhz => 1 Mhz machine frequency => 1 us per instruccion. Using TMR0 overflow as interruption for determinate high time/low time, we have 255 cicle at 1 us => 255 us witdh pulse ==> fpwm=1/T = 1/255us => 3,921 Khz pwm......
But the question is....how does work the shift register to set the duty cicle value....
Bye
Hill
Look at this.
4 Mhz => 1 Mhz machine frequency => 1 us per instruccion. Using TMR0 overflow as interruption for determinate high time/low time, we have 255 cicle at 1 us => 255 us witdh pulse ==> fpwm=1/T = 1/255us => 3,921 Khz pwm......
But the question is....how does work the shift register to set the duty cicle value....
Bye