19.4.9 TMR2CN0: Timer 2 Control 0
Bit
7
6
5
4
3
2
1
0
Name
TF2H
TF2L
TF2LEN
TF2CEN
T2SPLIT
TR2
T2XCLK
Access
RW
RW
RW
RW
RW
RW
RW
Reset
0
0
0
0
0
0
0x0
SFR Page = 0x0, 0x10; SFR Address: 0xC8 (bit-addressable)
Bit
Name
Reset
Access Description
7
TF2H
0
RW
Timer 2 High Byte Overflow Flag.
Set by hardware when the Timer 2 high byte overflows from 0xFF to 0x00. In 16-bit mode, this will occur when Timer 2
overflows from 0xFFFF to 0x0000. When the Timer 2 interrupt is enabled, setting this bit causes the CPU to vector to the
Timer 2 interrupt service routine. This bit must be cleared by firmware.
6
TF2L
0
RW
Timer 2 Low Byte Overflow Flag.
Set by hardware when the Timer 2 low byte overflows from 0xFF to 0x00. TF2L will be set when the low byte overflows
regardless of the Timer 2 mode. This bit must be cleared by firmware.
5
TF2LEN
0
RW
Timer 2 Low Byte Interrupt Enable.
When set to 1, this bit enables Timer 2 Low Byte interrupts. If Timer 2 interrupts are also enabled, an interrupt will be gen-
erated when the low byte of Timer 2 overflows.
4
TF2CEN
0
RW
Timer 2 Capture Enable.
When set to 1, this bit enables Timer 2 Capture Mode. If TF2CEN is set and Timer 2 interrupts are enabled, an interrupt will
be generated according to the capture source selected by the T2CSEL bits, and the current 16-bit timer value in
TMR2H:TMR2L will be copied to TMR2RLH:TMR2RLL.
3
T2SPLIT
0
RW
Timer 2 Split Mode Enable.
When this bit is set, Timer 2 operates as two 8-bit timers with auto-reload.
Value
Name
Description
0
16_BIT_RELOAD
Timer 2 operates in 16-bit auto-reload mode.
1
8_BIT_RELOAD
Timer 2 operates as two 8-bit auto-reload timers.
2
TR2
0
RW
Timer 2 Run Control.
Timer 2 is enabled by setting this bit to 1. In 8-bit mode, this bit enables/disables TMR2H only; TMR2L is always enabled in
split mode.
1:0
T2XCLK
0x0
RW
Timer 2 External Clock Select.
T2XCLK selects the external clock source for Timer 2. If Timer 2 is in 8-bit mode, T2XCLK selects the external oscillator
clock source for both timer bytes. However, the Timer 2 Clock Select bits (T2MH and T2ML) may still be used to select
between the external clock and the system clock for either timer.
Value
Name
Description
0x0
SYSCLK_DIV_12
Timer 2 clock is the system clock divided by 12.
0x1
EXTOSC_DIV_8
Timer 2 clock is the external oscillator divided by 8 (synchronized with
SYSCLK).
EFM8UB3 Reference Manual
Timers (Timer0, Timer1, Timer2, Timer3, Timer4, and Timer5)
silabs.com
| Building a more connected world.
Rev. 0.2 | 275