English
Language : 

P89LPC932A1 Datasheet, PDF (63/64 Pages) NXP Semiconductors – 8-Bit Microcontroller with accelerated two-clock 80C51 core 8kB 3V byte-erasable flash with 512-byte data EEPROM
Philips Semiconductors
P89LPC932A1
8-bit microcontroller with accelerated two-clock 80C51 core
20. Contents
1
General description . . . . . . . . . . . . . . . . . . . . . . 1
2
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.1
Principal features . . . . . . . . . . . . . . . . . . . . . . . 1
2.2
Additional features . . . . . . . . . . . . . . . . . . . . . . 1
2.3
Comparison to the P89LPC932 . . . . . . . . . . . . 2
3
Ordering information . . . . . . . . . . . . . . . . . . . . . 3
3.1
Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3
4
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5
Functional diagram . . . . . . . . . . . . . . . . . . . . . . 5
6
Pinning information . . . . . . . . . . . . . . . . . . . . . . 6
6.1
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.2
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 8
7
Functional description . . . . . . . . . . . . . . . . . . 12
7.1
7.2
7.3
7.3.1
7.3.2
7.3.3
7.3.4
7.3.5
7.3.6
7.4
7.5
7.6
7.7
7.8
7.9
7.10
7.11
7.12
7.12.1
7.13
7.13.1
7.13.1.1
7.13.1.2
7.13.1.3
7.13.1.4
7.13.2
7.13.3
7.14
7.14.1
7.14.2
7.15
7.15.1
7.15.2
7.15.3
Special function registers . . . . . . . . . . . . . . . . 12
Enhanced CPU . . . . . . . . . . . . . . . . . . . . . . . . 18
Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Clock definitions . . . . . . . . . . . . . . . . . . . . . . . 18
CPU clock (OSCCLK). . . . . . . . . . . . . . . . . . . 18
Low speed oscillator option . . . . . . . . . . . . . . 18
Medium speed oscillator option . . . . . . . . . . . 18
High speed oscillator option . . . . . . . . . . . . . . 18
Clock output . . . . . . . . . . . . . . . . . . . . . . . . . . 18
On-chip RC oscillator option . . . . . . . . . . . . . . 19
Watchdog oscillator option . . . . . . . . . . . . . . . 19
External clock input option . . . . . . . . . . . . . . . 19
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 . . . . . . . . . . . . 24
Port 0 analog functions . . . . . . . . . . . . . . . . . . 24
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
Total Power-down mode . . . . . . . . . . . . . . . . . 25
7.16
7.16.1
7.17
7.17.1
7.17.2
7.17.3
7.17.4
7.17.5
7.17.6
7.18
7.19
7.19.1
7.19.2
7.19.3
7.19.4
7.19.5
7.19.6
7.19.7
7.19.8
7.19.9
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.28
7.28.1
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
CCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
CCU clock . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
CCUCLK prescaling . . . . . . . . . . . . . . . . . . . . 28
Basic timer operation . . . . . . . . . . . . . . . . . . . 28
Output compare . . . . . . . . . . . . . . . . . . . . . . . 28
Input capture . . . . . . . . . . . . . . . . . . . . . . . . . 28
PWM operation . . . . . . . . . . . . . . . . . . . . . . . 29
Alternating output mode . . . . . . . . . . . . . . . . . 30
PLL operation. . . . . . . . . . . . . . . . . . . . . . . . . 30
CCU interrupts . . . . . . . . . . . . . . . . . . . . . . . . 31
UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Baud rate generator and selection . . . . . . . . . 32
Framing error . . . . . . . . . . . . . . . . . . . . . . . . . 32
Break detect . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Double buffering . . . . . . . . . . . . . . . . . . . . . . . 33
Transmit interrupts with double buffering
enabled (modes 1, 2 and 3) . . . . . . . . . . . . . . 33
The 9th bit (bit 8) in double buffering
(modes 1, 2 and 3) . . . . . . . . . . . . . . . . . . . . . 33
I2C-bus serial interface. . . . . . . . . . . . . . . . . . 34
Serial Peripheral Interface (SPI). . . . . . . . . . . 36
Typical SPI configurations . . . . . . . . . . . . . . . 37
Analog comparators . . . . . . . . . . . . . . . . . . . . 39
Internal reference voltage. . . . . . . . . . . . . . . . 39
Comparator interrupt . . . . . . . . . . . . . . . . . . . 39
Comparators and power reduction modes . . . 40
Keypad interrupt . . . . . . . . . . . . . . . . . . . . . . . 40
Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 41
Additional features . . . . . . . . . . . . . . . . . . . . . 41
Software reset . . . . . . . . . . . . . . . . . . . . . . . . 41
Dual data pointers . . . . . . . . . . . . . . . . . . . . . 41
Data EEPROM . . . . . . . . . . . . . . . . . . . . . . . . 42
Flash program memory . . . . . . . . . . . . . . . . . 42
General description . . . . . . . . . . . . . . . . . . . . 42
continued >>
9397 750 14871
Product data sheet
Rev. 02 — 10 May 2005
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
63 of 64