English
Language : 

W78E516DDG Datasheet, PDF (53/90 Pages) Nuvotem Talema – 8-BIT MICROCONTROLLER
W78E516D/W78E058D Data Sheet
enabled an interrupt will occur. The selection of the time-base in the timer mode is similar to that in
Mode 0. The gate function operates similarly to that in Mode 0.
Fosc
T0=P3.4
(T1=P3.5)
1/12
C/T=TMOD.2
(C/T=TMOD.6)
0
1
M1, M0=TMOD.1, TMOD.0
(M1, M0=TMOD.5, TMOD.4)
0
4
7
TL0
(TL1)
00
0
7
01
TH0
(TH1)
TR0=TCON.4
(TR1=TCON.6)
GATE=TMOD.3
(GATE=TMOD.7)
INT0=P3.2
(INT1=P3.3)
TFx
TF0
(TF1)
Interrupt
Figure 14- 1 Timer/Counters 0 & 1 in Mode 0,1
14.2.3 Mode 2
In Mode 2, the timer/counter is in the Auto Reload Mode. In this mode, TLx acts as an 8-bit count reg-
ister, while THx holds the reload value. When the TLx register overflows from FFh to 00h, the TFx bit
in TCON is set and TLx is reloaded with the contents of THx, and the counting process continues from
here. The reload operation leaves the contents of the THx register unchanged. Counting is enabled by
the TRx bit and proper setting of GATE and INTx . As in the other two modes 0 and 1 mode 2 allows
counting of clock/12 or pulses on pin Tn.
Fosc
1/12
C/T=TMOD.2
(C/T=TMOD.6)
0
TL0
(TL1)
T0=P3.4
(T1=P3.5)
0
7
TFx
Interrupt
1
TF0
(TF1)
TR0=TCON.4
(TR1=TCON.6)
GATE=TMOD.3
(GATE=TMOD.7)
INT0=P3.2
(INT1=P3.3)
0
7
TH0
(TH1)
Timer/Counter Mode2
Figure 14- 2 Timer/Counter 0 & 1 in Mode 2
- 53 -
Publication Release Date: Feb 15, 2011
Revision A09