English
Language : 

EFM32WG Datasheet, PDF (581/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
LETIMERn_CNT becomes equal to their value. When LETIMERn_CNT becomes equal to the value
of LETIMERn_COMP0, the interrupt flag COMP0 in LETIMERn_IF is set, and when LETIMERn_CNT
becomes equal to the value of LETIMERn_COMP1, the interrupt flag COMP1 in LETIMERn_IF is set.
23.3.3 Top Value
If COMP0TOP in LETIMERn_CTRL is set, the value of LETIMERn_COMP0 acts as the top value of the
timer, and LETIMERn_COMP0 is loaded into LETIMERn_CNT on timer underflow. Else, the timer wraps
around to 0xFFFF. The underflow interrupt flag UF in LETIMERn_IF is set when the timer reaches zero.
23.3.3.1 Buffered Top Value
If BUFTOP in LETIMERn_CTRL is set, the value of LETIMERn_COMP0 is buffered by
LETIMERn_COMP1. In this mode, the value of LETIMERn_COMP1 is loaded into LETIMERn_COMP0
every time LETIMERn_REP0 is about to decrement to 0. This can for instance be used in conjunction
with the buffered repeat mode to generate continually changing output waveforms.
Write operations to LETIMERn_COMP0 have priority over buffer loads.
23.3.3.2 Repeat Modes
By default, the timer wraps around to the top value or 0xFFFF on each underflow, and continues counting.
The repeat counters can be used to get more control of the operation of the timer, including defining
the number of times the counter should wrap around. Four different repeat modes are available, see
Table 23.1 (p. 581) .
Table 23.1. LETIMER Repeat Modes
REPMODE
00
01
10
11
Mode
Free
One-shot
Buffered
Double
Description
The timer runs until it is stopped
The timer runs as long as
LETIMERn_REP0 != 0.
LETIMERn_REP0 is decremented at
each timer underflow.
The timer runs as long as
LETIMERn_REP0 != 0.
LETIMERn_REP0 is decremented
on each timer underflow. If
LETIMERn_REP1 has been written,
it is loaded into LETIMERn_REP0
when LETIMERn_REP0 is about to be
decremented to 0.
The timer runs as long as
LETIMERn_REP0 != 0 or
LETIMERn_REP1 != 0.
Both LETIMERn_REP0 and
LETIMERn_REP1 are decremented at
each timer underflow.
The interrupt flags REP0 and REP1 in LETIMERn_IF are set whenever LETIMERn_REP0 or
LETIMERn_REP1 are decremented to 0 respectively. REP0 is also set when the value of
LETIMERn_REP1 is loaded into LETIMERn_REP0 in buffered mode.
23.3.3.2.1 Free Mode
In the free running mode, the LETIMER acts as a regular timer, and the repeat counter is disabled.
When started, the timer runs until it is stopped using the STOP command bit in LETIMERn_CMD. A
state machine for this mode is shown in Figure 23.2 (p. 582) .
2013-05-08 - Wonder Gecko Family - d0233_Rev0.50
581
www.energymicro.com