...the world's most energy friendly microcontrollers
2016-04-28 - Giant Gecko Family - d0053_Rev1.20
527
www.silabs.com
However, if 2x Count Mode is enabled and the Compare/Capture channels are put in PWM mode, the
CC output is updated on both clock edges so prescaling the peripheral clock will result in incorrect result.
The prescaler is stopped and reset when the timer is stopped.
20.3.1.3.2 Compare/ Capture Channel 1 Input
The Timer can also be clocked by positive and/or negative edges on the Compare/Capture channel 1
input. This input can either come from the TIMn_CC1 pin or one of the PRS channels. The input signal
must not have a higher frequency than f
HFPERCLK
/3 when running from a pin input or a PRS input with
FILT enabled in TIMERn_CCx_CTRL. When running from PRS without FILT, the frequency can be as
high as f
HFPERCLK
. Note that when clocking the Timer from the same pulse that triggers a start (through
RISEA/FALLA in TIMERn_CTRL), the starting pulse will not update the Counter Value.
20.3.1.3.3 Underflow/Overflow from Neighboring Timer
All Timers are linked together (see Figure 20.4 (p. 527) ), allowing timers to count on overflow/underflow
from the lower numbered neighbouring timers to form a 32-bit or 48-bit timer. Note that all timers must
be set to same count direction and less significant timer(s) can only be set to count up or down.
Figure 20.4. TIMER Connections
TIMER0
TIMER1
TIMER2
Overflow
Overflow
Underflow
Underflow
20.3.1.4 One-Shot Mode
By default, the counter counts continuously until it is stopped. If the OSMEN bit is set in the
TIMERn_CTRL register, however, the counter is disabled by hardware on the first update event. Note
that when the counter is running with CC1 as clock source (0b01 in CLKSEL in TIMERn_CTRL) and
OSMEN is set, a CC1 capture event will not take place on the update event (CC1 rising edge) that stops
the Timer.
20.3.1.5 Top Value Buffer
The TIMERn_TOP register can be altered either by writing it directly or by writing to the TIMER_TOPB
(buffer) register. When writing to the buffer register the TIMERn_TOPB register will be written to
TIMERn_TOP on the next update event. Buffering ensures that the TOP value is not set below the
actual count value. The TOPBV flag in TIMERn_STATUS indicates whether the TIMERn_TOPB register
contains data that have not yet been written to the TIMERn_TOP register (see Figure 20.5 (p. 527) .
Figure 20.5. TIMER TOP Value Update Functionality
TOP
APB Writ e (TOPB)
TOPB
Load APB
Load APB
TOPBV
Set
Clear
APB Writ e (TOP)
Updat e event
Load TOPB
A
P
B
D
a
ta
Summary of Contents for Giant Gecko EFM32GG
Page 842: ......