English
Language : 

W77LE58_07 Datasheet, PDF (52/82 Pages) Winbond – 8-BIT MICROCONTROLLER
W77LE58/W77L058A
Clock Source
Mode input
div. by 4 osc/1
div. by 64 osc/16
div. by 1024 osc/256
T0 = P3.4
TR0 = TCON.4
GATE = TMOD.3
INT0 = P3.2
T0M = CKCON.3
1/4
1
C/T = TMOD.2
0
1/12 0
1
TR1 = TCON.6
TL0
0
7
TF0
Interrupt
TH0
0
7
TF1
Interrupt
Figure 13. Timer/Counter 0 Mode 3
7.1.3 Capture Mode
The capture mode is enabled by setting the CP / RL2 bit in the T2CON register to a 1, RCLK and
TCLK bits must be cleared. In the capture mode, Timer/Counter 2 serves as a 16 bit up counter.
When the counter rolls over from FFFFh to 0000h, the TF2 bit is set, which will generate an interrupt
request. If the EXEN2 bit is set, then a negative transition of T2EX pin will cause the value in the TL2
and TH2 register to be captured by the RCAP2L and RCAP2H registers. This action also causes the
EXF2 bit in T2CON to be set, which will also generate an interrupt. Setting the T2CR bit (T2MOD.3),
the W77L058 allows hardware to reset timer 2 automatically after the value of TL2 and TH2 have
been captured.
Clock Source
Mode input
div. by 4 osc/1
div. by 64 osc/16
div. by 1024 osc/256
T2 = P1.0
TR2 = T2CON.2
T2EX = P1.1
EXEN2 = T2CON.3
T2M = CKCON.5
1/4
1
C/T2 = T2CON.1
0
1/12 0
1
TL2 TH2
T2CON.7
TF2
RCAP2L RCAP2H
Figure 14. 16-Bit Capture Mode
EXF2
T2CON.6
Timer 2
Interrupt
- 52 -