p89lpc9402 NXP Semiconductors, p89lpc9402 Datasheet - Page 59

no-image

p89lpc9402

Manufacturer Part Number
p89lpc9402
Description
8-bit Microcontroller With Accelerated Two-clock 80c51 Core 8 Kb 3 V Byte-erasable ?ash With 32 Segment 4 Lcd Driver
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
p89lpc9402FBD
Manufacturer:
ON
Quantity:
783
Part Number:
p89lpc9402FBD,557
Manufacturer:
NXP Semiconductors
Quantity:
10 000
NXP Semiconductors
17. Contents
1
2
2.1
2.2
3
3.1
4
5
6
6.1
6.2
7
7.1
7.2
7.3
7.3.1
7.3.2
7.3.3
7.3.3.1
7.3.3.2
7.3.3.3
7.3.4
7.4
7.5
7.6
7.7
7.8
7.9
7.10
7.11
7.12
7.13
7.13.1
7.14
7.14.1
7.14.1.1
7.14.1.2
7.14.1.3
7.14.1.4
7.14.2
7.14.3
7.15
7.15.1
7.15.2
7.16
7.16.1
7.16.2
P89LPC9402_1
Product data sheet
General description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Ordering information . . . . . . . . . . . . . . . . . . . . . 3
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Functional diagram . . . . . . . . . . . . . . . . . . . . . . 6
Pinning information . . . . . . . . . . . . . . . . . . . . . . 7
Functional description . . . . . . . . . . . . . . . . . . 11
Principal features . . . . . . . . . . . . . . . . . . . . . . . 1
Additional features . . . . . . . . . . . . . . . . . . . . . . 1
Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 7
Special function registers . . . . . . . . . . . . . . . . 11
Enhanced CPU . . . . . . . . . . . . . . . . . . . . . . . . 17
Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Clock definitions . . . . . . . . . . . . . . . . . . . . . . . 17
CPU clock (OSCCLK). . . . . . . . . . . . . . . . . . . 17
Crystal oscillator option . . . . . . . . . . . . . . . . . 17
Low speed oscillator option . . . . . . . . . . . . . . 17
Medium speed oscillator option . . . . . . . . . . . 17
High speed oscillator option . . . . . . . . . . . . . . 17
Clock output . . . . . . . . . . . . . . . . . . . . . . . . . . 18
On-chip RC oscillator option . . . . . . . . . . . . . . 18
Watchdog oscillator option . . . . . . . . . . . . . . . 18
External clock input option . . . . . . . . . . . . . . . 18
Clock sources switch on the fly. . . . . . . . . . . . 18
CPU Clock (CCLK) wake-up delay . . . . . . . . . 20
CCLK modification: DIVM register . . . . . . . . . 20
Low power select . . . . . . . . . . . . . . . . . . . . . . 20
Memory organization . . . . . . . . . . . . . . . . . . . 20
Data RAM arrangement . . . . . . . . . . . . . . . . . 21
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
External interrupt inputs . . . . . . . . . . . . . . . . . 21
I/O ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Port configurations . . . . . . . . . . . . . . . . . . . . . 23
Quasi-bidirectional output configuration . . . . . 23
Open-drain output configuration . . . . . . . . . . . 23
Input-only configuration . . . . . . . . . . . . . . . . . 23
Push-pull output configuration . . . . . . . . . . . . 23
Port 0 analog functions . . . . . . . . . . . . . . . . . . 23
Additional port features. . . . . . . . . . . . . . . . . . 24
Power monitoring functions. . . . . . . . . . . . . . . 24
Brownout detection . . . . . . . . . . . . . . . . . . . . . 24
Power-on detection . . . . . . . . . . . . . . . . . . . . . 25
Power reduction modes . . . . . . . . . . . . . . . . . 25
Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Power-down mode . . . . . . . . . . . . . . . . . . . . . 25
Rev. 01 — 22 April 2009
8-bit microcontroller with accelerated two-clock 80C51 core
7.16.3
7.17
7.17.1
7.18
7.18.1
7.18.2
7.18.3
7.18.4
7.18.5
7.18.6
7.19
7.20
7.20.1
7.20.2
7.20.3
7.20.4
7.20.5
7.20.6
7.20.7
7.20.8
7.20.9
7.20.10
7.21
7.22
7.22.1
7.23
7.23.1
7.23.2
7.23.3
7.24
7.25
7.26
7.26.1
7.26.2
7.27
7.27.1
7.27.2
7.27.3
7.27.4
7.27.4.1
7.27.5
7.27.6
7.27.7
7.27.8
7.27.9
7.27.10
Total Power-down mode . . . . . . . . . . . . . . . . . 25
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Reset vector . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Timers/counters 0 and 1 . . . . . . . . . . . . . . . . 26
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Mode 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Timer overflow toggle output . . . . . . . . . . . . . 27
RTC/system timer. . . . . . . . . . . . . . . . . . . . . . 27
UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Baud rate generator and selection . . . . . . . . . 28
Framing error . . . . . . . . . . . . . . . . . . . . . . . . . 28
Break detect . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Double buffering . . . . . . . . . . . . . . . . . . . . . . . 29
Transmit interrupts with double buffering
enabled (modes 1, 2 and 3) . . . . . . . . . . . . . . 29
The 9
(modes 1, 2 and 3) . . . . . . . . . . . . . . . . . . . . . 29
I
SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Typical SPI configurations . . . . . . . . . . . . . . . 33
Analog comparators . . . . . . . . . . . . . . . . . . . . 35
Internal reference voltage. . . . . . . . . . . . . . . . 35
Comparator interrupt . . . . . . . . . . . . . . . . . . . 35
Comparators and power reduction modes . . . 35
Keypad interrupt . . . . . . . . . . . . . . . . . . . . . . . 36
Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 37
Additional features . . . . . . . . . . . . . . . . . . . . . 37
Software reset . . . . . . . . . . . . . . . . . . . . . . . . 37
Dual data pointers . . . . . . . . . . . . . . . . . . . . . 37
LCD driver . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
General description . . . . . . . . . . . . . . . . . . . . 38
Functional description . . . . . . . . . . . . . . . . . . 38
LCD bias voltages . . . . . . . . . . . . . . . . . . . . . 38
Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Internal clock . . . . . . . . . . . . . . . . . . . . . . . . . 38
Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Display register. . . . . . . . . . . . . . . . . . . . . . . . 39
Segment outputs . . . . . . . . . . . . . . . . . . . . . . 39
Backplane outputs . . . . . . . . . . . . . . . . . . . . . 39
Display RAM. . . . . . . . . . . . . . . . . . . . . . . . . . 39
Data pointer . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2
C-bus serial interface. . . . . . . . . . . . . . . . . . 30
th
bit (bit 8) in double buffering
P89LPC9402
© NXP B.V. 2009. All rights reserved.
continued >>
59 of 60

Related parts for p89lpc9402