P89V51RD2FA NXP Semiconductors, P89V51RD2FA Datasheet - Page 35
P89V51RD2FA
Manufacturer Part Number
P89V51RD2FA
Description
MCU 8-Bit 89V 80C51 CISC 64KB Flash 5V 44-Pin PLCC Tube
Manufacturer
NXP Semiconductors
Datasheet
1.P89V51RD2FA.pdf
(80 pages)
Specifications of P89V51RD2FA
Program Memory Size
64 KB
Package
44PLCC
Device Core
80C51
Family Name
89V
Maximum Speed
40 MHz
Operating Supply Voltage
5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
32
Interface Type
SPI/UART
Number Of Timers
3
Ram Size
1 KB
Program Memory Type
Flash
Operating Temperature
-40 to 85 °C
Controller Family/series
80C51
No. Of I/o's
32
Ram Memory Size
1KB
Cpu Speed
40MHz
No. Of Timers
4
No. Of Pwm Channels
5
Digital Ic Case Style
LCC
Core Size
8 Bit
Embedded Interface Type
UART
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
P89V51RD2FA
Manufacturer:
BI
Quantity:
230
Part Number:
P89V51RD2FA
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Company:
Part Number:
P89V51RD2FA,512
Manufacturer:
Freescale
Quantity:
312
Company:
Part Number:
P89V51RD2FA,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
NXP Semiconductors
P89V51RB2_RC2_RD2_5
Product data sheet
Fig 14. Timer 2 in Auto Reload mode (DCEN = 1)
OSC
T2 pin
6.5.3 Programmable clock-out
6.5.4 Baud rate generator mode
6
When a logic 0 is applied at pin T2EX this causes Timer 2 to count down. The timer will
underflow when TL2 and TH2 become equal to the value stored in RCAP2L and
RCAP2H. Timer 2 underflow sets the TF2 flag and causes 0FFFFH to be reloaded into
the timer registers TL2 and TH2. The external flag EXF2 toggles when Timer 2 underflows
or overflows. This EXF2 bit can be used as a 17th bit of resolution if needed.
A 50 % duty cycle clock can be programmed to come out on pin T2 (P1.0). This pin,
besides being a regular I/O pin, has two additional functions. It can be programmed:
To configure the Timer/counter 2 as a clock generator, bit C/T2 (in T2CON) must be
cleared and bit T2OE in T2MOD must be set. Bit TR2 (T2CON.2) also must be set to start
the timer.
The Clock-Out frequency depends on the oscillator frequency and the reload value of
Timer 2 capture registers (RCAP2H, RCAP2L) as shown in
Where (RCAP2H,RCAP2L) = the content of RCAP2H and RCAP2L taken as a 16-bit
unsigned integer.
In the Clock-Out mode Timer 2 roll-overs will not generate an interrupt. This is similar to
when it is used as a baud-rate generator.
Bits TCLK and/or RCLK in T2CON allow the UART) transmit and receive baud rates to be
derived from either Timer 1 or Timer 2 (See
When TCLK = 0, Timer 1 is used as the UART transmit baud rate generator. When
---------------------------------------------------------------------------------------- -
2
1. To input the external clock for Timer/counter 2, or
2. To output a 50 % duty cycle clock ranging from 122 Hz to 8 MHz at a 16 MHz
operating frequency.
65536
OscillatorFrequency
C/T2 = 0
C/T2 = 1
RCAP2H RCAP2L
Rev. 05 — 12 November 2009
TR2
control
(down-counting reload value)
(up-counting reload value)
RCAP2L RCAP2H
(8-bits)
FFH
TL2
(8-bits)
FFH
TH2
P89V51RB2/RC2/RD2
Section 6.6 “UARTs” on page 37
8-bit microcontrollers with 80C51 core
underflow
overflow
T2EX pin
Equation
count direction
1 = up
0 = down
toggle
TF2
2:
© NXP B.V. 2009. All rights reserved.
002aaa525
EXF2
timer 2
interrupt
for details).
35 of 80
(2)