21.4.3 TMOD: Timer 0/1 Mode
Bit
7
6
5
4
3
2
1
0
Name
GATE1
CT1
T1M
GATE0
CT0
T0M
Access
RW
RW
RW
RW
RW
RW
Reset
0
0
0x0
0
0
0x0
SFR Page = 0x0; SFR Address: 0x89
Bit
Name
Reset
Access
Description
7
GATE1
0
RW
Timer 1 Gate Control.
Value
Name
Description
0
DISABLED
Timer 1 enabled when TR1 = 1 irrespective of INT1 logic level.
1
ENABLED
Timer 1 enabled only when TR1 = 1 and INT1 is active as defined by bit IN1PL in
register IT01CF.
6
CT1
0
RW
Counter/Timer 1 Select.
Value
Name
Description
0
TIMER
Timer Mode. Timer 1 increments on the clock defined by T1M in the CKCON0
register.
1
COUNTER
Counter Mode. Timer 1 increments on high-to-low transitions of an external pin
(T1).
5:4
T1M
0x0
RW
Timer 1 Mode Select.
These bits select the Timer 1 operation mode.
Value
Name
Description
0x0
MODE0
Mode 0, 13-bit Counter/Timer
0x1
MODE1
Mode 1, 16-bit Counter/Timer
0x2
MODE2
Mode 2, 8-bit Counter/Timer with Auto-Reload
0x3
MODE3
Mode 3, Timer 1 Inactive
3
GATE0
0
RW
Timer 0 Gate Control.
Value
Name
Description
0
DISABLED
Timer 0 enabled when TR0 = 1 irrespective of INT0 logic level.
1
ENABLED
Timer 0 enabled only when TR0 = 1 and INT0 is active as defined by bit IN0PL in
register IT01CF.
2
CT0
0
RW
Counter/Timer 0 Select.
Value
Name
Description
0
TIMER
Timer Mode. Timer 0 increments on the clock defined by T0M in the CKCON0
register.
1
COUNTER
Counter Mode. Timer 0 increments on high-to-low transitions of an external pin
(T0).
EFM8SB2 Reference Manual
Timers (Timer0, Timer1, Timer2, and Timer3)
silabs.com
| Smart. Connected. Energy-friendly.
Rev. 0.1 | 257