![](http://datasheet.mmic.net.cn/260000/P89LPC938_datasheet_15928744/P89LPC938_68.png)
Koninklijke Philips Electronics N.V. 2005
All rights are reserved. Reproduction in whole or in part is prohibited without the prior
written consent of the copyright owner. The information presented in this document does
not form part of any quotation or contract, is believed to be accurate and reliable and may
be changed without notice. No liability will be accepted by the publisher for any
consequence of its use. Publication thereof does not convey nor imply any license under
patent- or other industrial or intellectual property rights.
Date of release: 25 February 2005
Document number: 9397 750 14051
Published in the Netherlands
Philips Semiconductors
P89LPC938
8-bit microcontroller with 10-bit A/D converter
20. 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.4
7.5
7.6
7.7
7.8
7.9
7.10
7.11
7.12
7.13
7.14
7.15
7.16
7.17
7.18
7.19
7.20
7.21
7.22
7.23
7.24
7.25
7.26
7.27
7.28
7.29
7.30
8
8.1
8.2
8.3
General description. . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Principal features . . . . . . . . . . . . . . . . . . . . . . . 1
Additional features . . . . . . . . . . . . . . . . . . . . . . 2
Ordering information. . . . . . . . . . . . . . . . . . . . . 3
Ordering options. . . . . . . . . . . . . . . . . . . . . . . . 3
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Functional diagram . . . . . . . . . . . . . . . . . . . . . . 5
Pinning information. . . . . . . . . . . . . . . . . . . . . . 6
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 7
Functional description . . . . . . . . . . . . . . . . . . 11
Special function registers . . . . . . . . . . . . . . . . 11
Enhanced CPU. . . . . . . . . . . . . . . . . . . . . . . . 19
Clocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
On-chip RC oscillator option. . . . . . . . . . . . . . 20
Watchdog oscillator option . . . . . . . . . . . . . . . 20
External clock input option . . . . . . . . . . . . . . . 20
CCLK wake-up delay . . . . . . . . . . . . . . . . . . . 21
CCLK modification: DIVM register . . . . . . . . . 21
Low power select . . . . . . . . . . . . . . . . . . . . . . 21
Memory organization . . . . . . . . . . . . . . . . . . . 21
Data RAM arrangement . . . . . . . . . . . . . . . . . 22
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
I/O ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Power monitoring functions. . . . . . . . . . . . . . . 25
Power reduction modes . . . . . . . . . . . . . . . . . 26
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Timers/counters 0 and 1. . . . . . . . . . . . . . . . . 28
RTC/system timer. . . . . . . . . . . . . . . . . . . . . . 28
CCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
I
2
C-bus serial interface . . . . . . . . . . . . . . . . . . 35
SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Analog comparators . . . . . . . . . . . . . . . . . . . . 40
KBI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Watchdog timer. . . . . . . . . . . . . . . . . . . . . . . . 42
Additional features . . . . . . . . . . . . . . . . . . . . . 42
Data EEPROM . . . . . . . . . . . . . . . . . . . . . . . . 43
Flash program memory. . . . . . . . . . . . . . . . . . 43
User configuration bytes. . . . . . . . . . . . . . . . . 46
User sector security bytes . . . . . . . . . . . . . . . 46
A/D converter . . . . . . . . . . . . . . . . . . . . . . . . . . 46
General description. . . . . . . . . . . . . . . . . . . . . 46
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Block diagram. . . . . . . . . . . . . . . . . . . . . . . . . 47
8.4
8.5
8.6
8.7
8.8
9
10
11
11.1
11.2
12
12.1
12.2
13
14
15
16
17
18
19
A/D operating modes . . . . . . . . . . . . . . . . . . . 47
Conversion start modes . . . . . . . . . . . . . . . . . 48
Boundary limits interrupt . . . . . . . . . . . . . . . . 48
Clock divider. . . . . . . . . . . . . . . . . . . . . . . . . . 49
Power-down and Idle mode . . . . . . . . . . . . . . 49
Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 50
Static characteristics . . . . . . . . . . . . . . . . . . . 51
Dynamic characteristics. . . . . . . . . . . . . . . . . 53
Waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
ISP entry mode . . . . . . . . . . . . . . . . . . . . . . . 60
Other characteristics . . . . . . . . . . . . . . . . . . . 60
Comparator electrical characteristics. . . . . . . 60
A/D converter electrical characteristics . . . . . 61
Package outline. . . . . . . . . . . . . . . . . . . . . . . . 62
Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 65
Revision history . . . . . . . . . . . . . . . . . . . . . . . 66
Data sheet status. . . . . . . . . . . . . . . . . . . . . . . 67
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Contact information . . . . . . . . . . . . . . . . . . . . 67