English
Language : 

EFM32WG Datasheet, PDF (583/834 Pages) List of Unclassifed Manufacturers – The EFM32WG Wonder Gecko is the ideal choice for demanding 8-, 16-, and 32-bit energy sensitive applications.
...the world's most energy friendly microcontrollers
Figure 23.3. LETIMER One-shot Repeat State Machine
CNT = CNT - 1
CNT = TOP*
Wait for positive clock edge
NO
START
YES
NO
RUNNING
YES
If (STOP)
RUNNING = 0
Else if (START)
RUNNING = 1
End if
START = 0
STOP = 0
NO
CNT = = 0
YES
NO
REP0 = = 0
YES
CNT = = 0 NO
YES
REP0 < 2
NO
YES
CNT = CNT - 1
CNT = TOP*
If (! START)
REP0 = REP0 - 1
STOP = 1
REP0 = 0
TOP*
If (COMP0TOP)
TOP* = COMP0
Else
TOP* = 0xFFFF
TOP* *
If (! COMP0TOP)
TOP* * = 0xFFFF
Else if (COMPBUF)
TOP* * = COMP1
Else
TOP* * = COMP0
23.3.3.2.3 Buffered Mode
The Buffered repeat mode allows buffered timer operation. When started, the timer runs
LETIMERn_REP0 number of times. If LETIMERn_REP1 has been written since the last time it was used
and it is nonzero, LETIMERn_REP1 is then loaded into LETIMERn_REP0, and counting continues the
new number of times. The timer keeps going as long as LETIMERn_REP1 is updated with a nonzero
value before LETIMERn_REP0 is finished counting down.
If the timer is started when both LETIMERn_CNT and LETIMERn_REP0 are zero but LETIMERn_REP1
is non-zero, LETIMERn_REP1 is loaded into LETIMERn_REP0, and the counter counts the loaded
number of times. The state machine for the one-shot repeat mode is shown in Figure 23.3 (p. 583) .
Used in conjunction with a buffered top value, enabled by setting BUFTOP in LETIMERn_CTRL, the
buffered mode allows buffered values of both the top and repeat values of the timer, and the timer can
for instance be set to run 4 times with period 7 (top value 6), 6 times with period 200, then 3 times with
period 50.
A state machine for the buffered repeat mode is shown in Figure 23.4 (p. 584) . REP1USED shown in the
state machine is an internal variable that keeps track of whether the value in LETIMERn_REP1 has been
loaded into LETIMERn_REP0 or not. The purpose of this is that a value written to LETIMERn_REP1
should only be counted once. REP1USED is cleared whenever LETIMERn_REP1 is written.
2013-05-08 - Wonder Gecko Family - d0233_Rev0.50
583
www.energymicro.com