p89lpc9351 NXP Semiconductors, p89lpc9351 Datasheet - Page 73

no-image

p89lpc9351

Manufacturer Part Number
p89lpc9351
Description
8-bit Microcontroller With Accelerated Two-clock 80c51 Core 8 Kb 3 V Byte-erasable ?ash With 8-bit Adc
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
p89lpc9351FA,112
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
p89lpc9351FA,529
Manufacturer:
NXP Semiconductors
Quantity:
10 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.17
7.17.1
7.17.2
7.18
7.18.1
7.18.2
P89LPC9351_1
Preliminary data sheet
General description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Ordering information . . . . . . . . . . . . . . . . . . . . . 3
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Functional diagram . . . . . . . . . . . . . . . . . . . . . . 5
Pinning information . . . . . . . . . . . . . . . . . . . . . . 6
Functional description . . . . . . . . . . . . . . . . . . 11
Principal features . . . . . . . . . . . . . . . . . . . . . . . 1
Additional features . . . . . . . . . . . . . . . . . . . . . . 2
Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 7
Special function registers . . . . . . . . . . . . . . . . 11
Enhanced CPU . . . . . . . . . . . . . . . . . . . . . . . . 22
Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Clock definitions . . . . . . . . . . . . . . . . . . . . . . . 22
CPU clock (OSCCLK). . . . . . . . . . . . . . . . . . . 22
External crystal oscillator option . . . . . . . . . . . 22
Low speed oscillator option . . . . . . . . . . . . . . 22
Medium speed oscillator option . . . . . . . . . . . 22
High speed oscillator option . . . . . . . . . . . . . . 22
Clock output . . . . . . . . . . . . . . . . . . . . . . . . . . 23
On-chip RC oscillator option . . . . . . . . . . . . . . 23
Watchdog oscillator option . . . . . . . . . . . . . . . 23
External clock input option . . . . . . . . . . . . . . . 23
Clock sources switch on the fly. . . . . . . . . . . . 23
CCLK wake-up delay . . . . . . . . . . . . . . . . . . . 24
CCLK modification: DIVM register . . . . . . . . . 24
Low power select . . . . . . . . . . . . . . . . . . . . . . 24
Memory organization . . . . . . . . . . . . . . . . . . . 25
Data RAM arrangement . . . . . . . . . . . . . . . . . 25
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
External interrupt inputs . . . . . . . . . . . . . . . . . 26
I/O ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Port configurations . . . . . . . . . . . . . . . . . . . . . 28
Quasi-bidirectional output configuration . . . . . 28
Open-drain output configuration . . . . . . . . . . . 28
Input-only configuration . . . . . . . . . . . . . . . . . 29
Push-pull output configuration . . . . . . . . . . . . 29
Port 0 analog functions . . . . . . . . . . . . . . . . . . 29
Additional port features. . . . . . . . . . . . . . . . . . 29
Power monitoring functions. . . . . . . . . . . . . . . 29
Brownout detection . . . . . . . . . . . . . . . . . . . . . 30
Power-on detection . . . . . . . . . . . . . . . . . . . . . 30
Power reduction modes . . . . . . . . . . . . . . . . . 30
Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Power-down mode . . . . . . . . . . . . . . . . . . . . . 30
Rev. 01 — 19 November 2008
7.18.3
7.19
7.19.1
7.20
7.20.1
7.20.2
7.20.3
7.20.4
7.20.5
7.20.6
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.23
7.23.1
7.23.2
7.23.3
7.23.4
7.23.5
7.23.6
7.23.7
7.23.8
7.23.9
7.23.10
7.24
7.25
7.25.1
7.26
7.26.1
7.26.2
7.26.3
7.27
7.28
7.29
7.29.1
7.29.2
7.29.3
7.30
Total Power-down mode . . . . . . . . . . . . . . . . . 31
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Reset vector . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Timers/counters 0 and 1 . . . . . . . . . . . . . . . . 32
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Mode 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Timer overflow toggle output . . . . . . . . . . . . . 33
RTC/system timer. . . . . . . . . . . . . . . . . . . . . . 33
CCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
CCU clock . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
CCUCLK prescaling . . . . . . . . . . . . . . . . . . . . 33
Basic timer operation . . . . . . . . . . . . . . . . . . . 33
Output compare . . . . . . . . . . . . . . . . . . . . . . . 34
Input capture . . . . . . . . . . . . . . . . . . . . . . . . . 34
PWM operation . . . . . . . . . . . . . . . . . . . . . . . 34
Alternating output mode . . . . . . . . . . . . . . . . . 35
PLL operation. . . . . . . . . . . . . . . . . . . . . . . . . 35
CCU interrupts . . . . . . . . . . . . . . . . . . . . . . . . 36
UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Baud rate generator and selection . . . . . . . . . 37
Framing error . . . . . . . . . . . . . . . . . . . . . . . . . 37
Break detect . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Double buffering . . . . . . . . . . . . . . . . . . . . . . . 38
Transmit interrupts with double buffering
enabled (modes 1, 2 and 3) . . . . . . . . . . . . . . 38
The 9
(modes 1, 2 and 3) . . . . . . . . . . . . . . . . . . . . . 38
I
SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Typical SPI configurations . . . . . . . . . . . . . . . 42
Analog comparators . . . . . . . . . . . . . . . . . . . . 43
Internal reference voltage. . . . . . . . . . . . . . . . 44
Comparator interrupt . . . . . . . . . . . . . . . . . . . 44
Comparators and power reduction modes . . . 44
KBI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 45
Additional features . . . . . . . . . . . . . . . . . . . . . 46
Software reset . . . . . . . . . . . . . . . . . . . . . . . . 46
Dual data pointers . . . . . . . . . . . . . . . . . . . . . 46
Data EEPROM . . . . . . . . . . . . . . . . . . . . . . . . 46
Flash program memory . . . . . . . . . . . . . . . . . 47
2
C-bus serial interface. . . . . . . . . . . . . . . . . . 38
th
8-bit microcontroller with 8-bit ADC
bit (bit 8) in double buffering
P89LPC9351
© NXP B.V. 2008. All rights reserved.
continued >>
73 of 74

Related parts for p89lpc9351