© 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: 15 December 2004 Document order number: 9397 750 14469
Contents
Philips Semiconductors
P89LPC920/921/922/9221
8-bit microcontrollers with two-clock 80C51 core
1 General description. . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.1 Principal features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.2 Additional features . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
3 Ordering information. . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.1 Ordering options . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5 Pinning information. . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.1 Pinning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6 Logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
7 Special function registers. . . . . . . . . . . . . . . . . . . . . . 9
8 Functional description . . . . . . . . . . . . . . . . . . . . . . . 14
8.1 Enhanced CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
8.2 Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
8.2.1 Clock definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
8.2.2 CPU clock (OSCCLK) . . . . . . . . . . . . . . . . . . . . . . . 14
8.2.3 Low speed oscillator option . . . . . . . . . . . . . . . . . . . 14
8.2.4 Medium speed oscillator option . . . . . . . . . . . . . . . . 14
8.2.5 High speed oscillator option. . . . . . . . . . . . . . . . . . . 14
8.2.6 Clock output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
8.3 On-chip RC oscillator option . . . . . . . . . . . . . . . . . . 15
8.4 Watchdog oscillator option. . . . . . . . . . . . . . . . . . . . 15
8.5 External clock input option . . . . . . . . . . . . . . . . . . . . 15
8.6 CPU Clock (CCLK) wake-up delay. . . . . . . . . . . . . . 17
8.7 CPU Clock (CCLK) modification: DIVM register . . . 17
8.8 Low power select . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
8.9 Memory organization . . . . . . . . . . . . . . . . . . . . . . . . 17
8.10 Data RAM arrangement . . . . . . . . . . . . . . . . . . . . . . 18
8.11 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
8.11.1 External interrupt inputs. . . . . . . . . . . . . . . . . . . . . . 18
8.12 I/O ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
8.12.1 Port configurations . . . . . . . . . . . . . . . . . . . . . . . . . . 19
8.12.2 Quasi-bidirectional output configuration. . . . . . . . . . 20
8.12.3 Open-drain output configuration. . . . . . . . . . . . . . . . 20
8.12.4 Input-only configuration . . . . . . . . . . . . . . . . . . . . . . 20
8.12.5 Push-pull output configuration . . . . . . . . . . . . . . . . . 20
8.12.6 Port 0 analog functions . . . . . . . . . . . . . . . . . . . . . . 20
8.12.7 Additional port features . . . . . . . . . . . . . . . . . . . . . . 21
8.13 Power monitoring functions . . . . . . . . . . . . . . . . . . . 21
8.13.1 Brownout detection . . . . . . . . . . . . . . . . . . . . . . . . . 21
8.13.2 Power-on detection . . . . . . . . . . . . . . . . . . . . . . . . . 21
8.14 Power reduction modes . . . . . . . . . . . . . . . . . . . . . . 21
8.14.1 Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8.14.2 Power-down mode . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8.14.3 Total Power-down mode. . . . . . . . . . . . . . . . . . . . . . 22
8.15 Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8.15.1 Reset vector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8.16 Timers/counters 0 and 1 . . . . . . . . . . . . . . . . . . . . . 23
8.16.1 Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8.16.2 Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8.16.3 Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
8.16.4 Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
8.16.5 Mode 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
8.16.6 Timer overflow toggle output. . . . . . . . . . . . . . . . . . . 24
8.17 Real-Time clock/system timer. . . . . . . . . . . . . . . . . . 24
8.18 UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
8.18.1 Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
8.18.2 Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
8.18.3 Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
8.18.4 Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
8.18.5 Baud rate generator and selection . . . . . . . . . . . . . . 25
8.18.6 Framing error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
8.18.7 Break detect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
8.18.8 Double buffering . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
8.18.9 Transmit interrupts with double buffering
enabled (Modes 1, 2 and 3). . . . . . . . . . . . . . . . . . . 26
8.18.10 The 9
th
bit (bit 8) in double buffering (Modes 1, 2 and
3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
8.19 I
2
C-bus serial interface . . . . . . . . . . . . . . . . . . . . . . . 27
8.20 Analog comparators . . . . . . . . . . . . . . . . . . . . . . . . . 29
8.20.1 Internal reference voltage. . . . . . . . . . . . . . . . . . . . . 29
8.20.2 Comparator interrupt. . . . . . . . . . . . . . . . . . . . . . . . . 30
8.20.3 Comparators and power reduction modes . . . . . . . . 30
8.21 Keypad interrupt (KBI) . . . . . . . . . . . . . . . . . . . . . . . 30
8.22 Watchdog timer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
8.23 Additional features . . . . . . . . . . . . . . . . . . . . . . . . . . 31
8.23.1 Software reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
8.23.2 Dual data pointers. . . . . . . . . . . . . . . . . . . . . . . . . . . 31
8.24 Flash program memory. . . . . . . . . . . . . . . . . . . . . . . 32
8.24.1 General description. . . . . . . . . . . . . . . . . . . . . . . . . . 32
8.24.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
8.24.3 ISP and IAP capabilities of
the P89LPC920/921/922/9221 . . . . . . . . . . . . . . . . 32
8.25 User configuration bytes. . . . . . . . . . . . . . . . . . . . . . 34
8.26 User sector security bytes . . . . . . . . . . . . . . . . . . . . 34
9 Limiting values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
10 Static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 36
11 Dynamic characteristics . . . . . . . . . . . . . . . . . . . . . . 38
12 Comparator electrical characteristics . . . . . . . . . . . 41
13 Package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
14 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
15 Data sheet status . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
16 Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
17 Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
18 Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

P89LPC921FDH,518

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
Microcontrollers - MCU 8-bit Microcontrollers - MCU 8B MCU 80C51 2/4/8KB 3V FL 256B RAM
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union