P89LPC920_921_922_9221 NXP Semiconductors, P89LPC920_921_922_9221 Datasheet

no-image

P89LPC920_921_922_9221

Manufacturer Part Number
P89LPC920_921_922_9221
Description
The P89LPC920/921/922/9221 are single-chip microcontrollers designed forapplications demanding high-integration, low cost solutions over a wide range ofperformance requirements
Manufacturer
NXP Semiconductors
Datasheet
1. General description
2. Features
2.1 Principal features
The P89LPC920/921/922/9221 are single-chip microcontrollers designed for
applications demanding high-integration, low cost solutions over a wide range of
performance requirements. The P89LPC920/921/922/9221 is based on a high
performance processor architecture that executes instructions in two to four clocks,
six times the rate of standard 80C51 devices. Many system-level functions have been
incorporated into the P89LPC920/921/922/9221 in order to reduce component count,
board space, and system cost.
P89LPC920/921/922/9221
8-bit microcontrollers with two-clock 80C51 core
2 kB/4 kB/8 kB 3 V low-power Flash with 256-byte data RAM
Rev. 08 — 15 December 2004
2 kB/4 kB/8 kB Flash code memory with 1 kB erasable sectors, 64-byte erasable
page size, and single byte erase.
256-byte RAM data memory.
Two 16-bit counter/timers. Each timer may be configured to toggle a port output
upon timer overflow or to become a PWM output.
Real-Time clock that can also be used as a system timer.
Two analog comparators with selectable inputs and reference source.
Enhanced UART with fractional baud rate generator, break detect, framing error
detection, automatic address detection and versatile interrupt capabilities.
400 kHz byte-wide I
Configurable on-chip oscillator with frequency range and RC oscillator options
(selected by user programmed Flash configuration bits). The RC oscillator (factory
calibrated to 1 %) option allows operation without external oscillator
components. Oscillator options support frequencies from 20 kHz to the maximum
operating frequency of 18 MHz. The RC oscillator option is selectable and fine
tunable.
2.4 V to 3.6 V V
driven to 5.5 V).
High drive current (20 mA) on eight I/O pins on the P89LPC9221 (P0.3 to P0.7,
P1.4, P1.6, P1.7).
DD
operating range. I/O pins are 5 V tolerant (may be pulled up or
2
C-bus communication port.
Product data

Related parts for P89LPC920_921_922_9221

P89LPC920_921_922_9221 Summary of contents

Page 1

P89LPC920/921/922/9221 8-bit microcontrollers with two-clock 80C51 core 2 kB/4 kB low-power Flash with 256-byte data RAM Rev. 08 — 15 December 2004 1. General description The P89LPC920/921/922/9221 are single-chip microcontrollers designed for applications demanding high-integration, low cost ...

Page 2

Philips Semiconductors 2.2 Additional features 15 I/O pins minimum I/O pins while using on-chip oscillator and reset options. 20-pin TSSOP and DIP packages. A high performance 80C51 CPU provides instruction cycle times of 111 ns to 222 ...

Page 3

Philips Semiconductors 3. Ordering information Table 1: Type number P89LPC920FDH P89LPC921FDH P89LPC922FDH P89LPC922FN P89LPC9221FN P89LPC9221FDH TSSOP20 3.1 Ordering options Table 2: Type number P89LPC920FDH P89LPC921FDH P89LPC922FDH P89LPC922FN P89LPC9221FN P89LPC9221FDH 9397 750 14469 Product data P89LPC920/921/922/9221 8-bit microcontrollers with two-clock 80C51 ...

Page 4

Philips Semiconductors 4. Block diagram P89LPC920/921/922/9221 CONFIGURABLE I/Os CONFIGURABLE I/Os CONFIGURABLE I/Os PROGRAMMABLE OSCILLATOR DIVIDER CRYSTAL OR RESONATOR Fig 1. Block diagram. 9397 750 14469 Product data P89LPC920/921/922/9221 8-bit microcontrollers with two-clock 80C51 core HIGH PERFORMANCE ACCELERATED 2-CLOCK 80C51 CPU ...

Page 5

Philips Semiconductors 5. Pinning information 5.1 Pinning Fig 2. TSSOP20 pin configuration. Fig 3. DIP20 pin configuration. 9397 750 14469 Product data P89LPC920/921/922/9221 8-bit microcontrollers with two-clock 80C51 core handbook, halfpage KBI0/CMP2/ ...

Page 6

Philips Semiconductors 5.2 Pin description Table 3: Pin description Symbol Pin Type Description P0.0 to P0.7 I/O Port 0: Port 8-bit I/O port with a user-configurable output type. During reset Port 0 latches are configured in the ...

Page 7

Philips Semiconductors Table 3: Pin description …continued Symbol Pin Type Description [1] P1.0 to P1.7 I/O, I Port 1: Port 8-bit I/O port with a user-configurable output type, except for three pins as noted below. During reset ...

Page 8

Philips Semiconductors Table 3: Pin description …continued Symbol Pin Type Description P3.0 to P3.1 I/O Port 3: Port 2-bit I/O port with a user-configurable output type. During reset Port 3 latches are configured in the input only ...

Page 9

Philips Semiconductors 7. Special function registers Remark: Special Function Registers (SFRs) accesses are restricted in the following ways: • User must not attempt to access any SFR locations not defined. • Accesses to any defined SFR locations must be strictly ...

Page 10

Table 4: Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address ACC* Accumulator E0H AUXR1 Auxiliary function register A2H Bit address B* B register F0H ...

Page 11

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR addr. I2SCLL Serial clock generator/SCL DCH duty cycle register LOW 2 I2STAT I C status register ...

Page 12

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR addr. P1M2 Port 1 output mode 2 92H P3M1 Port 3 output mode 1 B1H P3M2 ...

Page 13

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR addr. TRIM Internal oscillator trim register 96H WDCON Watchdog control register A7H WDL Watchdog load C1H ...

Page 14

Philips Semiconductors 8. Functional description Remark: Please refer to the P89LPC920/921/922/9221 User’s Manual for a more detailed functional description. 8.1 Enhanced CPU The P89LPC920/921/922/9221 uses an enhanced 80C51 CPU which runs at 6 times the speed of standard 80C51 devices. ...

Page 15

Philips Semiconductors the minimum specified operating voltage. When using an oscillator frequency above 12 MHz, in some applications, an external brownout detect circuit may be required to hold the device in reset when V specified operating voltage. 8.2.6 Clock output ...

Page 16

Philips Semiconductors Fig 5. Block diagram of oscillator control. 9397 750 14469 Product data P89LPC920/921/922/9221 8-bit microcontrollers with two-clock 80C51 core XTAL1 High freq. Med. freq. XTAL2 Low freq. OSCCLK RC OSCILLATOR (7.3728 MHz) WATCHDOG OSCILLATOR (400 kHz) PCLK TIMER ...

Page 17

Philips Semiconductors 8.6 CPU Clock (CCLK) wake-up delay The P89LPC920/921/922/9221 has an internal wake-up timer that delays the clock until it stabilizes depending to the clock source used. If the clock source is any of the three crystal selections (low, ...

Page 18

Philips Semiconductors 8.10 Data RAM arrangement The 256 bytes of on-chip RAM are organized as shown in Table 5: Type DATA IDATA 8.11 Interrupts The P89LPC920/921/922/9221 uses a four priority level interrupt structure. This allows great flexibility in controlling the ...

Page 19

Philips Semiconductors RTCF ERTC (RTCCON.1) WDOVF EA (IE0.7) TI & RI/RI Fig 6. Interrupt sources, interrupt enables, and power-down wake-up sources. 8.12 I/O ports The P89LPC920/921/922/9221 has three I/O ports: Port 0, Port 1, and Port 3. Ports 0 and ...

Page 20

Philips Semiconductors P1.2 (SCL/T0) and P1.3 (SDA/INT0) may only be configured to be either input-only or open-drain. 8.12.2 Quasi-bidirectional output configuration Quasi-bidirectional output type can be used as both an input and output without the need to reconfigure the port. ...

Page 21

Philips Semiconductors 8.12.7 Additional port features After power-up, all pins are in Input-Only mode. Please note that this is different from the LPC76x series of devices. • After power-up, all I/O pins except P1.5, may be configured by software. • ...

Page 22

Philips Semiconductors 8.14.1 Idle mode Idle mode leaves peripherals running in order to allow them to activate the processor when an interrupt is generated. Any enabled interrupt source or reset may terminate Idle mode. 8.14.2 Power-down mode The Power-down mode ...

Page 23

Philips Semiconductors • External reset pin (during power- user configured via UCFG1). This option must be used for an oscillator frequency above 12 MHz); • Power-on detect; • Brownout detect; • Watchdog Timer; • Software reset; • UART ...

Page 24

Philips Semiconductors 8.16.3 Mode 2 Mode 2 configures the Timer register as an 8-bit Counter with automatic reload. Mode 2 operation is the same for Timer 0 and Timer 1. 8.16.4 Mode 3 When Timer Mode 3 ...

Page 25

Philips Semiconductors 8.18.2 Mode 1 10 bits are transmitted (through TxD) or received (through RxD): a start bit (logical ‘0’), 8 data bits (LSB first), and a stop bit (logical ‘1’). When data is received, the stop bit is stored ...

Page 26

Philips Semiconductors 8.18.7 Break detect Break detect is reported in the status register (SSTAT). A break is detected when 11 consecutive bits are sensed LOW. The break detect can be used to reset the device and force the device into ...

Page 27

Philips Semiconductors 2 8.19 I C-bus serial interface 2 I C-bus uses two wires (SDA and SCL) to transfer information between devices connected to the bus, and it has the following features: • Bidirectional data transfer between masters and slaves ...

Page 28

Philips Semiconductors P1.3/SDA P1.2/SCL Fig 9. I 9397 750 14469 Product data P89LPC920/921/922/9221 8-bit microcontrollers with two-clock 80C51 core ADDRESS REGISTER P1.3 INPUT FILTER OUTPUT STAGE BIT COUNTER / ARBITRATION & INPUT SYNC LOGIC FILTER SERIAL CLOCK OUTPUT GENERATOR STAGE ...

Page 29

Philips Semiconductors 8.20 Analog comparators Two analog comparators are provided on the P89LPC920/921/922/9221. Input and output options allow use of the comparators in a number of different configurations. Comparator operation is such that the output is a logical one (which ...

Page 30

Philips Semiconductors 8.20.2 Comparator interrupt Each comparator has an interrupt flag contained in its configuration register. This flag is set whenever the comparator output changes state. The flag may be polled by software or may be used to generate an ...

Page 31

Philips Semiconductors 8.22 Watchdog timer The Watchdog timer causes a system reset when it underflows as a result of a failure to feed the timer prior to the timer reaching its terminal count. It consists of a programmable 12-bit prescaler, ...

Page 32

Philips Semiconductors 8.24 Flash program memory 8.24.1 General description The P89LPC920/921/922/9221 Flash memory provides in-circuit electrical erasure and programming. The Flash can be read, erased, or written as bytes. The Sector and Page Erase functions can erase any Flash sector ...

Page 33

Philips Semiconductors Flash programming and erasing: programming of the Flash memory that may be used. First, the Flash may be programmed or erased in the end-user application by calling low-level routines through a common entry point. Second, the on-chip ISP ...

Page 34

Philips Semiconductors and Boot Status Bit. After programming the Flash, the Boot Status Bit should be programmed to zero in order to allow execution of the user’s application code beginning at address 0000H. In-System Programming (ISP): removing the microcontroller from ...

Page 35

Philips Semiconductors 9. Limiting values [1] Table 7: Limiting values In accordance with the Absolute Maximum Rating System (IEC 60134). Symbol Parameter T operating bias ambient temperature amb(bias) T storage temperature range stg V voltage on XTAL1, XTAL2 pin to ...

Page 36

Philips Semiconductors 10. Static characteristics Table 8: DC electrical characteristics 3.6 V unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter I power supply current, ...

Page 37

Philips Semiconductors Table 8: DC electrical characteristics 3.6 V unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter V brownout trip voltage with BO BOV ...

Page 38

Philips Semiconductors 11. Dynamic characteristics Table 9: AC characteristics 3.6 V unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter f internal RC oscillator frequency ...

Page 39

Philips Semiconductors Table 10: AC characteristics 3.6 V unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter f internal RC oscillator frequency RCOSC (nominal f ...

Page 40

Philips Semiconductors t XLXL Clock t QVXH Output Data 0 Write to SBUF t XHDV Input Data Valid Clear RI Fig 12. Shift register mode timing 0.5 V 0.45 V Fig 13. External clock timing. Table 11: ...

Page 41

Philips Semiconductors 12. Comparator electrical characteristics Table 12: Comparator electrical characteristics 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter V offset voltage ...

Page 42

Philips Semiconductors 13. Package outline TSSOP20: plastic thin shrink small outline package; 20 leads; body width 4 pin 1 index 1 e DIMENSIONS (mm are the original dimensions) A UNIT ...

Page 43

Philips Semiconductors DIP20: plastic dual in-line package; 20 leads (300 mil pin 1 index 1 DIMENSIONS (inch dimensions are derived from the original mm dimensions UNIT b max. min. max. 1.73 mm ...

Page 44

Philips Semiconductors 14. Revision history Table 13: Revision history Rev Date CPCN Description 08 20041215 - Product data (9397 750 14469) Modification: • Added 18 MHz information. 07 20041203 - Product data (9397 750 14251) 06 20031121 - Product data ...

Page 45

Philips Semiconductors 15. Data sheet status [1] Level Data sheet status Product status I Objective data Development II Preliminary data Qualification III Product data Production [1] Please consult the most recently issued data sheet before initiating or completing a design. ...

Page 46

Philips Semiconductors Contents 1 General description . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 Features . . . . ...

Related keywords