...the world's most energy friendly microcontrollers
2016-04-28 - Giant Gecko Family - d0053_Rev1.20
586
www.silabs.com
• Interrupt on:
• Compare matches
• Timer underflow
• Repeat done
• Optionally runs during debug
• PRS Output
23.3 Functional Description
An overview of the LETIMER module is shown in Figure 23.1 (p. 586) . The LETIMER is a
16-bit down-counter with two compare registers, LETIMERn_COMP0 and LETIMERn_COMP1. The
LETIMERn_COMP0 register can optionally act as a top value for the counter. The repeat counter
LETIMERn_REP0 allows the timer to count a specified number of times before it stops. Both the
LETIMERn_COMP0 and LETIMERn_REP0 registers can be double buffered by the LETIMERn_COMP1
and LETIMERn_REP1 registers to allow continuous operation. The timer can generate a single pin
output, or two linked outputs.
Figure 23.1. LETIMER Overview
P
e
ri
p
h
e
ra
l
b
u
s
= 0
COMP1
(Top Buffer)
COMP0
(Top)
CNT (Count er)
REP0
(Repeat )
REP1
(Repeat Buffer)
= 1
LETIMER Cont rol
and St at us
Reload
Updat e
Updat e
St op
0
LFACLK
LETIMERn
St art
RTC event
SW
pin
ct rl
LETn_O0
Pulse
Cont rol
Underflow
(UF int errupt flag)
REP0 Zero
(REP0 int errupt flag)
Buffer
Writ t en
Repeat
load logic
pin
ct rl
LETn_O1
Pulse
Cont rol
Top load
logic
= 1
REP1 Zero
(REP1 int errupt flag)
=
=
COMP1 Mat ch
(COMP1 int errupt flag)
COMP0 Mat ch
(COMP0 int errupt flag)
PRS CH1
PRS CH0
23.3.1 Timer
The timer is started by setting command bit START in LETIMERn_CMD, and stopped by setting the
STOP command bit in the same register. RUNNING in LETIMERn_STATUS is set as long as the timer is
running. The timer can also be started on external signals, such as a compare match from the Real Time
Counter. If START and STOP are set at the same time, STOP has priority, and the timer will be stopped.
The timer value can be read using the LETIMERn_CNT register. The value cannot be written, but it
can be cleared by setting the CLEAR command bit in LETIMERn_CMD. If the CLEAR and START
commands are issued at the same time, the timer will be cleared, then start counting at the top value.
Summary of Contents for Giant Gecko EFM32GG
Page 842: ......