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:
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 = (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 = (and) Falling ERS Edge |
— | EPOL = Inverted | |||||
10011 |
Any edge start |
ON = (and) Either ERS Edge |
— | Either ERS Edge | — |