English
Language : 

C8051F326 Datasheet, PDF (134/140 Pages) List of Unclassifed Manufacturers – Full Speed USB, 16 kB Flash MCU Family
C8051F326/7
SFR Definition 14.2. TMOD: Timer Mode
R/W
GATE1
Bit7
R/W
Reserved
Bit6
R/W
T1M1
Bit5
R/W
T1M0
Bit4
R/W
GATE0
Bit3
R/W
Reserved
Bit2
R/W
T0M1
Bit1
R/W
T0M0
Bit0
Reset Value
00000000
SFR Address:
0x89
Bit7:
Bit6:
Bits5–4:
GATE1: Timer 1 Gate Control.
0: Timer 1 enabled when TR1 = 1 irrespective of /INT1 logic level. /INT1 is activated when
the internal oscillator resumes from a suspended state.
1: Timer 1 enabled only when TR1 = 1 AND /INT1 is active. /INT1 is activated every 2 low
frequency oscillator clock cycles. This is a rate of 40kHz.
Reserved. Read = 0b. Must write 0b.
T1M1-T1M0: Timer 1 Mode Select.
These bits select the Timer 1 operation mode.
T1M1
0
0
1
1
T1M0
0
1
0
1
Mode
Mode 0: 13-bit timer
Mode 1: 16-bit timer
Mode 2: 8-bit timer with auto-reload
Mode 3: Timer 1 inactive
Bit3:
Bit2:
Bits1–0:
GATE0: Timer 0 Gate Control.
0: Timer 0 enabled when TR0 = 1 irrespective of /INT0 logic level. /INT0 input pin is P0.0.
1: Timer 0 enabled only when TR0 = 1 AND /INT0 is active. /INT0 input pin is P0.2.
Reserved. Read = 0b. Must write 0b.
T0M1-T0M0: Timer 0 Mode Select.
These bits select the Timer 0 operation mode.
T0M1
0
0
1
1
T0M0
0
1
0
1
Mode
Mode 0: 13-bit timer
Mode 1: 16-bit timer
Mode 2: 8-bit timer with auto-reload
Mode 3: Two 8-bit timers
134
Rev. 0.5