2 Using UTMR as Timer0 (TMR0)

TMR0 is a basic timer module that can operate in either 8-bit or 16-bit mode. In 8-bit mode, the value in TMR0L register is compared to the value in TMR0H register. When the two values match, TMR0L is reset and timer output toggles. In 16-bit mode, TMR0H:L together forms a 16-bit counter. The timer output toggles when the timer rolls over. The following table shows the UTMR settings needed to operate in different TMR0 modes:

Table 2-1. UTMR Settings for Different TMR0 Modes
TMR0 ModeUTMR Settings
STARTRESETSTOP
8-bitNone (ON = 1)At PR MatchNone
16-bitNone