What is the 8-bit PIC MCU Timer0 Peripheral?
The Timer0 module is an 8-bit timer/counter that is included with all 8-bit PIC® MCU devices. The Timer0 is more than just a timer. It has all the following features:
- 8-bit timer/counter register (TMR0)
- 8-bit prescaler (independent of Watchdog Timer)
- Programmable internal or external clock source
- Programmable external clock edge selection
- Interrupt on overflow
- TMR0 can be used to gate Timer1
Below is a simplified block diagram of the Timer0 module:

The Timer0 module can be used as an 8-bit timer. In timer mode, it is incremented on every instruction clock pulse unless a prescaler is used to reduce the speed. The TMR0 register can be written via software to preload it with a value. If the TMR0 register is written, the increment is inhibited for the following two instruction cycles. This can be adjusted in the prewritten value.