20.1 Timer1 Operation

The Timer1 module is a 16-bit incrementing counter accessed through the TMRx register. Writes to TMRx directly update the counter. When used with an internal clock source, the module is a timer that increments on every instruction cycle. When used with an external clock source, the module can be used as either a timer or counter and increments on every selected edge of the external source.

Timer1 is enabled by configuring the ON and GE bits. Table 20-1 shows the possible Timer1 enable selections.

Table 20-1. Timer1 Enable Selections
ONGETimer1 Operation
11Count enabled
10Always on
01Off
00Off