Datasheet

NXP Semiconductors
LPC2131/32/34/36/38
Single-chip 16/32-bit microcontrollers
© NXP B.V. 2011. All rights reserved.
For more information, please visit: http://www.nxp.com
For sales office addresses, please send an email to: salesaddresses@nxp.com
Date of release: 29 July 2011
Document identifier: LPC2131_32_34_36_38
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in section ‘Legal information’.
18. Contents
1 General description. . . . . . . . . . . . . . . . . . . . . . 1
2 Features and benefits . . . . . . . . . . . . . . . . . . . . 1
2.1 Enhancements brought by LPC213x/01
devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.2 Key features common for LPC213x and
LPC213x/01 . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
3 Ordering information. . . . . . . . . . . . . . . . . . . . . 2
3.1 Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3
4 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5 Pinning information. . . . . . . . . . . . . . . . . . . . . . 5
5.1 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 9
6 Functional description . . . . . . . . . . . . . . . . . . 13
6.1 Architectural overview . . . . . . . . . . . . . . . . . . 13
6.2 On-chip flash program memory . . . . . . . . . . . 13
6.3 On-chip static RAM. . . . . . . . . . . . . . . . . . . . . 13
6.4 Memory map. . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.5 Interrupt controller . . . . . . . . . . . . . . . . . . . . . 15
6.5.1 Interrupt sources. . . . . . . . . . . . . . . . . . . . . . . 15
6.6 Pin connect block . . . . . . . . . . . . . . . . . . . . . . 16
6.7 General purpose parallel I/O and Fast I/O . . . 16
6.7.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.7.2 Fast I/O features available in LPC213x/01
only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.8 10-bit ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.8.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.8.2 ADC features available in LPC213x/01 only. . 17
6.9 10-bit DAC . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.9.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.10 UARTs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.10.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.10.2 UART features available in LPC213x/01 only. 18
6.11 I
2
C-bus serial I/O controller . . . . . . . . . . . . . . 18
6.11.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.12 SPI serial I/O controller. . . . . . . . . . . . . . . . . . 18
6.12.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.13 SSP serial I/O controller . . . . . . . . . . . . . . . . . 19
6.13.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.14 General purpose timers/external event
counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.14.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.15 Watchdog timer. . . . . . . . . . . . . . . . . . . . . . . . 20
6.15.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.16 Real-time clock. . . . . . . . . . . . . . . . . . . . . . . . 20
6.16.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.17 Pulse width modulator . . . . . . . . . . . . . . . . . . 21
6.17.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
6.18 System control . . . . . . . . . . . . . . . . . . . . . . . . 22
6.18.1 Crystal oscillator. . . . . . . . . . . . . . . . . . . . . . . 22
6.18.2 PLL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6.18.3 Reset and wake-up timer. . . . . . . . . . . . . . . . 22
6.18.4 Brownout detector . . . . . . . . . . . . . . . . . . . . . 23
6.18.5 Code security. . . . . . . . . . . . . . . . . . . . . . . . . 23
6.18.6 External interrupt inputs. . . . . . . . . . . . . . . . . 23
6.18.7 Memory Mapping Control. . . . . . . . . . . . . . . . 23
6.18.8 Power Control . . . . . . . . . . . . . . . . . . . . . . . . 24
6.18.9 APB bus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.19 Emulation and debugging . . . . . . . . . . . . . . . 24
6.19.1 EmbeddedICE . . . . . . . . . . . . . . . . . . . . . . . . 24
6.19.2 Embedded trace. . . . . . . . . . . . . . . . . . . . . . . 25
6.19.3 RealMonitor . . . . . . . . . . . . . . . . . . . . . . . . . . 25
7 Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 26
8 Static characteristics . . . . . . . . . . . . . . . . . . . 27
9 Dynamic characteristics. . . . . . . . . . . . . . . . . 29
9.1 Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
9.2 LPC2138 power consumption measurements 30
10 ADC electrical characteristics . . . . . . . . . . . . 32
11 DAC electrical characteristics . . . . . . . . . . . . 35
12 Application information . . . . . . . . . . . . . . . . . 36
12.1 Crystal oscillator XTAL input and component
selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
12.2 RTC 32 kHz oscillator component selection . 38
12.3 XTAL and RTCX Printed Circuit Board (PCB)
layout guidelines . . . . . . . . . . . . . . . . . . . . . . 38
13 Package outline. . . . . . . . . . . . . . . . . . . . . . . . 39
14 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 41
15 Revision history . . . . . . . . . . . . . . . . . . . . . . . 42
16 Legal information . . . . . . . . . . . . . . . . . . . . . . 43
16.1 Data sheet status . . . . . . . . . . . . . . . . . . . . . . 43
16.2 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
16.3 Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . 43
16.4 Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 44
17 Contact information . . . . . . . . . . . . . . . . . . . . 44
18 Contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45