English
Language : 

W78IRD2 Datasheet, PDF (34/76 Pages) Winbond – 8-BIT MICROCONTROLLER
W78IRD2
osc
T0M = CKCON.3
(T1M = CKCON.4)
1/6
1
0
1/12
T0 = P3.4
(T1 = P3.5)
C/T = TMOD.2
(C/T = TMOD.6)
0
1
TR0 = TCON.4
(TR1 = TCON.6)
GATE = TMOD.3
(GATE = TMOD.7)
INT0 = P3.2
(INT1 = P3.3)
Timer 1 functions are shown in brackets
M1,M0 = TMOD.1,TMOD.0
(M1,M0 = TMOD.5,TMOD.4)
00
0
4
7
0
7
TL0
(TL1)
01
TH0
(TH1)
TFx
TF0
(TF1)
Interrupt
Figure 9-1 Timer/Counter Mode 0 & Mode 1
Mode 1
Mode 1 is similar to mode 0, except that the timer/counter is 16-bit counter, not a 13-bit counter. All the
bits in THx and TLx are used. Roll-over occurs when the timer moves from FFFFh to 0000h.
Mode 2
Mode 2 is similar to mode 0, except that TLx acts like an eight-bit counter and THx holds the auto-
reload value for TLx. When the TLx register overflows from FFh to 00h, the timer overflow flag TFx bit
(in TCON) is set, TLx is reloaded with the contents of THx, and the counting process continues. The
reload operation does not affect the THx register.
osc
T0 = P3.4
(T1 = P3.5)
T0M = CKCON.3
(T1M = CKCON.4)
1/6
1
C/T = TMOD.2
(C/T = TMOD.6)
0
0
1/12
1
TR0 = TCON.4
(TR1 = TCON.6)
Timer 1 functions are shown in brackets
TL0
(TL1)
0
7
TFx
TF0
(TF1)
Interrupt
GATE = TMOD.3
(GATE = TMOD.7)
INT0 = P3.2
(INT1 = P3.3)
0
7
TH0
(TH1)
Figure 9-2 Timer/Counter Mode 2
Mode 3
Mode 3 is used when an extra eight-bit timer is needed, and it has different effects on Timer 0 and
Timer 1.
- 34 -