w77e58 Winbond Electronics Corp America, w77e58 Datasheet - Page 55
![no-image](/images/no-image-200.jpg)
w77e58
Manufacturer Part Number
w77e58
Description
8 Bit Microcontroller
Manufacturer
Winbond Electronics Corp America
Datasheet
1.W77E58.pdf
(85 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
w77e58-24
Manufacturer:
WINBOND
Quantity:
500
Company:
Part Number:
w77e58-24
Manufacturer:
Winbond
Quantity:
600
Company:
Part Number:
w77e58-40
Manufacturer:
WINBOND
Quantity:
500
Company:
Part Number:
w77e58-40
Manufacturer:
WIN
Quantity:
226
Part Number:
w77e58-40
Manufacturer:
WIN
Quantity:
20 000
Part Number:
w77e58BP-40
Manufacturer:
WIN
Quantity:
20 000
MODE 1
Mode 1 is similar to Mode 0 except that the counting register forms a 16 bit counter, rather than a 13
bit counter. This means that all the bits of THx and TLx are used. Roll-over occurs when the timer
moves from a count of FFFFh to 0000h. The timer overflow flag TFx of the relevant timer is set and if
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.
MODE 2
In Mode 2, the timer/counter is in the Auto Reload Mode. In this mode, TLx acts as a 8 bit count
register, 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 pins. As in the other two modes 0 and 1
mode 2 allows counting of either clock cycles (clock/12 or clock/4) or pulses on pin Tn.
div. by 4
div. by 64
div. by 1024 osc/256
Mode
Clock Source
(GATE = TMOD.7)
GATE = TMOD.3
(TR1 = TCON.6)
TR0 = TCON.4
(T1 = P3.5)
(INT1 = P3.3)
T0 = P3.4
INT0 = P3.2
osc/1
osc/16
input
(T1M = CKCON.4)
T0M = CKCON.3
1/12
1/4
1
0
Figure 11. Timer/Counter Mode 0 & Mode 1
(C/T = TMOD.6)
C/T = TMOD.2
0
1
- 55 -
0
Timer 1 functions are shown in brackets
(TL1)
TL0
4
Preliminary W77E58
(M1,M0 = TMOD.5,TMOD.4)
Publication Release Date: March 1999
M1,M0 = TMOD.1,TMOD.0
7
(TF1)
TFx
TF0
00
01
0
Interrupt
(TH1)
TH0
Revision A1
7