P89V51RD2 Philips Semiconductors, P89V51RD2 Datasheet - Page 75
![no-image](/images/manufacturer_photos/0/5/522/philips_semiconductors_sml.jpg)
P89V51RD2
Manufacturer Part Number
P89V51RD2
Description
8-bit 80C51 5 V low power 64 kB Flash microcontroller with 1 kB RAM
Manufacturer
Philips Semiconductors
Datasheet
1.P89V51RD2.pdf
(75 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
P89V51RD2BN
Manufacturer:
TDK
Quantity:
12
Part Number:
P89V51RD2BN
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Company:
Part Number:
P89V51RD2BNЈ¬112
Manufacturer:
NXP
Quantity:
67
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
Part Number:
P89V51RD2FBC
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Company:
Part Number:
P89V51RD2FBC,557
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Philips Semiconductors
Contents
1
2
3
3.1
4
5
5.1
5.2
6
7
7.1
7.1.1
7.1.2
7.1.3
7.1.4
7.2
7.2.1
7.2.2
7.2.3
7.2.4
7.2.5
7.2.6
7.2.7
7.3
7.3.1
7.3.2
7.3.3
7.3.4
7.4
7.4.1
7.4.2
7.4.3
7.4.4
7.4.5
7.5
7.5.1
7.5.2
7.5.3
7.5.4
7.5.5
7.5.6
7.5.7
7.5.8
7.5.9
7.6
7.6.1
7.6.2
7.7
7.8
© Koninklijke Philips Electronics N.V. 2004.
Printed in the U.S.A.
All rights are reserved. Reproduction in whole or in part is prohibited without the prior
written consent of the copyright owner.
The information presented in this document does not form part of any quotation or
contract, is believed to be accurate and reliable and may be changed without notice. No
liability will be accepted by the publisher for any consequence of its use. Publication
thereof does not convey nor imply any license under patent- or other industrial or
intellectual property rights.
Date of release: 01 March 2004
General description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Ordering information . . . . . . . . . . . . . . . . . . . . . 2
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Pinning information . . . . . . . . . . . . . . . . . . . . . . 4
Special function registers . . . . . . . . . . . . . . . . 10
Functional description . . . . . . . . . . . . . . . . . . 14
Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 2
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 7
Memory organization . . . . . . . . . . . . . . . . . . . 14
Flash program memory. . . . . . . . . . . . . . . . . . 14
Data RAM memory . . . . . . . . . . . . . . . . . . . . . 14
Expanded data RAM addressing . . . . . . . . . . 14
Dual data pointers. . . . . . . . . . . . . . . . . . . . . . 17
Flash memory In-Application Programming . . 18
Flash organization . . . . . . . . . . . . . . . . . . . . . 18
Boot block . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Power-On reset code execution . . . . . . . . . . . 19
In-System Programming (ISP) . . . . . . . . . . . . 19
Using the In-System Programming. . . . . . . . . 19
Using the serial number . . . . . . . . . . . . . . . . . 23
In-Application Programming method . . . . . . . 23
Timers/counters 0 and 1 . . . . . . . . . . . . . . . . . 25
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Timer 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Capture mode . . . . . . . . . . . . . . . . . . . . . . . . . 30
Auto-reload mode (up or down counter) . . . . . 31
Programmable clock-out . . . . . . . . . . . . . . . . . 32
Baud rate generator mode . . . . . . . . . . . . . . . 33
Summary of baud rate equations . . . . . . . . . . 34
UARTs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Framing error . . . . . . . . . . . . . . . . . . . . . . . . . 36
More about UART mode 1 . . . . . . . . . . . . . . . 36
More about UART modes 2 and 3 . . . . . . . . . 37
Multiprocessor communications . . . . . . . . . . . 37
Automatic address recognition . . . . . . . . . . . . 38
Serial peripheral interface. . . . . . . . . . . . . . . . 39
SPI features . . . . . . . . . . . . . . . . . . . . . . . . . . 39
SPI description . . . . . . . . . . . . . . . . . . . . . . . . 40
Watchdog timer. . . . . . . . . . . . . . . . . . . . . . . . 42
Programmable Counter Array (PCA) . . . . . . . 43
Document order number: 9397 750 12964
7.8.1
7.8.2
7.8.3
7.8.4
7.8.5
7.9
7.10
7.10.1
7.10.2
7.10.3
7.10.4
7.11
7.11.1
7.11.2
7.12
7.12.1
7.12.2
8
9
10
11
11.1
12
13
14
15
16
Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 60
Recommended operating conditions . . . . . . 60
Static characteristics . . . . . . . . . . . . . . . . . . . 62
Dynamic characteristics . . . . . . . . . . . . . . . . . 64
Package outline . . . . . . . . . . . . . . . . . . . . . . . . 70
Revision history . . . . . . . . . . . . . . . . . . . . . . . 73
Data sheet status. . . . . . . . . . . . . . . . . . . . . . . 74
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
PCA capture mode. . . . . . . . . . . . . . . . . . . . . 47
16-bit software timer mode. . . . . . . . . . . . . . . 48
High speed output mode . . . . . . . . . . . . . . . . 49
Pulse width modulator mode . . . . . . . . . . . . . 50
PCA Watchdog timer . . . . . . . . . . . . . . . . . . . 50
Security Bit . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Power-on Reset . . . . . . . . . . . . . . . . . . . . . . . 52
Software reset . . . . . . . . . . . . . . . . . . . . . . . . 53
Brown-out detection reset . . . . . . . . . . . . . . . 53
Interrupt priority and polling sequence . . . . . . 53
Power-saving modes . . . . . . . . . . . . . . . . . . . 56
Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Power-down mode . . . . . . . . . . . . . . . . . . . . . 57
System clock and clock options . . . . . . . . . . . 58
Clock Input Options and
Clock doubling option . . . . . . . . . . . . . . . . . . . 59
Explanation of symbols . . . . . . . . . . . . . . . . . 65
Recommended Capacitor Values for
Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
8-bit microcontrollers with 80C51 core
P89V51RD2