albus
Junior Member level 2
I think this is an easy question but how can I set the interrupt to every 40 ms with 10 MHz crystal? I'm using PIC16F877.
I couldn't figure out the prescalar and postscalar. If everyone of them would be their maximum value which is 16, 255, 16. It would be equal to 26 ms or so I guess?
I couldn't figure out the prescalar and postscalar. If everyone of them would be their maximum value which is 16, 255, 16. It would be equal to 26 ms or so I guess?
Code:
setup_timer_2( T2_DIV_BY_x, y, z);