For 20mS timing, you can do it with a single interrupt with any of the 3 timers on the PIC16F887.
Timer0 - Set prescaler to 1:256
Timer1 - As shown above by Bruce
Timer2 - Set prescaler to 1:16, set postscaler to 1:16
For 20mS timing, you can do it with a single interrupt with any of the 3 timers on the PIC16F887.
Timer0 - Set prescaler to 1:256
Timer1 - As shown above by Bruce
Timer2 - Set prescaler to 1:16, set postscaler to 1:16
Bookmarks