P89LPC924_925 NXP Semiconductors, P89LPC924_925 Datasheet

The P89LPC924/925 are single-chip microcontrollers designed for applicationsdemanding high-integration, low cost solutions over a wide range of performancerequirements

P89LPC924_925

Manufacturer Part Number
P89LPC924_925
Description
The P89LPC924/925 are single-chip microcontrollers designed for applicationsdemanding high-integration, low cost solutions over a wide range of performancerequirements
Manufacturer
NXP Semiconductors
Datasheet
1. General description
2. Features
2.1 Principal features
The P89LPC924/925 are single-chip microcontrollers designed for applications
demanding high-integration, low cost solutions over a wide range of performance
requirements. The P89LPC924/925 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 P89LPC924/925 in order to reduce component count, board space, and system
cost.
P89LPC924/925
8-bit microcontrollers with accelerated two-clock 80C51 core
4 kB/8 kB 3 V low-power Flash with 8-bit A/D converter
Rev. 03 — 15 December 2004
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.
4-input 8-bit multiplexed A/D converter/single DAC output. 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).
15 I/O pins minimum. Up to 18 I/O pins while using on-chip oscillator and reset
options.
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 P89LPC924_925

P89LPC924_925 Summary of contents

Page 1

P89LPC924/925 8-bit microcontrollers with accelerated two-clock 80C51 core 4 kB low-power Flash with 8-bit A/D converter Rev. 03 — 15 December 2004 1. General description The P89LPC924/925 are single-chip microcontrollers designed for applications demanding high-integration, low cost ...

Page 2

Philips Semiconductors 2.2 Additional features 20-pin TSSOP package. A high performance 80C51 CPU provides instruction cycle times of 111 ns to 222 ns for all instructions except multiply and divide when executing at 18 MHz. This is six times the ...

Page 3

Philips Semiconductors 3. Ordering information Table 1: Type number P89LPC924FDH P89LPC925FDH 3.1 Ordering options Table 2: Type number P89LPC924FDH P89LPC925FDH 9397 750 14471 Product data 8-bit microcontrollers with accelerated two-clock 80C51 core Ordering information Package Name Description TSSOP20 plastic thin ...

Page 4

Philips Semiconductors 4. Block diagram P89LPC924/925 CONFIGURABLE I/Os CONFIGURABLE I/Os CONFIGURABLE I/Os PROGRAMMABLE OSCILLATOR DIVIDER CRYSTAL OR RESONATOR Fig 1. Block diagram. 9397 750 14471 Product data 8-bit microcontrollers with accelerated 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. 9397 750 14471 Product data 8-bit microcontrollers with accelerated two-clock 80C51 core handbook, halfpage KBI0/CMP2/ RST/P1 ...

Page 6

Philips Semiconductors 5.2 Pin description Table 3: Pin description Symbol Pin Type Description P0.0 - P0.7 1, 20, 19, I/O Port 0: Port 8-bit I/O port with a user-configurable output type. During reset 18, 17, 16, Port ...

Page 7

Philips Semiconductors Table 3: Pin description …continued Symbol Pin Type Description [1] P1.0 - P1.7 12, 11, 10, I/O, I Port 1: Port 8-bit I/O port with a user-configurable output type, except for three ...

Page 8

Philips Semiconductors Table 3: Pin description …continued Symbol Pin Type Description P3 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 ...

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 ADCON1 A/D control register 1 97H ADINS A/D input select A3H ...

Page 11

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR addr. FMCON Program Flash control (Read) E4H Program Flash control (Write) E4H FMDATA Program Flash data ...

Page 12

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR addr. P0* Port 0 80H Bit address P1* Port 1 90H Bit address P3* Port 3 ...

Page 13

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR addr. SSTAT Serial port extended status BAH register SP Stack pointer 81H TAMOD Timer 0 and ...

Page 14

Philips Semiconductors 8. Functional description Remark: Please refer to the P89LPC924/925 User’s Manual for a more detailed functional description. 8.1 Enhanced CPU The P89LPC924/925 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 4. Block diagram of oscillator control. 9397 750 14471 Product data 8-bit microcontrollers with accelerated 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 P89LPC924/925 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.9 A/D converter 8.9.1 General description The P89LPC924/925 has an 8-bit, 4-channel multiplexed successive approximation analog-to-digital converter module. A block diagram of the A/D converter is shown in Figure circuit providing an input signal to one of two ...

Page 19

Philips Semiconductors 8.9.2 Features • 8-bit, 4-channel multiplexed input, successive approximation A/D converter. • Four result registers. • Six operating modes – Fixed channel, single conversion mode – Fixed channel, continuous conversion mode – Auto scan, single conversion mode – ...

Page 20

Philips Semiconductors channels have been converted. The process will repeat starting with the first selected channel. Additional conversion results will again cycle through the four result registers, overwriting the previous results. Continous conversions continue until terminated by the user. Dual ...

Page 21

Philips Semiconductors 8.9.5 Boundary limits interrupt The A/D converter has both a high and low boundary limit register. After the four MSBs have been converted, these four bits are compared with the four MSBs of the boundary high and low ...

Page 22

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

Page 23

Philips Semiconductors RTCF ERTC (RTCCON.1) WDOVF EA (IE0.7) TI & RI/RI ENADCI1 ADCI1 ENBI1 BNDI1 EAD Fig 6. Interrupt sources, interrupt enables, and power-down wake-up sources. 8.13 I/O ports The P89LPC924/925 has three I/O ports: Port 0, Port 1, and ...

Page 24

Philips Semiconductors 8.13.1 Port configurations All but three I/O port pins on the P89LPC924/925 may be configured by software to one of four types on a bit-by-bit basis. These are: quasi-bidirectional (standard 80C51 port outputs), push-pull, open drain, and input-only. ...

Page 25

Philips Semiconductors Digital outputs are disabled by putting the port output into the Input-Only (high impedance) mode as described in Digital inputs on Port 0 may be disabled through the use of the PT0AD register, bits 1:5. On any reset, ...

Page 26

Philips Semiconductors 8.15 Power reduction modes The P89LPC924/925 supports three different power reduction modes. These modes are Idle mode, Power-down mode, and total Power-down mode. 8.15.1 Idle mode Idle mode leaves peripherals running in order to allow them to activate ...

Page 27

Philips Semiconductors Remark: During a power cycle, V characteristics” on page reset. Reset can be triggered from the following sources: • External reset pin (during power- user configured via UCFG1. This option must be used for an oscillator ...

Page 28

Philips Semiconductors 8.17.1 Mode 0 Putting either Timer into Mode 0 makes it look like an 8048 Timer, which is an 8-bit Counter with a divide-by-32 prescaler. In this mode, the Timer register is configured as a 13-bit register. Mode ...

Page 29

Philips Semiconductors 8.19.1 Mode 0 Serial data enters and exits through RxD. TxD outputs the shift clock. 8 bits are transmitted or received, LSB first. The baud rate is fixed at frequency. 8.19.2 Mode 1 10 bits are transmitted (through ...

Page 30

Philips Semiconductors 8.19.6 Framing error Framing error is reported in the status register (SSTAT). In addition, if SMOD0 (PCON.6) is ‘1’, framing errors can be made available in SCON.7 respectively. If SMOD0 is ‘0’, SCON.7 is SM0 recommended ...

Page 31

Philips Semiconductors 2 8.20 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 32

Philips Semiconductors P1.3/SDA P1.2/SCL Fig 9. I 9397 750 14471 Product data 8-bit microcontrollers with accelerated 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 33

Philips Semiconductors 8.21 Analog comparators Two analog comparators are provided on the P89LPC924/925. 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 34

Philips Semiconductors 8.21.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 35

Philips Semiconductors 8.23 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 36

Philips Semiconductors 8.25 Flash program memory 8.25.1 General description The P89LPC924/925 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 37

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 38

Philips Semiconductors In-System Programming (ISP): removing the microcontroller from the system. The In-System Programming facility consists of a series of internal hardware resources coupled with internal firmware to facilitate remote programming of the P89LPC924/925 through the serial port. This firmware ...

Page 39

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 40

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 41

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 42

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 43

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 44

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 45

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 46

Philips Semiconductors 14. 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 47

Philips Semiconductors 15. Revision history Table 14: Revision history Rev Date CPCN Description 03 20041215 - Product data (9397 750 14471) Modification: • Added 18 MHz information. 02 20040615 - Product data (9397 750 13459) 01 20040309 - Objective data ...

Page 48

Philips Semiconductors 16. 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 49

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

Related keywords