P89V51RD2FA NXP Semiconductors, P89V51RD2FA Datasheet - Page 80
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
15. Contents
1
2
3
3.1
4
5
5.1
5.2
6
6.1
6.2
6.2.1
6.2.2
6.2.3
6.2.4
6.2.5
6.2.6
6.2.7
6.2.8
6.3
6.3.1
6.3.2
6.3.3
6.3.4
6.3.5
6.3.6
6.4
6.4.1
6.4.2
6.4.3
6.4.4
6.5
6.5.1
6.5.2
6.5.3
6.5.4
6.5.5
6.6
6.6.1
6.6.2
6.6.3
6.6.4
6.6.5
6.6.6
6.6.7
6.6.8
6.6.9
General description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Ordering information . . . . . . . . . . . . . . . . . . . . . 2
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Pinning information . . . . . . . . . . . . . . . . . . . . . . 4
Functional description . . . . . . . . . . . . . . . . . . 10
Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 2
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 6
Special function registers . . . . . . . . . . . . . . . . 10
Memory organization . . . . . . . . . . . . . . . . . . . 14
Flash program memory bank selection. . . . . . 14
Power-on reset code execution. . . . . . . . . . . . 14
Software reset. . . . . . . . . . . . . . . . . . . . . . . . . 15
Brownout detect reset. . . . . . . . . . . . . . . . . . . 15
Watchdog reset. . . . . . . . . . . . . . . . . . . . . . . . 16
Data RAM memory . . . . . . . . . . . . . . . . . . . . . 16
Expanded data RAM addressing . . . . . . . . . . 16
Dual data pointers. . . . . . . . . . . . . . . . . . . . . . 19
Flash memory IAP . . . . . . . . . . . . . . . . . . . . . 20
Flash organization . . . . . . . . . . . . . . . . . . . . . 20
Boot block (block 1) . . . . . . . . . . . . . . . . . . . . 20
ISP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Using ISP . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Using the serial number . . . . . . . . . . . . . . . . . 25
IAP method . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Timers/counters 0 and 1 . . . . . . . . . . . . . . . . . 27
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Timer 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Capture mode . . . . . . . . . . . . . . . . . . . . . . . . . 32
Auto-reload mode (up or down counter) . . . . . 33
Programmable clock-out . . . . . . . . . . . . . . . . . 35
Baud rate generator mode . . . . . . . . . . . . . . . 35
Summary of baud rate equations . . . . . . . . . . 37
UARTs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Framing error . . . . . . . . . . . . . . . . . . . . . . . . . 39
More about UART mode 1 . . . . . . . . . . . . . . . 39
More about UART modes 2 and 3 . . . . . . . . . 39
Multiprocessor communications . . . . . . . . . . . 40
Automatic address recognition . . . . . . . . . . . . 40
6.7
6.7.1
6.7.2
6.8
6.9
6.9.1
6.9.2
6.9.3
6.9.4
6.9.5
6.10
6.11
6.12
6.12.1
6.12.2
6.13
6.13.1
6.13.2
7
8
9
9.1
10
11
12
13
13.1
13.2
13.3
13.4
14
15
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in section ‘Legal information’.
© NXP B.V. 2009.
For more information, please visit: http://www.nxp.com
For sales office addresses, please send an email to: salesaddresses@nxp.com
Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 62
Static characteristics . . . . . . . . . . . . . . . . . . . 62
Dynamic characteristics . . . . . . . . . . . . . . . . . 65
Package outline . . . . . . . . . . . . . . . . . . . . . . . . 74
Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 77
Revision history . . . . . . . . . . . . . . . . . . . . . . . 78
Legal information . . . . . . . . . . . . . . . . . . . . . . 79
Contact information . . . . . . . . . . . . . . . . . . . . 79
Contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
P89V51RB2/RC2/RD2
SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
SPI features . . . . . . . . . . . . . . . . . . . . . . . . . . 42
SPI description . . . . . . . . . . . . . . . . . . . . . . . . 42
Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 45
PCA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
PCA capture mode. . . . . . . . . . . . . . . . . . . . . 50
16-bit software timer mode. . . . . . . . . . . . . . . 51
High-speed output mode . . . . . . . . . . . . . . . . 52
PWM mode . . . . . . . . . . . . . . . . . . . . . . . . . . 53
PCA watchdog timer . . . . . . . . . . . . . . . . . . . 54
Security bit . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Interrupt priority and polling sequence . . . . . . 55
Power-saving modes . . . . . . . . . . . . . . . . . . . 58
Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Power-down mode . . . . . . . . . . . . . . . . . . . . . 59
System clock and clock options . . . . . . . . . . . 60
Clock input options and recommended
capacitor values for oscillator . . . . . . . . . . . . . 60
Clock doubling option . . . . . . . . . . . . . . . . . . . 60
Explanation of symbols . . . . . . . . . . . . . . . . . 66
Data sheet status . . . . . . . . . . . . . . . . . . . . . . 79
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Disclaimers. . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 79
8-bit microcontrollers with 80C51 core
Document identifier: P89V51RB2_RC2_RD2_5
Date of release: 12 November 2009
All rights reserved.