21.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.
21.3 LETIMER One-shot Repeat State Machine on page 718
CNT = CNT - 1
CNT = TOP*
silabs.com | Building a more connected world.
.
NO
NO
START
YES
NO
CNT == 0
YES
NO
REP0 == 0
YES
TOP*
If (COMP0TOP)
TOP* = COMP0
Else
TOP* = 0xFFFF
Figure 21.3. LETIMER One-shot Repeat State Machine
Wait for positive clock edge
RUNNING
YES
CNT == 0
NO
CNT = CNT - 1
YES
CNT = TOP*
REP0 < 2
NO
If (!START)
YES
STOP = 1
REP0 = 0
Reference Manual
LETIMER - Low Energy Timer
If (STOP)
RUNNING = 0
Else if (START)
RUNNING = 1
End if
START = 0
STOP = 0
REP0 = REP0 - 1
Rev. 1.1 | 718
Figure
Need help?
Do you have a question about the EFR32xG14 Wireless Gecko and is the answer not in the manual?
Questions and answers