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:
| TMR0 Mode | UTMR Settings | ||
|---|---|---|---|
| START | RESET | STOP | |
| 8-bit | None (ON = 1) | At PR Match | None |
| 16-bit | None | ||
