P89LPC980 NXP [NXP Semiconductors], P89LPC980 Datasheet - Page 84

no-image

P89LPC980

Manufacturer Part Number
P89LPC980
Description
8-bit microcontroller with accelerated two-clock 80C51 core, 4 kB/8 kB wide-voltage byte-erasable flash with 10-bit ADC
Manufacturer
NXP [NXP Semiconductors]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89LPC980FDH
Manufacturer:
NXP
Quantity:
9 600
Part Number:
P89LPC980FDH
Manufacturer:
NXP/恩智浦
Quantity:
20 000
NXP Semiconductors
18. 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.4
7.4.1
7.4.2
7.4.3
7.5
7.6
7.7
7.8
7.9
7.10
7.11
7.12
7.13
7.14
7.15
7.15.1
7.16
7.16.1
7.16.1.1
7.16.1.2
7.16.1.3
7.16.1.4
7.16.2
7.16.3
7.16.4
7.17
7.17.1
7.17.2
7.17.3
7.17.3.1
P89LPC980_982_983_985_2
Preliminary data sheet
General description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Ordering information . . . . . . . . . . . . . . . . . . . . . 3
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Functional diagram . . . . . . . . . . . . . . . . . . . . . . 6
Pinning information . . . . . . . . . . . . . . . . . . . . . . 7
Functional description . . . . . . . . . . . . . . . . . . 14
Medium speed oscillator option . . . . . . . . . . . 33
High speed oscillator option . . . . . . . . . . . . . . 33
Clock source switching on the fly . . . . . . . . . . 34
Principal features . . . . . . . . . . . . . . . . . . . . . . . 1
Additional features . . . . . . . . . . . . . . . . . . . . . . 2
Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 10
Special function registers . . . . . . . . . . . . . . . . 14
Enhanced CPU . . . . . . . . . . . . . . . . . . . . . . . . 33
Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Clock definitions . . . . . . . . . . . . . . . . . . . . . . . 33
CPU clock (OSCCLK). . . . . . . . . . . . . . . . . . . 33
Crystal oscillator option. . . . . . . . . . . . . . . . . . 33
Low speed oscillator option . . . . . . . . . . . . . . 33
Clock output . . . . . . . . . . . . . . . . . . . . . . . . . . 34
On-chip RC oscillator option . . . . . . . . . . . . . . 34
Watchdog oscillator option . . . . . . . . . . . . . . . 34
External clock input option . . . . . . . . . . . . . . . 34
CCLK wake-up delay . . . . . . . . . . . . . . . . . . . 35
CCLK modification: DIVM register . . . . . . . . . 35
Low power select . . . . . . . . . . . . . . . . . . . . . . 35
Memory organization . . . . . . . . . . . . . . . . . . . 36
Data RAM arrangement . . . . . . . . . . . . . . . . . 36
Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
External interrupt inputs . . . . . . . . . . . . . . . . . 37
I/O ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Port configurations . . . . . . . . . . . . . . . . . . . . . 39
Quasi-bidirectional output configuration . . . . . 39
Open-drain output configuration . . . . . . . . . . . 39
Input-only configuration . . . . . . . . . . . . . . . . . 40
Push-pull output configuration . . . . . . . . . . . . 40
Port 0 analog functions . . . . . . . . . . . . . . . . . . 40
Additional port features. . . . . . . . . . . . . . . . . . 40
Pin remap . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Power management . . . . . . . . . . . . . . . . . . . . 41
Brownout detection . . . . . . . . . . . . . . . . . . . . . 41
Power-on detection. . . . . . . . . . . . . . . . . . . . . 42
Power reduction modes . . . . . . . . . . . . . . . . . 42
Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Rev. 02 — 8 February 2010
8-bit microcontroller with accelerated two-clock 80C51 core
7.17.3.2
7.17.3.3
7.17.4
7.18
7.18.1
7.19
7.19.1
7.19.2
7.19.3
7.19.3.1
7.19.3.2
7.19.4
7.20
7.20.1
7.20.2
7.20.3
7.20.4
7.21
7.22
7.22.1
7.22.2
7.22.3
7.22.4
7.22.5
7.22.6
7.22.7
7.22.8
7.22.9
7.22.10
7.23
7.24
7.24.1
7.25
7.25.1
7.25.2
7.25.3
7.26
7.27
7.28
7.28.1
7.28.2
7.29
7.29.1
7.29.2
P89LPC980/982/983/985
Power-down mode . . . . . . . . . . . . . . . . . . . . . 42
Total Power-down mode . . . . . . . . . . . . . . . . 42
Regulators . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Reset vector. . . . . . . . . . . . . . . . . . . . . . . . . . 43
Timers/counters 0 and 1 . . . . . . . . . . . . . . . . 43
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Mode 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Timer overflow toggle output . . . . . . . . . . . . . 44
Timers/counters 2, 3 and 4 . . . . . . . . . . . . . . 44
Mode 0: 16-bit Timer/Counter with
Auto-reload . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Mode 1: 16-bit Timer/Counter with Input
Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Mode 2: 16-bit PWM mode . . . . . . . . . . . . . . 45
Timer overflow toggle output . . . . . . . . . . . . . 45
RTC/system timer . . . . . . . . . . . . . . . . . . . . . 45
UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Baud rate generator and selection. . . . . . . . . 46
Framing error . . . . . . . . . . . . . . . . . . . . . . . . . 46
Break detect. . . . . . . . . . . . . . . . . . . . . . . . . . 47
Double buffering. . . . . . . . . . . . . . . . . . . . . . . 47
Transmit interrupts with double buffering
enabled (modes 1, 2 and 3) . . . . . . . . . . . . . . 47
The 9
(modes 1, 2 and 3). . . . . . . . . . . . . . . . . . . . . 47
I
SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Typical SPI configurations . . . . . . . . . . . . . . . 51
Analog comparators . . . . . . . . . . . . . . . . . . . . 52
Selectable internal reference voltage. . . . . . . 53
Comparator interrupt . . . . . . . . . . . . . . . . . . . 53
Comparators and power reduction modes . . . 53
KBI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 54
Additional features . . . . . . . . . . . . . . . . . . . . . 55
Software reset . . . . . . . . . . . . . . . . . . . . . . . . 55
Dual data pointers . . . . . . . . . . . . . . . . . . . . . 55
Flash program memory . . . . . . . . . . . . . . . . . 55
General description . . . . . . . . . . . . . . . . . . . . 55
Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2
C-bus serial interface. . . . . . . . . . . . . . . . . . 47
th
bit (bit 8) in double buffering
© NXP B.V. 2010. All rights reserved.
continued >>
84 of 85

Related parts for P89LPC980