19.3.3.4 One-shot Mode
The one-shot repeat mode is the most basic repeat mode. In this mode, the repeat register LETIMERn_REP0 is decremented every
time the timer underflows, and the timer stops when LETIMERn_REP0 goes from 1 to 0. In this mode, the timer counts down LETI-
MERn_REP0 times, i.e. the timer underflows LETIMERn_REP0 times.
Note:
Note that write operations to LETIMERn_REP0 have priority over the timer decrement event. If LETIMERn_REP0 is assigned a new
value in the same cycle as a timer decrement event occurs, the timer decrement will not occur and the new value is assigned.
LETIMERn_REP0 can be written while the timer is running to allow the timer to run for longer periods at a time without stopping.
19.3 LETIMER One-shot Repeat State Machine on page 648
RUNNING
YES
CNT == 0
CNT = CNT - 1
NO
REP0 < 2
YES
NO
STOP = 1
REP0 = 0
CNT = TOP*
If (!START)
REP0 = REP0 - 1
If (STOP)
RUNNING = 0
Else if (START)
RUNNING = 1
End if
START = 0
STOP = 0
Wait for positive clock edge
YES
If (COMP0TOP)
TOP* = COMP0
Else
TOP* = 0xFFFF
TOP*
START
YES
CNT == 0
REP0 == 0
YES
CNT = CNT - 1
CNT = TOP*
NO
NO
YES
NO
NO
Figure 19.3. LETIMER One-shot Repeat State Machine
EFM32JG1 Reference Manual
LETIMER - Low Energy Timer
silabs.com
| Smart. Connected. Energy-friendly.
Preliminary Rev. 0.6 | 648