High-resolution timer (HRTIM) RM0440
860/2126 RM0440 Rev 4
Figure 188. Repetition rate versus HRTIM_REPxR content in continuous mode
The repetition counter can also be used when the counter is reset before reaching the
period value (variable frequency operation) either in continuous or in single-shot mode
(Figure 189 here-below). The reset causes the repetition counter to be decremented, at the
exception of the very first start following counter enable (TxCEN bit set).
Figure 189. Repetition counter behavior in single-shot mode
A reset or start event from the HRTIM_SCIN[3:1] source causes the repetition to be
decremented as any other reset. However, in SYNCIN-started single-shot mode
(SYNCSTRTx bit set in the HRTIM_TIMxCR register), the repetition counter is decremented
only on the 1st reset event following the period. Any subsequent reset does not alter the
repetition counter until the counter is re-started by a new request on HRTIM_SCIN[3:1]
inputs.
MS32262V1
Counter
PER
HRTIM_REPxR = 0
0*
REP
0*
REPREP event REP REP
PERPER
REP
HRTIM_REPxR = 1
HRTIM_REPxR = 2
* denotes repetition counter internal values (not readable, for explanation purpose only)
0* 0* 0*
0* 1* 1*
1* 0* 2* 0*
MS32263V1
Reset
Counter
PER
REP event
1*
0*
2* 1*
2*
* denotes repetition counter internal values (not readable, for explanation purpose only)
0*