p89cv51rb2 NXP Semiconductors, p89cv51rb2 Datasheet - Page 27

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
6.4.2 Mode 1
6.4.3 Mode 2
6.4.4 Mode 3
Mode 1 is the same as Mode 0, except that all 16 bits of the timer register (THn and TLn)
are used; see
Mode 2 configures the timer register as an 8-bit counter (TLn) with automatic reload, as
shown in
contents of THn, which must be preset by software. The reload leaves THn unchanged.
Mode 2 operation is the same for Timer 0 and Timer 1.
When Timer 1 is in Mode 3 it is stopped (holds its count). The effect is the same as setting
TR1 = 0.
Timer 0 in Mode 3 establishes TL0 and TH0 as two separate 8-bit counters. The logic for
Mode 3 and Timer 0 is shown in
T0GATE, TR0, INT0, and TF0. TH0 is locked into a timer function (counting machine
cycles) and takes over the use of TR1 and TF1 from Timer 1. Thus, TH0 now controls the
Timer 1 interrupt.
Mode 3 is provided for applications that require an extra 8-bit timer. With Timer 0 in
mode 3, the P89CV51RB2/RC2/RD2 can look like it has an additional timer.
Note: When Timer 0 is in Mode 3, Timer 1 can be turned on and off by switching it into
and out of its own Mode 3. It can still be used by the serial port as a baud rate generator,
or in any application not requiring an interrupt.
Fig 8. Timer/counter 0 or 1 in Mode 1 (16-bit counter)
Fig 9. Timer/counter 0 or 1 in Mode 2 (8-bit auto-reload)
INTn pin
TnGate
INTn pin
Tn pin
osc/6
TnGate
TRn
Tn pin
osc/6
TRn
Figure
Figure
9. Overflow from TLn not only sets TFn, but also reloads TLn with the
8.
Rev. 01 — 5 October 2007
C/T = 0
C/T = 1
C/T = 0
C/T = 1
Figure
10. TL0 uses the Timer 0 control bits: T0C/T,
P89CV51RB2/RC2/RD2
control
control
(8-bits)
TLn
(8-bits)
(8-bits)
TLn
THn
reload
(8-bits)
THn
overflow
80C51 with 1 kB RAM, SPI
overflow
TFn
© NXP B.V. 2007. All rights reserved.
TFn
interrupt
002aaa521
002aaa520
interrupt
27 of 73

Related parts for p89cv51rb2