English
Language : 

W78ERD2_07 Datasheet, PDF (34/76 Pages) Winbond – 8-BIT MICROCONTROLLER
W78ERD2/W78ERD2A
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)
00
1/12
1
TR0 = TCON.4
(TR1 = TCON.6)
Timer 1 functions are shown in brackets
TL0
(TL1)
0
7
TFx Interrupt
TF0
(TF1)
GATE = TMOD.3
(GATE = TMOD.7)
INT0 = P3.2
(INT1 = P3.3)
0
7
TH0
(TH1)
Figure 9-2 Timer/Counter Mode 2
- 34 -