LPC2131/2132/2134/2136/2138
Single-chip 16/32-bit microcontrollers; 32/64/128/256/512 kB
ISP/IAP Flash with 10-bit ADC and DAC
Rev. 02 — 15 April 2005
Preliminary data sheet
1. General description
The LPC2131/2132/2134/2136/2138 microcontrollers are based on a 32/16 bit
ARM7TDMI-S CPU with real-time emulation and embedded trace support, that combines
the microcontroller with 32 kB, 64 kB, 128 kB, 256 kB and 512 kB of embedded high
speed Flash memory. A 128-bit wide memory interface and a unique accelerator
architecture enable 32-bit code execution at maximum clock rate. For critical code size
applications, the alternative 16-bit Thumb mode reduces code by more than 30 % with
minimal performance penalty.
Due to their tiny size and low power consumption, these microcontrollers are ideal for
applications where miniaturization is a key requirement, such as access control and
point-of-sale. With a wide range of serial communications interfaces and on-chip SRAM
options of 8/16/32 kB, they are very well suited for communication gateways and protocol
converters, soft modems, voice recognition and low end imaging, providing both large
buffer size and high processing power. Various 32-bit timers, single or dual 10-bit
8 channel ADC(s), 10-bit DAC, PWM channels and 47 GPIO lines with up to nine edge or
level sensitive external interrupt pins make these microcontrollers particularly suitable for
industrial control and medical systems.
2. Features
2.1 Key features
s
16/32-bit ARM7TDMI-S microcontroller in a tiny LQFP64 package.
s
8/16/32 kB of on-chip static RAM and 32/64/128/256/512 kB of on-chip Flash program
memory. 128 bit wide interface/accelerator enables high speed 60 MHz operation.
s
In-System/In-Application Programming (ISP/IAP) via on-chip boot-loader software.
Single Flash sector or full chip erase in 400 ms and programming of 256 bytes in 1 ms.
s
EmbeddedICE RT and Embedded Trace interfaces offer real-time debugging with the
on-chip RealMonitor software and high speed tracing of instruction execution.
s
One (LPC2131/32) or two (LPC2134/36/38) 8 channel 10-bit A/D converters provides
a total of up to 16 analog inputs, with conversion times as low as 2.44
µs
per channel.
s
Single 10-bit D/A converter provides variable analog output (LPC2132/34/36/38).
s
Two 32-bit timers/external event counters (with four capture and four compare
channels each), PWM unit (six outputs) and watchdog.
s
Low power Real-time clock with independent power and dedicated 32 kHz clock input.
s
Multiple serial interfaces including two UARTs (16C550), two Fast I
2
C-bus (400 kbit/s),
SPI and SSP with buffering and variable data length capabilities.
s
Vectored interrupt controller with configurable priorities and vector addresses.
Philips Semiconductors
LPC2131/2132/2134/2136/2138
Single-chip 16/32-bit microcontrollers
s
Up to 47 5 V tolerant general purpose I/O pins in tiny LQFP64 package.
s
Up to nine edge or level sensitive external interrupt pins available.
s
60 MHz maximum CPU clock available from programmable on-chip PLL with settling
time of 100
µs.
s
On-chip integrated oscillator operates with external crystal in range of 1 MHz to
30 MHz and with external oscillator up to 50 MHz.
s
Power saving modes include Idle and Power-down.
s
Individual enable/disable of peripheral functions as well as peripheral clock scaling
down for additional power optimization.
s
Processor wake-up from Power-down mode via external interrupt or BOD.
s
Single power supply chip with POR and BOD circuits:
x
CPU operating voltage range of 3.0 V to 3.6 V (3.3 V
±
10 %) with 5 V tolerant I/O
pads.
3. Ordering information
Table 1:
Ordering information
Package
Name
LPC2131FBD64
LPC2132FBD64
LPC2134FBD64
LPC2136FBD64
LPC2138FBD64
LQFP64
LQFP64
LQFP64
LQFP64
LQFP64
Description
plastic low profile quad flat package; 64 leads;
body 10
×
10
×
1.4 mm
plastic low profile quad flat package; 64 leads;
body 10
×
10
×
1.4 mm
plastic low profile quad flat package; 64 leads;
body 10
×
10
×
1.4 mm
plastic low profile quad flat package; 64 leads;
body 10
×
10
×
1.4 mm
plastic low profile quad flat package; 64 leads;
body 10
×
10
×
1.4 mm
Version
SOT314-2
SOT314-2
SOT314-2
SOT314-2
SOT314-2
Type number
3.1 Ordering options
Table 2:
Ordering options
Flash memory RAM
32 kB
64 kB
128 kB
256 kB
512 kB
8 kB
16 kB
16 kB
32 kB
32 kB
ADC
1
1
2
2
2
DAC
-
1
1
1
1
Temperature
range (°C)
−40
to +85
−40
to +85
−40
to +85
−40
to +85
−40
to +85
Type number
LPC2131FBD64
LPC2132FBD64
LPC2134FBD64
LPC2136FBD64
LPC2138FBD64
9397 750 14868
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
Preliminary data sheet
Rev. 02 — 15 April 2005
2 of 41
Philips Semiconductors
LPC2131/2132/2134/2136/2138
Single-chip 16/32-bit microcontrollers
4. Block diagram
TMS
(3)
TDI
(3)
TRST
(3)
TCK
(3)
TDO
(3)
XTAL2
RST
XTAL1
LPC2131/2132/2134/2136/2138
TEST/DEBUG
INTERFACE
EMULATION TRACE
MODULE
PLL
system
clock
SYSTEM
FUNCTIONS
VECTORED
INTERRUPT
CONTROLLER
ARM7TDMI-S
AHB BRIDGE
ARM7 local bus
AMBA AHB
(Advanced High-performance Bus)
INTERNAL
SRAM
CONTROLLER
INTERNAL
FLASH
CONTROLLER
AHB
DECODER
AHB TO VPB
BRIDGE
VPB
DIVIDER
8/16/32 kB
SRAM
32/64/128/
256/512 kB
FLASH
VPB (VLSI
peripheral bus)
EINT3:0
EXTERNAL
INTERRUPTS
I
2
C SERIAL
INTERFACES 0 AND 1
SCL0,1
SDA0,1
SCK0,1
SPI AND SSP
SERIAL INTERFACES
MOSI0,1
MISO0,1
SSEL0,1
AD0.7:0
AD1.7:0
(1)
A/D CONVERTERS
0 AND 1
(1)
UART0/UART1
TXD0,1
RXD0,1
8
×
CAP0
8
×
MAT
CAPTURE/
COMPARE
TIMER 0/TIMER 1
AOUT
(2)
D/A CONVERTER
(2)
REAL TIME CLOCK
GENERAL
PURPOSE I/O
WATCHDOG
TIMER
DSR1
(1)
,CTS1
(1)
,
RTS1
(1)
, DTR1
(1)
DCD1
(1)
,RI1
(1)
RTXC1
RTXC2
V
BAT
P0.31:0
P1.31:16
PWM6:1
PWM0
SYSTEM
CONTROL
002aab067
(1) LPC2134/2136/2138 only.
(2) LPC2132/2134/2136/2138 only.
(3) Pins shared with GPIO.
Fig 1. Block diagram.
9397 750 14868
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
Preliminary data sheet
Rev. 02 — 15 April 2005
3 of 41
Philips Semiconductors
LPC2131/2132/2134/2136/2138
Single-chip 16/32-bit microcontrollers
5. Pinning information
5.1 Pinning
54 P0.19/MAT1.2/MOSI1/CAP1.2
53 P0.18/CAP1.3/MISO1/MAT1.3
55 P0.20/MAT1.3/SSEL1/EINT3
52 P1.30/TMS
64 P1.27/TDO
56 P1.29/TCK
60 P1.28/TDI
57 RESET
62 XTAL1
61 XTAL2
59 V
SSA
58 P0.23
63 V
REF
P0.21/PWM5/CAP1.3
P0.22/CAP0.0/MAT0.0
RTXC1
P1.19/TRACEPKT3
RTXC2
V
SS
V
DDA
P1.18/TRACEPKT2
P0.25/AD0.4
1
2
3
4
5
6
7
8
9
49 V
BAT
48 P1.20/TRACESYNC
47 P0.17/CAP1.2/SCK1/MAT1.2
46 P0.16/EINT0/MAT0.2/CAP0.2
45 P0.15/EINT2
44 P1.21/PIPESTAT0
43 V
DD
42 V
SS
41 P0.14/EINT1/SDA1
40 P1.22/PIPESTAT1
39 P0.13/MAT1.1
38 P0.12/MAT1.0
37 P0.11/CAP1.1/SCL1
36 P1.23/PIPESTAT2
35 P0.10/CAP1.0
34 P0.9/RXD1/PWM6/EINT3
33 P0.8/TXD1/PWM4
P1.24/TRACECLK 32
002aab068
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
51 V
DD
P0.6/MOSI0/CAP0.2 30
LPC2131
P0.26/AD0.5 10
P0.27/AD0.0/CAP0.1/MAT0.1 11
P1.17/TRACEPKT1 12
P0.28/AD0.1/CAP0.2/MAT0.2 13
P0.29/AD0.2/CAP0.3/MAT0.3 14
P0.30/AD0.3/EINT3/CAP0.0 15
P1.16/TRACEPKT0 16
P0.31 17
V
SS
18
P0.0/TXD0/PWM1 19
P1.31/TRST 20
P0.1/RXD0/PWM3/EINT0 21
P0.2/SCL0/CAP0.0 22
V
DD
23
P1.26/RTCK 24
V
SS
25
P0.3/SDA0/MAT0.0/EINT1 26
P0.4/SCK0/CAP0.1/AD0.6 27
P1.25/EXTIN0 28
P0.5/MISO0/MAT0.1/AD0.7 29
Fig 2. LPC2131 pinning.
9397 750 14868
Preliminary data sheet
Rev. 02 — 15 April 2005
P0.7/SSEL0/PWM2/EINT2 31
50 V
SS
4 of 41
Philips Semiconductors
LPC2131/2132/2134/2136/2138
Single-chip 16/32-bit microcontrollers
54 P0.19/MAT1.2/MOSI1/CAP1.2
53 P0.18/CAP1.3/MISO1/MAT1.3
55 P0.20/MAT1.3/SSEL1/EINT3
52 P1.30/TMS
64 P1.27/TDO
56 P1.29/TCK
60 P1.28/TDI
57 RESET
62 XTAL1
61 XTAL2
59 V
SSA
58 P0.23
63 V
REF
P0.21/PWM5/CAP1.3
P0.22/CAP0.0/MAT0.0
RTXC1
P1.19/TRACEPKT3
RTXC2
V
SS
V
DDA
P1.18/TRACEPKT2
P0.25/AD0.4/AOUT
1
2
3
4
5
6
7
8
9
49 V
BAT
48 P1.20/TRACESYNC
47 P0.17/CAP1.2/SCK1/MAT1.2
46 P0.16/EINT0/MAT0.2/CAP0.2
45 P0.15/EINT2
44 P1.21/PIPESTAT0
43 V
DD
42 V
SS
41 P0.14/EINT1/SDA1
40 P1.22/PIPESTAT1
39 P0.13/MAT1.1
38 P0.12/MAT1.0
37 P0.11/CAP1.1/SCL1
36 P1.23/PIPESTAT2
35 P0.10/CAP1.0
34 P0.9/RXD1/PWM6/EINT3
33 P0.8/TXD1/PWM4
P1.24/TRACECLK 32
002aab406
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
51 V
DD
P0.6/MOSI0/CAP0.2 30
LPC2132
P0.26/AD0.5 10
P0.27/AD0.0/CAP0.1/MAT0.1 11
P1.17/TRACEPKT1 12
P0.28/AD0.1/CAP0.2/MAT0.2 13
P0.29/AD0.2/CAP0.3/MAT0.3 14
P0.30/AD0.3/EINT3/CAP0.0 15
P1.16/TRACEPKT0 16
P0.31 17
V
SS
18
P0.0/TXD0/PWM1 19
P1.31/TRST 20
P0.1/RXD0/PWM3/EINT0 21
P0.2/SCL0/CAP0.0 22
V
DD
23
P1.26/RTCK 24
V
SS
25
P0.3/SDA0/MAT0.0/EINT1 26
P0.4/SCK0/CAP0.1/AD0.6 27
P1.25/EXTIN0 28
P0.5/MISO0/MAT0.1/AD0.7 29
Fig 3. LPC2132 pinning.
9397 750 14868
Preliminary data sheet
Rev. 02 — 15 April 2005
P0.7/SSEL0/PWM2/EINT2 31
50 V
SS
5 of 41