w77e58 Winbond Electronics Corp America, w77e58 Datasheet - Page 58
![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
AUTO-RELOAD MODE, COUNTING UP
The auto-reload mode as an up counter is enabled by clearing the CP RL
and clearing the DCEN bit in T2MOD register. In this mode, Timer/Counter 2 is a 16 bit up counter.
When the counter rolls over from FFFFh, a reload is generated that causes the contents of the
RCAP2L and RCAP2H registers to be reloaded into the TL2 and TH2 registers. The reload action also
sets the TF2 bit. If the EXEN2 bit is set, then a negative transition of T2EX pin will also cause a
reload. This action also sets the EXF2 bit in T2CON.
AUTO-RELOAD MODE, COUNTING UP/DOWN
Timer/Counter 2 will be in auto-reload mode as an up/down counter if CP RL
cleared and the DCEN bit in T2MOD is set. In this mode, Timer/Counter 2 is an up/down counter
whose direction is controlled by the T2EX pin. A 1 on this pin cause the counter to count up. An
overflow while counting up will cause the counter to be reloaded with the contents of the capture
registers. The next down count following the case where the contents of Timer/Counter equal the
capture registers will load an FFFFh into Timer/Counter 2. In either event a reload will set the TF2 bit.
A reload will also toggle the EXF2 bit. However, the EXF2 bit can not generate an interrupt while in
this mode.
div. by 4
div. by 64
div. by 1024 osc/256
EXEN2 = T2CON.3
Mode
TR2 = T2CON.2
Clock Source
T2EX = P1.1
T2 = P1.0
osc/1
osc/16
input
1/12
1/4
T2M = CKCON.5
1
0
Figure 15. 16-Bit Auto-reload Mode, Counting Up
C/T2 = T2CON.1
1
0
- 58 -
RCAP2L
TL2
RCAP2H
TH2
Preliminary W77E58
/
T2CON.7
2 bit in the T2CON register
T2CON.6
EXF2
TF2
/
2 bit in T2CON is
Interrupt
Timer 2