NXP Semiconductors
P89CV51RB2/RC2/RD2
80C51 with 1 kB RAM, SPI
© NXP B.V. 2009. All rights reserved.
For more information, please visit: http://www.nxp.com
For sales office addresses, please send an email to: salesaddresses@nxp.com
Date of release: 25 August 2009
Document identifier: P89CV51RB2_RC2_RD2_3
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in section ‘Legal information’.
15. Contents
1 General description. . . . . . . . . . . . . . . . . . . . . . 1
2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.1 Principal features . . . . . . . . . . . . . . . . . . . . . . . 1
2.2 Additional features . . . . . . . . . . . . . . . . . . . . . . 1
2.3 Comparison to P89C51RB2/RC2/RD2 devices 2
3 Ordering information. . . . . . . . . . . . . . . . . . . . . 2
3.1 Ordering options. . . . . . . . . . . . . . . . . . . . . . . . 2
4 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3
5 Pinning information. . . . . . . . . . . . . . . . . . . . . . 4
5.1 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5
6 Functional description . . . . . . . . . . . . . . . . . . . 9
6.1 Special function registers . . . . . . . . . . . . . . . . . 9
6.2 Memory organization . . . . . . . . . . . . . . . . . . . 13
6.2.1 Expanded data RAM addressing . . . . . . . . . . 13
6.2.2 Dual data pointers. . . . . . . . . . . . . . . . . . . . . . 15
6.2.3 Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.3 Flash memory. . . . . . . . . . . . . . . . . . . . . . . . . 17
6.3.1 Flash organization . . . . . . . . . . . . . . . . . . . . . 17
6.3.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.3.3 Boot block. . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.3.4 Power-on reset code execution. . . . . . . . . . . . 18
6.3.5 Hardware activation of the bootloader . . . . . . 18
6.3.6 ISP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.3.7 Using ISP . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.3.8 IAP method. . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.4 Timers/counters 0 and 1. . . . . . . . . . . . . . . . . 26
6.4.1 Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.4.2 Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.4.3 Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.4.4 Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.5 Timer 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.5.1 Capture mode. . . . . . . . . . . . . . . . . . . . . . . . . 31
6.5.2 Auto-reload mode (up or down counter). . . . . 32
6.5.3 Programmable clock-out. . . . . . . . . . . . . . . . . 34
6.5.4 Baud rate generator mode . . . . . . . . . . . . . . . 34
6.5.5 Summary of baud rate equations . . . . . . . . . . 35
6.6 UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.6.1 Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.6.2 Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.6.3 Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.6.4 Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.6.5 Framing error . . . . . . . . . . . . . . . . . . . . . . . . . 37
6.6.6 More about UART Mode 1 . . . . . . . . . . . . . . . 38
6.6.7 More about UART Modes 2 and 3 . . . . . . . . . 38
6.6.8 Multiprocessor communications . . . . . . . . . . . 38
6.6.9 Automatic address recognition . . . . . . . . . . . . 39
6.7 Serial Peripheral Interface (SPI). . . . . . . . . . . 41
6.7.1 SPI features . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.7.2 SPI description. . . . . . . . . . . . . . . . . . . . . . . . 41
6.8 Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 43
6.9 PCA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.9.1 PCA capture mode. . . . . . . . . . . . . . . . . . . . . 48
6.9.2 16-bit software timer mode. . . . . . . . . . . . . . . 49
6.9.3 High-speed output mode . . . . . . . . . . . . . . . . 50
6.9.4 Pulse width modulator mode . . . . . . . . . . . . . 51
6.9.5 PCA watchdog timer . . . . . . . . . . . . . . . . . . . 52
6.10 Security bits . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.11 Interrupt priority and polling sequence. . . . . . 53
6.12 Power-saving modes . . . . . . . . . . . . . . . . . . . 56
6.12.1 Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
6.12.2 Power-down mode . . . . . . . . . . . . . . . . . . . . . 56
6.13 System clock and clock options . . . . . . . . . . . 57
6.13.1 Clock input options and recommended
capacitor values for oscillator . . . . . . . . . . . . . 57
6.13.1.1 Clock control register (CKCON). . . . . . . . . . . 58
7 Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 59
8 Static characteristics . . . . . . . . . . . . . . . . . . . 59
9 Dynamic characteristics. . . . . . . . . . . . . . . . . 62
9.1 Explanation of symbols . . . . . . . . . . . . . . . . . 63
10 Package outline . . . . . . . . . . . . . . . . . . . . . . . . 71
11 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 73
12 Revision history . . . . . . . . . . . . . . . . . . . . . . . 74
13 Legal information . . . . . . . . . . . . . . . . . . . . . . 75
13.1 Data sheet status . . . . . . . . . . . . . . . . . . . . . . 75
13.2 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
13.3 Disclaimers. . . . . . . . . . . . . . . . . . . . . . . . . . . 75
13.4 Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 75
14 Contact information . . . . . . . . . . . . . . . . . . . . 75
15 Contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76

P89CV51RD2FA,512

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC MCU 8BIT 64KB FLASH 44PLCC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union