English
Language : 

UPSD3354DV-40U6 Datasheet, PDF (98/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic
Standard 8032 timer/counters
UPSD33xx
Table 57. TMOD register bit definition (continued)
Bit
Symbol
R/W
Timer
Definition (T/C is abbreviation for
timer/counter)
3
GATE
R,W
2
C/T
R,W
Gate control.
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.
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.
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
uct(s) [1:0]
M[1:0]
R,W
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.
rod Figure 21. Timer/Counter Mode 0: 13-bit counter
te P fOSC
sole C1 pin
÷ 12
C/T = 0
C/T = 1
Control
TL1
TH1
(5 bits) (8 bits)
- Ob TR1
) Gate
t(s EXTINT1 pin
duc Figure 22. Timer/Counter Mode 2: 8-bit Auto-reload
Pro fOSC
÷ 12
leteC1 pin
C/T = 0
C/T = 1
Control
TL1
(8 bits)
Obso TR1
TF1
Interrupt
AI06622
TF1
Interrupt
Gate
EXTINT1 pin
TH1
(8 bits)
AI06623
98/272
Doc ID 9685 Rev 7