p89cv51rb2 NXP Semiconductors, p89cv51rb2 Datasheet - Page 30

no-image

p89cv51rb2

Manufacturer Part Number
p89cv51rb2
Description
P89cv51rb2/rc2/rd2 8-bit 80c51 5 V Low Power 64 Kb Flash Microcontroller With 1 Kb Ram, Spi, 6-clock Cpu With 6/12-clock Peripherals
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
p89cv51rb2FA
Manufacturer:
KEC
Quantity:
10 000
Part Number:
p89cv51rb2FA
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
p89cv51rb2FA,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
p89cv51rb2FBC,557
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
p89cv51rb2FBC557
Manufacturer:
NXP Semiconductors
Quantity:
135
NXP Semiconductors
P89CV51RB2_RC2_RD2_1
Product data sheet
Fig 11. Timer 2 in Capture mode
Fig 12. Timer 2 in Auto-reload mode (DCEN = 0)
OSC
T2 pin
OSC
T2 pin
6.5.2 Auto-reload mode (up or down counter)
T2EX pin
T2EX pin
There is no reload value for TL2 and TH2 in this mode. Even when a capture event occurs
from T2EX, the counter keeps on counting T2 pin transitions or f
loaded contents of RCAP2L and RCAP2H registers are not protected, once Timer 2
interrupt is signalled it has to be serviced before a new capture event on T2EX pin occurs.
Otherwise, the next falling edge on T2EX pin will initiate reload of the current value from
TL2 and TH2 to RCAP2L and RCAP2H and consequently corrupt their content related to
the previously reported interrupt.
In the 16-bit auto-reload mode, Timer 2 can be configured as either a timer or counter (via
C/T2 in T2CON), then programmed to count up or down. The counting direction is
determined by bit DCEN (Down Counter Enable) which is located in the T2MOD register
(see
counting up. If the DCEN bit is set, Timer 2 can count up or down depending on the value
of the T2EX pin.
Figure 12
6
6
transition
transition
detector
detector
Table 21
C/T2 = 0
C/T2 = 1
C/T2 = 0
C/T2 = 1
shows Timer 2 counting up automatically (DCEN = 0).
and
EXEN2
EXEN2
Table
control
control
TR2
TR2
Rev. 01 — 5 October 2007
22). When reset is applied, DCEN = 0 and Timer 2 will default to
control
control
capture
reload
RCAP2L RCAP2H
RCAP2L RCAP2H
(8-bits)
(8-bits)
TL2
TL2
P89CV51RB2/RC2/RD2
(8-bits)
(8-bits)
TH2
TH2
EXF2
EXF2
TF2
TF2
80C51 with 1 kB RAM, SPI
osc
/ 6 pulses. Since once
© NXP B.V. 2007. All rights reserved.
002aaa524
002aaa523
interrupt
interrupt
timer 2
timer 2
30 of 73

Related parts for p89cv51rb2