5.9 TMR2/4 Setup

TMR2/4, along with CLC1/2, are used to debounce buttons. See Switch Debouncing for details.
Table 5-8. TMR2/4 Setup
ParameterValue
Control ModeMonostable
ERST2/T4CKIPPS pins (buttons connected to these pins)
Start/ResetStarts on rising/falling ERS edge
Clock SourceMFINTOSC 31.25 kHz
Prescaler1:4
Postscaler1:1
Timer Period30 ms