P89LPC9408
8-bit microcontroller with two-clock 80C51 core 8 kB 3 V
byte-erasable flash, 32 segment
×
4 LCD driver, 10-bit ADC
Rev. 01 — 16 December 2005
Product data sheet
1. General description
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.
2. Features
2.1 Principal features
s
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.
s
256-byte RAM data memory.
s
512-byte customer Data EEPROM on chip allows serialization of devices, storage of
set-up parameters, etc.
s
32 segment
×
4 backplane LCD controller supports from 1 to 4 backplanes.
s
8-input multiplexed 10-bit ADC. Two analog comparators with selectable inputs and
reference source.
s
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).
s
Enhanced UART with fractional baud rate generator, break detect, framing error
detection, and automatic address detection; 400 kHz byte-wide I
2
C-bus
communication port and SPI communication port.
s
CCU provides PWM, input capture, and output compare functions.
s
High-accuracy internal RC oscillator option allows operation without external oscillator
components. The RC oscillator option is selectable and fine tunable.
s
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.2 Additional features
s
2.4 V to 3.6 V V
DD
operating range. I/O pins are 5 V tolerant (may be pulled up or
driven to 5.5 V).
s
Serial flash In-Circuit Programming (ICP) allows simple production coding with
commercial EPROM programmers. Flash security bits prevent reading of sensitive
application programs.
Philips Semiconductors
P89LPC9408
8-bit two-clock 80C51 core with 32 segment
×
4 LCD driver, 10-bit ADC
s
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 at the same clock frequency. A
lower clock frequency for the same performance results in power savings and reduced
EMI.
s
Serial flash In-System Programming (ISP) allows coding while the device is mounted
in the end application.
s
In-Application Programming (IAP) of the flash code memory. This allows changing the
code in a running application.
s
Watchdog timer with separate on-chip oscillator, requiring no external components.
The watchdog prescaler is selectable from eight values.
s
Low voltage detect (brownout) allows a graceful system shutdown when power fails.
May optionally be configured as an interrupt.
s
Idle and two different power-down reduced power modes. Improved wake-up from
Power-down mode (a LOW interrupt input starts execution). Typical power-down
current is 9
µA
typical (total power-down with voltage comparators disabled).
s
Active-LOW reset. On-chip power-on reset allows operation without external reset
components. A reset counter and reset glitch suppression circuitry prevent spurious
and incomplete resets. A software reset function is also available.
s
Configurable on-chip oscillator with frequency range options selected by user
programmed flash configuration bits. Oscillator options support frequencies from
20 kHz to the maximum operating frequency of 18 MHz.
s
Oscillator fail detect. The watchdog timer has a separate fully on-chip oscillator
allowing it to perform an oscillator fail detect function.
s
Programmable port output configuration options: quasi-bidirectional, open drain,
push-pull, input-only.
s
Port ‘input pattern match’ detect. Port 0 may generate an interrupt when the value of
the pins match or do not match a programmable pattern.
s
LED drive capability (20 mA) on all port pins. A maximum limit is specified for the
entire chip.
s
Controlled slew rate port outputs to reduce EMI. Outputs have approximately 10 ns
minimum ramp times.
s
Only power and ground connections are required to operate the P89LPC9408 when
internal reset option is selected.
s
Four interrupt priority levels.
s
Eight keypad interrupt inputs, plus two additional external interrupt inputs.
s
Schmitt trigger port inputs.
s
Second data pointer.
P89LPC9408_1
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
Product data sheet
Rev. 01 — 16 December 2005
2 of 69
Philips Semiconductors
P89LPC9408
8-bit two-clock 80C51 core with 32 segment
×
4 LCD driver, 10-bit ADC
3. Ordering information
Table 1:
Ordering information
Package
Name
P89LPC9408FBD
LQFP64
Description
plastic low profile quad flat package; 64 leads;
body 14
×
14
×
1.4 mm
Version
SOT791-1
Type number
3.1 Ordering options
Table 2:
Part options
Flash memory
8 kB
Temperature range
−40 °C
to +85
°C
Frequency
0 MHz to 18 MHz
Type number
P89LPC9408FBD
4. Block diagram
P3[1:0]
S[31:0]
P2.5, P2[3:0]
P89LPC938
MCU
P1[7:0]
PCF8576D
LCD
CONTROLLER
BP[3:0]
V
LCD
P0[7:0]
A[2:0] SA0 OSC
002aab775
SCL, SDA
SCL_LCD, SDA_LCD
Fig 1. Block diagram
P89LPC9408_1
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
Product data sheet
Rev. 01 — 16 December 2005
3 of 69
Philips Semiconductors
P89LPC9408
8-bit two-clock 80C51 core with 32 segment
×
4 LCD driver, 10-bit ADC
P89LPC938
ACCELERATED 2-CLOCK 80C51 CPU
8 kB
CODE FLASH
256-BYTE
DATA RAM
512-BYTE
AUXILIARY RAM
internal
bus
UART
TXD
RXD
SCL
SDA
SPICLK
MOSI
MISO
SS
I
2
C-BUS
SPI
512-BYTE
DATA EEPROM
REAL-TIME CLOCK/
SYSTEM TIMER
TIMER 0
TIMER 1
T0
T1
CMP2
ANALOG
COMPARATORS
CIN2A
CIN1A
OCA
CCU (CAPTURE/
COMPARE UNIT)
OCC
ICA
CIN2B
CMP1
CIN1B
OCB
OCD
ICB
P3[1:0]
PORT 3
CONFIGURABLE I/Os
PORT 2
CONFIGURABLE I/Os
PORT 1
CONFIGURABLE I/Os
PORT 0
CONFIGURABLE I/Os
P2[7:0]
P1[7:0]
P0[7:0]
AD00
KEYPAD
INTERRUPT
WATCHDOG TIMER
AND OSCILLATOR
AD02
ADC0
AD04
AD06
AD01
AD03
AD05
AD07
PROGRAMMABLE
OSCILLATOR DIVIDER
X1
X2
CONFIGURABLE
OSCILLATOR
CPU
clock
ON-CHIP
RC
OSCILLATOR
POWER MONITOR
(POWER-ON RESET,
BROWNOUT RESET)
CRYSTAL
OR
RESONATOR
002aab106
Fig 2. Microcontroller section block diagram
P89LPC9408_1
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
Product data sheet
Rev. 01 — 16 December 2005
4 of 69
Philips Semiconductors
P89LPC9408
8-bit two-clock 80C51 core with 32 segment
×
4 LCD driver, 10-bit ADC
BP0 BP1 BP2 BP3
S0 TO S39
V
DD
BACKPLANE
OUTPUTS
LCD
VOLTAGE
SELECTOR
LCD BIAS
GENERATOR
V
LCD
SHIFT REGISTER
DISPLAY SEGMENT OUTPUTS
DISPLAY LATCH
CLK
SYNC
TIMING
BLINKER
DISPLAY
CONTROLLER
INPUT
BANK
SELECTOR
DISPLAY
RAM
40
×
4 BITS
OUTPUT
BANK
SELECTOR
OSC
OSCILLATOR
POWER-
ON
RESET
COMMAND
DECODER
DATA
POINTER
V
SS
SCL
SDA
INPUT
FILTERS
I
2
C-BUS
CONTROLLER
SUB-
ADDRESS
COUNTER
SA0
A0 A1 A2
002aab470
Fig 3. LCD display controller block diagram
5. Functional diagram
V
DD
V
SS
AD05
AD00
AD01
AD02
AD03
KBI0
KBI1
KBI2
KBI3
KBI4
KBI5
KBI6
KBI7
CLKOUT
CMP2
CIN2B
CIN2A
CIN1B
CIN1A
CMPREF
CMP1
T1
XTAL2
PORT 0
PORT 1
P89LPC9408
PORT 3
TXD
RXD
T0
INT0
INT1
RST
OCB
OCC
ICB
OCD
MOSI
MISO
SS
SPICLK
OCA
ICA
SCL
SDA
AD04
AD07
AD06
XTAL1
PORT 2
002aab776
Fig 4. P89LPC9408 functional diagram
P89LPC9408_1
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
Product data sheet
Rev. 01 — 16 December 2005
5 of 69