Monostable Mode

In TMR2, Monostable modes are similar to One-Shot modes except that the ON bit is not cleared and the timer can be restarted by an external Reset event. This can be achieved in UTMR by stopping the counter at every PR match. The following table shows UTMR settings in different TMR2 Monostable modes:

Table 1. UTMR Settings for Different TMR2 Monostable Modes
TMR2 MODE[4:0] TMR2 Mode UTMR Settings
Output Operation Start Reset Stop START RESET STOP Other
10001

Edge-

Triggered Start

Rising edge start

ON = 1

(and)

Rising ERS Edge

ON = 0 (or) Next clock after PR match Rising ERS Edge At PR Match At PR Match
10010 Falling edge start

ON = 1

(and)

Falling ERS Edge

EPOL = Inverted
10011 Any edge start

ON = 1

(and)

Either ERS Edge

Either ERS Edge