English
Language : 

EFM32WG Datasheet, PDF (584/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.4. LETIMER Buffered Repeat State Machine
NO
NO
START
YES
Wait for positive clock edge
RUNNING
YES
If (STOP)
RUNNING = 0
Else if (START)
RUNNING = 1
End if
START = 0
STOP = 0
CNT = CNT - 1
CNT = TOP*
NO
CNT = = 0
YES
NO
REP0 = = 0
CNT = TOP* *
If (BUFTOP)
COMP0 = COMP1
NO
REP0 = REP1
REP1USED = 1
YES
REP1 = = 0
YES
CNT = = 0 NO
CNT = CNT - 1
YES
REP0 < 2
NO
YES
! REP1USED and ! REP1 ! = 0 YES
NO
CNT = TOP*
If (! START)
REP0 = REP0 - 1
CNT = TOP*
If (BUFTOP)
COMP0 = COMP1
REP0 = REP1
REP1USED = 1
STOP = 1
REP0 = 0
TOP*
If (COMP0TOP)
TOP* = COMP0
Else
TOP* = 0xFFFF
TOP* *
If (! COMP0TOP)
TOP* * = 0xFFFF
Else if (BUFTOP)
TOP* * = COMP1
Else
TOP* * = COMP0
23.3.3.2.4 Double Mode
The Double repeat mode works much like the one-shot repeat mode. The difference is that, where the
one-shot mode counts as long as LETIMERn_REP0 is larger than 0, the double mode counts as long as
either LETIMERn_REP0 or LETIMERn_REP1 is larger than 0. As an example, say LETIMERn_REP0
is 3 and LETIMERn_REP1 is 10 when the timer is started. If no further interaction is done with the
timer, LETIMERn_REP0 will now be decremented 3 times, and LETIMERn_REP1 will be decremented
10 times. The timer counts a total of 10 times, and LETIMERn_REP0 is 0 after the first three timer
underflows and stays at 0. LETIMERn_REP0 and LETIMERn_REP1 can be written at any time. After a
write to either of these, the timer is guaranteed to underflow at least the written number of times if the
timer is running. Use the Double repeat mode to generate output on both the LETIMER outputs at the
same time. The state machine for this repeat mode can be seen in Figure 23.5 (p. 585) .
2013-05-08 - Wonder Gecko Family - d0233_Rev0.50
584
www.energymicro.com