W77C32F-40 Nuvoton Technology Corporation of America, W77C32F-40 Datasheet - Page 56

no-image

W77C32F-40

Manufacturer Part Number
W77C32F-40
Description
Manufacturer
Nuvoton Technology Corporation of America
Datasheet

Specifications of W77C32F-40

Lead Free Status / Rohs Status
Supplier Unconfirmed
13.2.3 Auto-reload Mode, Counting Up/Down
Timer/Counter 2 will be in auto-reload mode as an up/down counter if CP/ RL2 bit in T2CON is
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
div. by 4
div. by 64
div. by 1024 osc/256
EXEN2 = T2CON.3
Mode
Mode
TR2 = T2CON.2
Clock Source
Clock Source
T2EX = P1.1
T2 = P1.0
TR2 = T2CON.2
T2EX = P1.1
T2 = P1.0
osc/1
osc/16
input
osc/1
osc/16
input
1/12
1/4
1/12
1/4
T2M = CKCON.5
T2M = CKCON.5
0
1
1
0
Figure 15. 16-Bit Auto-reload Mode, Counting Up
Figure 16. 16-Bit Auto-reload Up/Down Counter
C/T = T2CON.1
C/T2 = T2CON.1
0
1
0
1
DCEN = 1
- 56 -
Up Counting Reload
V l
Down Counting Reload Value
RCAP2L
0FFh
TL2
RCAP2L
TL2
L
RCAP2H
0FFh
TH2
RCAP2H
TH2
W77C32/W77C032
T2CON.7
T2CON.6
EXF2
TF2
T2CON
TF2
T2CON.6
EXF2
.7
Interrupt
Interrupt
Timer 2
Timer 2

Related parts for W77C32F-40