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.
ON | GE | Timer1 Operation |
---|---|---|
1 | 1 | Count enabled |
1 | 0 | Always on |
0 | 1 | Off |
0 | 0 | Off |