P89LPC9408FBD,557 NXP Semiconductors, P89LPC9408FBD,557 Datasheet

IC 80C51 MCU FLASH 8K 64-LQFP

P89LPC9408FBD,557

Manufacturer Part Number
P89LPC9408FBD,557
Description
IC 80C51 MCU FLASH 8K 64-LQFP
Manufacturer
NXP Semiconductors
Series
LPC900r
Datasheet

Specifications of P89LPC9408FBD,557

Program Memory Type
FLASH
Program Memory Size
8KB (8K x 8)
Package / Case
64-LQFP
Core Processor
8051
Core Size
8-Bit
Speed
18MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LCD, LED, POR, PWM, WDT
Number Of I /o
23
Eeprom Size
512 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2.4 V ~ 3.6 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
P89LPC9x
Core
80C51
Data Bus Width
8 bit
Data Ram Size
256 B
Interface Type
I2C/SPI/UART
Maximum Clock Frequency
18 MHz
Number Of Programmable I/os
23
Number Of Timers
2
Operating Supply Voltage
2.4 V to 3.6 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
PK51, CA51, A51, ULINK2
Minimum Operating Temperature
- 40 C
On-chip Adc
8-ch x 10-bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
OM10097 - KIT FOR LCD DEMO LPC9408EPM900K - EMULATOR/PROGRAMMER NXP P89LPC9568-4000 - DEMO BOARD SPI/I2C TO DUAL UART568-3510 - DEMO BOARD SPI/I2C TO UART568-1759 - EMULATOR DEBUGGER/PROGRMMR LPC9X
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
568-3228
935280583557
P89LPC9408FBD

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89LPC9408FBD,557
Manufacturer:
NXP Semiconductors
Quantity:
10 000
1. General description
2. Features
2.1 Principal features
2.2 Additional features
The P89LPC9408 is a multi-chip module consisting of a P89LPC938 single-chip
microcontroller combined with a PCF8576D universal LCD controller in a low-cost 64-pin
package. The LCD controller provides 32 segments and supports from 1 to 4 backplanes.
Display overhead is minimized by an on-chip display RAM with auto-increment
addressing.
P89LPC9408
8-bit microcontroller with two-clock 80C51 core 8 kB 3 V
byte-erasable flash, 32 segment
Rev. 01 — 16 December 2005
8 kB byte-erasable flash code memory organized into 1 kB sectors and 64-byte pages.
Single-byte erasing allows any byte(s) to be used as non-volatile data storage.
256-byte RAM data memory.
512-byte customer Data EEPROM on chip allows serialization of devices, storage of
set-up parameters, etc.
32 segment
8-input multiplexed 10-bit ADC. Two analog comparators with selectable inputs and
reference source.
Two 16-bit counter/timers (each may be configured to toggle a port output upon timer
overflow or to become a PWM output) and a 23-bit system timer that can also be used
as a Real-Time Clock (RTC).
Enhanced UART with fractional baud rate generator, break detect, framing error
detection, and automatic address detection; 400 kHz byte-wide I
communication port and SPI communication port.
CCU provides PWM, input capture, and output compare functions.
High-accuracy internal RC oscillator option allows operation without external oscillator
components. The RC oscillator option is selectable and fine tunable.
64-pin LQFP package with 20 microcontroller I/O pins minimum and up to 23
microcontroller I/O pins while using on-chip oscillator and reset options.
2.4 V to 3.6 V V
driven to 5.5 V).
Serial flash In-Circuit Programming (ICP) allows simple production coding with
commercial EPROM programmers. Flash security bits prevent reading of sensitive
application programs.
4 backplane LCD controller supports from 1 to 4 backplanes.
DD
operating range. I/O pins are 5 V tolerant (may be pulled up or
4 LCD driver, 10-bit ADC
Product data sheet
2
C-bus

Related parts for P89LPC9408FBD,557

P89LPC9408FBD,557 Summary of contents

Page 1

P89LPC9408 8-bit microcontroller with two-clock 80C51 core byte-erasable flash, 32 segment Rev. 01 — 16 December 2005 1. General description The P89LPC9408 is a multi-chip module consisting of a P89LPC938 single-chip microcontroller combined with a PCF8576D ...

Page 2

Philips Semiconductors 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 performance of the standard 80C51 running ...

Page 3

Philips Semiconductors 3. Ordering information Table 1: Type number P89LPC9408FBD 3.1 Ordering options Table 2: Type number P89LPC9408FBD 4. Block diagram P3[1:0] P2.5, P2[3:0] P1[7:0] P0[7:0] Fig 1. Block diagram P89LPC9408_1 Product data sheet 8-bit two-clock 80C51 core with 32 ...

Page 4

Philips Semiconductors P89LPC938 AUXILIARY RAM P3[1:0] CONFIGURABLE I/Os P2[7:0] CONFIGURABLE I/Os P1[7:0] CONFIGURABLE I/Os P0[7:0] CONFIGURABLE I/Os WATCHDOG TIMER AND OSCILLATOR PROGRAMMABLE OSCILLATOR DIVIDER X1 CRYSTAL CONFIGURABLE OR RESONATOR X2 Fig 2. Microcontroller section block diagram P89LPC9408_1 Product data sheet ...

Page 5

Philips Semiconductors V DD LCD BIAS GENERATOR V LCD CLK TIMING SYNC OSCILLATOR OSC V SS SCL INPUT FILTERS SDA Fig 3. LCD display controller block diagram 5. Functional diagram AD05 AD00 AD01 AD02 AD03 Fig 4. P89LPC9408 functional diagram ...

Page 6

Philips Semiconductors 6. Pinning information 6.1 Pinning P0.4/CIN1A/KBI4/AD03 P0.3/CIN1B/KBI3/AD02 P0.2/CIN2A/KBI2/AD01 P0.1/CIN2B/KBI1/AD00 Fig 5. Pin configuration 6.2 Pin description Table 3: Pin description Symbol Pin Type Description P0.0 to P0.7 I/O P89LPC9408_1 Product data sheet 8-bit two-clock 80C51 core with 32 ...

Page 7

Philips Semiconductors Table 3: Pin description …continued Symbol Pin Type Description P0.0/CMP2/ 8 I/O KBI0/AD05 P0.1/CIN2B/ 5 I/O KBI1/AD00 P0.2/CIN2A/ 4 I/O KBI2/AD01 P0.3/CIN1B/ 3 I/O KBI3/AD02 P0.4/CIN1A/ ...

Page 8

Philips Semiconductors Table 3: Pin description …continued Symbol Pin Type Description P1.2/T0/SCL 17 I/O I/O I/O P1.3/INT0/ 16 I/O SDA I I/O P1.4/INT1 P1.5/RST P1.6/OCB 10 I/O O P1.7/OCC/ 9 I/O AD04 O I ...

Page 9

Philips Semiconductors Table 3: Pin description …continued Symbol Pin Type Description P2.5/SPICLK 20 I/O I/O P3.0 to P3.1 I/O P3.0/XTAL2/ 14 I/O CLKOUT O O P3.1/XTAL1 13 I/O I SDA_LCD 63 I/O SCL_LCD 64 I BP0 to BP3 27 to ...

Page 10

Philips Semiconductors 7. Functional description Remark: Please refer to the P89LPC9408 User manual for a more detailed functional description. 7.1 Special function registers Remark: SFR accesses are restricted in the following ways: • User must not attempt to access any ...

Page 11

Table 4: Special function registers * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. MSB Bit address E7 ACC* Accumulator E0H AD0CON ADC0 control 97H ENBI0 register AD0INS ADC0 input select A3H ADI07 AD0MODA ...

Page 12

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. MSB DEEDAT Data EEPROM data F2H register DEEADR Data EEPROM F3H address register DIVM CPU clock 95H divide-by-M control ...

Page 13

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. MSB ICRAL Input capture A AAH register low ICRBH Input capture B AFH register high ICRBL Input capture B ...

Page 14

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. MSB OCRBH Output compare B FBH register high OCRBL Output compare B FAH register low OCRCH Output compare C ...

Page 15

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. MSB P3M1 Port 3 output B1H - mode 1 P3M2 Port 3 output B2H - mode 2 PCON Power ...

Page 16

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. MSB TAMOD Timer 0 and 1 8FH - auxiliary mode Bit address 8F TCON* Timer 0 and 1 88H ...

Page 17

Table 4: Special function registers …continued * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. MSB WDCON Watchdog control A7H PRE2 register WDL Watchdog load C1H WFEED1 Watchdog feed 1 C2H WFEED2 Watchdog feed ...

Page 18

Table 5: P89LPC938 extended special function registers Name Description ADC0HBND ADC0 high _boundary register, left (MSB) ADC0LBND ADC0 low_boundary register (MSB) AD0DAT0R ADC0 data register 0, right (LSB) AD0DAT0L ADC0 data register 0, left (MSB) AD0DAT1R ADC0 data register 1, ...

Page 19

Philips Semiconductors 7.2 Enhanced CPU The P89LPC9408 uses an enhanced 80C51 CPU which runs at six times the speed of standard 80C51 devices. A machine cycle consists of two CPU clock cycles, and most instructions execute in one or two ...

Page 20

Philips Semiconductors 7.3.6 Clock output The P89LPC9408 supports a user-selectable clock output function on the XTAL2/CLKOUT pin when crystal oscillator is not being used. This condition occurs if another clock source has been selected (on-chip RC oscillator, watchdog oscillator, external ...

Page 21

Philips Semiconductors XTAL1 XTAL2 (7.3728 MHz (400 kHz Fig 6. Block diagram of oscillator control 7.7 CPU Clock (CCLK) wake-up delay The P89LPC9408 has an internal wake-up timer that delays the clock until it stabilizes depending ...

Page 22

Philips Semiconductors 7.10 Memory organization The various P89LPC9408 memory spaces are as follows: • DATA 128 bytes of internal data memory space (00H:7FH) accessed via direct or indirect addressing, using instructions other than MOVX and MOVC. All or part of ...

Page 23

Philips Semiconductors Each interrupt source can be individually programmed to one of four priority levels by setting or clearing bits in the interrupt priority registers IP0, IP0H, IP1, IP1H, IP2, and IP2H. An interrupt service routine in progress can be ...

Page 24

Philips Semiconductors RTCF ERTC (RTCCON.1) WDOVF any CCU interrupt ENADCI0 Fig 7. Interrupt sources, interrupt enables, and power-down wake-up sources 7.13 I/O ports The P89LPC9408 has four I/O ports: Port 0 and Port 1 are 8-bit ports. Port 2 is ...

Page 25

Philips Semiconductors Table 7: Number of I/O pins available Clock source External clock input Low/medium/high speed oscillator (external crystal or resonator) [1] Required for operation above 12 MHz. 7.13.1 Port configurations All but three I/O port pins on the P89LPC9408 ...

Page 26

Philips Semiconductors 7.13.1.4 Push-pull output configuration The push-pull output configuration has the same pull-down structure as both the open-drain and the quasi-bidirectional output modes, but provides a continuous strong pull-up when the port latch contains a logic 1. The push-pull ...

Page 27

Philips Semiconductors that can be below 2.7 V, BOE should be left in the unprogrammed state so that the device can operate at 2.4 V, otherwise continuous brownout reset may prevent the device from operating. For correct activation of Brownout ...

Page 28

Philips Semiconductors Remark: During a power-up sequence, the RPE selection is overridden and this pin will always function as a reset input. An external circuit connected to this pin should not hold this pin LOW during a power-on sequence as ...

Page 29

Philips Semiconductors 7.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 30

Philips Semiconductors • Seven interrupts with common interrupt vector (one Overflow, two Capture, four Compare) • Safe 16-bit read/write via shadow registers. 7.19.1 CCU Clock (CCUCLK) The CCU runs on the CCUCLK, which is either PCLK in basic timer mode, ...

Page 31

Philips Semiconductors As with basic timer operation, when the PWM (compare) pins are connected to the compare logic, their logic state remains unchanged. However, since bit FCOx is used to hold the halt value, only a compare event can change ...

Page 32

Philips Semiconductors 7.19.7 Alternating output mode In asymmetrical mode, the user can set up PWM channels A/B and C/D as alternating pairs for bridge drive control. In this mode the output of these PWM channels are alternately gated on every ...

Page 33

Philips Semiconductors 7.19.9 CCU interrupts There are seven interrupt sources on the CCU which share a common interrupt vector. EA (IEN0.7) ECCU (IEN1.4) TOIE2 (TICR2.7) TOIF2 (TIFR2.7) TICIE2A (TICR2.0) TICF2A (TIFR2.0) TICIE2B (TICR2.1) TICF2B (TIFR2.1) TOCIE2A (TICR2.3) TOCF2A (TIFR2.3) TOCIE2B ...

Page 34

Philips Semiconductors 7.20.3 Mode 2 11 bits are transmitted (through TXD) or received (through RXD): start bit (logic 0), 8 data bits (LSB first), a programmable 9 transmitted, the 9 Or, for example, the parity bit (P, in the PSW) ...

Page 35

Philips Semiconductors 7.20.8 Double buffering The UART has a transmit double buffer that allows buffering of the next character to be written to SBUF while the first character is being transmitted. Double buffering allows transmission of a string of characters ...

Page 36

Philips Semiconductors Fig 13. I P89LPC9408_1 Product data sheet 8-bit two-clock 80C51 core with 32 segment 2 I C-bus P1.3/SDA P1.2/SCL MCU 2 C-bus configuration Rev. 01 — 16 December 2005 P89LPC9408 4 LCD driver, 10-bit ADC ...

Page 37

Philips Semiconductors P1.3/SDA P1.2/SCL Fig 14. I P89LPC9408_1 Product data sheet 8-bit two-clock 80C51 core with 32 segment P1.3 INPUT FILTER OUTPUT STAGE INPUT FILTER OUTPUT STAGE timer 1 overflow I2CON P1.2 I2SCLH I2SCLL status bus I2STAT 2 C-bus serial ...

Page 38

Philips Semiconductors 7.22 SPI The P89LPC9408 provides another high-speed serial communication interface—the SPI interface. SPI is a full-duplex, high-speed, synchronous communication bus with two operation modes: Master mode and Slave mode 4.5 Mbit/s can be supported in Master ...

Page 39

Philips Semiconductors 7.22.1 Typical SPI configurations Fig 16. SPI single master single slave configuration Fig 17. SPI dual device configuration, where either can be a master or a slave P89LPC9408_1 Product data sheet 8-bit two-clock 80C51 core with 32 segment ...

Page 40

Philips Semiconductors Fig 18. SPI single master multiple slaves configuration 7.23 Analog comparators Two analog comparators are provided on the P89LPC9408. Input and output options allow use of the comparators in a number of different configurations. Comparator operation is such ...

Page 41

Philips Semiconductors (P0.4) CIN1A (P0.3) CIN1B (P0.5) CMPREF V ref(bg) (P0.2) CIN2A (P0.1) CIN2B Fig 19. Comparator input and output connections 7.23.1 Internal reference voltage An internal reference voltage generator may supply a default reference when a single comparator input ...

Page 42

Philips Semiconductors 7.24 Keypad Interrupt (KBI) The Keypad Interrupt function is intended primarily to allow a single interrupt to be generated when Port 0 is equal to or not equal to a certain pattern. This function can be used for ...

Page 43

Philips Semiconductors MOV WFEED1, #0A5H MOV WFEED2, #05AH watchdog oscillator 32 PCLK WDCON (A7H) (1) Watchdog reset can also be caused by an invalid feed sequence writing to WDCON not immediately followed by a feed sequence. Fig 20. ...

Page 44

Philips Semiconductors 7.27.2 Functional description The LCD controller is a versatile peripheral device designed to interface microcontrollers to a wide variety of LCDs. It can directly drive any static or multiplexed LCD containing up to four backplanes and up to ...

Page 45

Philips Semiconductors 7.27.7 Segment outputs The LCD drive section includes 32 segment outputs S0 to S31. The segment output signals are generated according to the multiplexed backplane signals and the display latch data. When less than 32 segment outputs are ...

Page 46

Philips Semiconductors An additional feature allows an arbitrary selection of LCD segments to be blinked in the static and 1:2 drive modes. This is implemented without any communication overheads by the output bank selector which alternates the displayed data between ...

Page 47

Philips Semiconductors 7.29 Flash program memory 7.29.1 General description The P89LPC9408 flash memory provides in-circuit electrical erasure and programming. The flash can be erased, read, and written as bytes. The Sector and Page Erase functions can erase any flash sector ...

Page 48

Philips Semiconductors 7.29.5 Flash programming and erasing Four different methods of erasing or programming of the flash are available. The flash may be programmed or erased in the end-user application (IAP) under control of the application’s firmware. Another option is ...

Page 49

Philips Semiconductors 7.29.9 Power-on reset code execution The P89LPC9408 contains two special flash elements: the Boot Vector and the Boot Status Bit. Following reset, the P89LPC9408 examines the contents of the Boot Status Bit. If the Boot Status Bit is ...

Page 50

Philips Semiconductors 8. ADC 8.1 General description The P89LPC9408 has a 10-bit, 8-channel multiplexed successive approximation analog-to-digital converter module. A block diagram of the ADC is shown in The ADC consists of an 8-input multiplexer which feeds a sample-and-hold circuit ...

Page 51

Philips Semiconductors 8.4 ADC operating modes 8.4.1 Fixed channel, single conversion mode A single input channel can be selected for conversion. A single conversion will be performed and the result placed in the result register pair which corresponds to the ...

Page 52

Philips Semiconductors 8.4.6 Single step mode This special mode allows ‘single-stepping’ auto scan conversion mode. Any combination of the eight input channels can be selected for conversion. After each channel is converted, an interrupt is generated, if enabled, ...

Page 53

Philips Semiconductors 9. Limiting values Table 11: Limiting values In accordance with the Absolute Maximum Rating System (IEC 60134). Symbol Parameter T bias ambient temperature amb(bias) T storage temperature stg I HIGH-state output current per OH(I/O) input/output pin I LOW-state ...

Page 54

Philips Semiconductors Table 12: Static electrical characteristics 3.6 V unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter V LOW-state output voltage OL V ...

Page 55

Philips Semiconductors 11. Dynamic characteristics Table 13: Dynamic characteristics (12 MHz 2 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter f internal ...

Page 56

Philips Semiconductors Table 13: Dynamic characteristics (12 MHz 2 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter t SPICLK HIGH time SPICLKH ...

Page 57

Philips Semiconductors Table 14: Dynamic characteristics (18 MHz 3 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter f internal RC oscillator frequency ...

Page 58

Philips Semiconductors Table 14: Dynamic characteristics (18 MHz 3 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter t SPICLK HIGH time SPICLKH ...

Page 59

Philips Semiconductors 11.1 Waveforms clock t QVXH output data write to SBUF t XHDV input data clear RI Fig 22. Shift register mode timing V 0 0.2V 0.2V 0.45 V Fig 23. External clock timing P89LPC9408_1 Product data ...

Page 60

Philips Semiconductors SS SPICLK (CPOL = 0) (output) SPICLK (CPOL = 1) (output) MISO (input) t MOSI SPIF (output) Fig 24. SPI master timing (CPHA = 0) SS SPICLK (CPOL = 0) (output) SPICLK (CPOL = 1) (output) MISO (input) ...

Page 61

Philips Semiconductors SS t SPIR t SPILEAD SPICLK (CPOL = 0) (input) t SPIF SPICLK (CPOL = 1) (input) t SPIA MISO (output) t SPIDSU MOSI (input) Fig 26. SPI slave timing (CPHA = SPIR t SPILEAD ...

Page 62

Philips Semiconductors 11.2 ISP entry mode Table 15: Dynamic characteristics, ISP entry mode 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter ...

Page 63

Philips Semiconductors 13. ADC electrical characteristics Table 17: ADC electrical characteristics 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb All limits valid for ...

Page 64

Philips Semiconductors 14. Package outline LQFP64: plastic low profile quad flat package; 64 leads; body 1 pin 1 index DIMENSIONS (mm are the original ...

Page 65

Philips Semiconductors 15. Abbreviations Table 18: Acronym ADC CPU EPROM EEPROM EMI ISP LCD LED PWM RAM RC SFR SPI UART P89LPC9408_1 Product data sheet 8-bit two-clock 80C51 core with 32 segment Acronym list Description Analog to Digital Converter Central ...

Page 66

Philips Semiconductors 16. Revision history Table 19: Revision history Document ID Release date P89LPC9408_1 20051216 P89LPC9408_1 Product data sheet 8-bit two-clock 80C51 core with 32 segment Data sheet status Change notice Product data sheet - Rev. 01 — 16 December ...

Page 67

Philips Semiconductors 17. 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 68

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

Page 69

Philips Semiconductors 7.27.4 Oscillator 7.27.5 Timing . . . . . ...

Related keywords