5.12 TMR1 Setup

TMR1 is used as a time base to generate delay to distinguish between short and long button presses. See Setup, Main Loop and Idle Subroutine for details.
Table 5-11. TMR1 Setup
ParameterValue
Clock SourceMFINTOSC 31.25 kHz
Prescaler1:2
Enable SynchronizationYes
Timer Period500 ms (for single/double presses); 3 s (for long press)
Enable 16-bit ReadNo
Enable GateNo