English
Language : 

UPSD33XX Datasheet, PDF (72/231 Pages) STMicroelectronics – Fast 8032 MCU with Programmable Logic
uPSD33xx
Table 40. TMOD: Timer Mode Register (SFR 89h, reset value 00h)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
GATE
C/T
M[1:0]
GATE
C/T
M[1:0]
Details
Bit
Symbol
R/W
Timer
Definition (T/C is abbreviation for Timer/Counter)
Gate control.
7
GATE
R,W
When GATE = 1, T/C is enabled only while pin EXTINT1
is '1' and the flag TR1 is '1.' When GATE = 0, T/C is
enabled whenever the flag TR1 is '1.'
Counter or Timer function select.
6
C/T
R,W
When C/T = 0, function is timer, clocked by internal clock.
C/T = 1, function is counter, clocked by signal sampled on
Timer 1 external pin, C1.
Mode Select.
[5:4]
M[1:0]
R,W
00b = 13-bit T/C. 8 bits in TH1 with TL1 as 5-bit pre-
scaler.
01b = 16-bit T/C. TH1 and TL1 are cascaded. No pre-
scaler.
10b = 8-bit auto-reload T/C. TH1 holds a constant and
loads into TL1 upon overflow.
11b = Timer Counter 1 is stopped.
Gate control.
3
GATE
R,W
When GATE = 1, T/C is enabled only while pin EXTINT0
is '1' and the flag TR0 is '1.' When GATE = 0, T/C is
enabled whenever the flag TR0 is '1.'
Counter or Timer function select.
2
C/T
R,W
When C/T = 0, function is timer, clocked by internal clock.
C/T = 1, function is counter, clocked by signal sampled on
external pin, C0.
Timer 0
Mode Select.
[1:0]
M[1:0]
R,W
00b = 13-bit T/C. 8 bits in TH0 with TL0 as 5-bit pre-
scaler.
01b = 16-bit T/C. TH0 and TL0 are cascaded. No pre-
scaler.
10b = 8-bit auto-reload T/C. TH0 holds a constant and
loads into TL0 upon overflow.
11b = TL0 is 8-bit T/C controlled by standard Timer 0
control bits. TH0 is a separate 8-bit timer that uses Timer
1 control bits.
72/231