LPC2138 Philips Semiconductors, LPC2138 Datasheet

no-image

LPC2138

Manufacturer Part Number
LPC2138
Description
(LPC2131 - LPC2138) Single-chip 16/32-bit microcontrollers 32/64/512 kB ISP/IAP Flash with 10-bit ADC and DAC
Manufacturer
Philips Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LPC2138FB064
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
LPC2138FBD/01
Manufacturer:
NXP
Quantity:
5 000
Part Number:
LPC2138FBD64
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
LPC2138FBD64/01
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
LPC2138FBD64/01
0
Company:
Part Number:
LPC2138FBD64/01
Quantity:
10
Part Number:
LPC2138FBD64/01+151
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
LPC2138FBD64/01,11
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
LPC2138FBD64/01,11
Manufacturer:
NXP
Quantity:
160
Part Number:
LPC2138FBD64/01,15
Manufacturer:
NXP
Quantity:
800
Part Number:
LPC2138FBD64/01,15
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
LPC2138FBD64/01,15
Manufacturer:
NXP
0
Part Number:
LPC2138FBD64/01,15
Manufacturer:
NXP
0
Part Number:
LPC2138FBD64/01,15
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
LPC2138FBD64/01,151
Quantity:
9 999
Part Number:
LPC2138FHN64
Manufacturer:
NXP
Quantity:
100
Company:
Part Number:
LPC2138FHN64
Quantity:
630
www.DataSheet4U.com
( DataSheet : www.DataSheet4U.com )
1. General description
2. Features
2.1 Key features
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.
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
16/32-bit ARM7TDMI-S microcontroller in a tiny LQFP64 package.
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.
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.
EmbeddedICE RT and Embedded Trace interfaces offer real-time debugging with the
on-chip RealMonitor software and high speed tracing of instruction execution.
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.
Single 10-bit D/A converter provides variable analog output (LPC2132/34/36/38).
Two 32-bit timers/external event counters (with four capture and four compare
channels each), PWM unit (six outputs) and watchdog.
Low power Real-time clock with independent power and dedicated 32 kHz clock input.
Multiple serial interfaces including two UARTs (16C550), two Fast I
SPI and SSP with buffering and variable data length capabilities.
Vectored interrupt controller with configurable priorities and vector addresses.
Preliminary data sheet
www.DataSheet4U.com
2
C-bus (400 kbit/s),

Related parts for LPC2138

LPC2138 Summary of contents

Page 1

DataSheet : www.DataSheet4U.com ) 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 ...

Page 2

... Type number LPC2131FBD64 LPC2132FBD64 LPC2134FBD64 LPC2136FBD64 LPC2138FBD64 3.1 Ordering options Table 2: Type number LPC2131FBD64 LPC2132FBD64 LPC2134FBD64 LPC2136FBD64 LPC2138FBD64 9397 750 14868 Preliminary data sheet LPC2131/2132/2134/2136/2138 Ordering information Package Name Description LQFP64 plastic low profile quad flat package; 64 leads; body 10 10 LQFP64 plastic low profi ...

Page 3

... Philips Semiconductors 4. Block diagram LPC2131/2132/2134/2136/2138 ARM7 local bus INTERNAL SRAM CONTROLLER 8/16/32 kB SRAM EXTERNAL EINT3:0 INTERRUPTS 8 CAP0 CAPTURE/ COMPARE TIMER 0/TIMER 1 8 MAT AD0.7:0 A/D CONVERTERS 0 AND 1 (1) AD1.7:0 (2) AOUT P0.31:0 GENERAL PURPOSE I/O P1.31:16 PWM6:1 PWM0 (1) LPC2134/2136/2138 only. (2) LPC2132/2134/2136/2138 only. (3) Pins shared with GPIO. Fig 1. Block diagram. ...

Page 4

... Philips Semiconductors 5. Pinning information 5.1 Pinning P0.21/PWM5/CAP1.3 1 P0.22/CAP0.0/MAT0 RTXC1 4 P1.19/TRACEPKT3 RTXC2 DDA P1.18/TRACEPKT2 8 P0.25/AD0 P0.26/AD0.5 11 P0.27/AD0.0/CAP0.1/MAT0.1 P1.17/TRACEPKT1 12 P0.28/AD0.1/CAP0.2/MAT0 P0.29/AD0.2/CAP0.3/MAT0.3 P0.30/AD0.3/EINT3/CAP0.0 15 P1.16/TRACEPKT0 16 Fig 2. LPC2131 pinning. 9397 750 14868 Preliminary data sheet ...

Page 5

... Philips Semiconductors P0.21/PWM5/CAP1.3 1 P0.22/CAP0.0/MAT0 RTXC1 P1.19/TRACEPKT3 4 RTXC2 DDA P1.18/TRACEPKT2 8 P0.25/AD0.4/AOUT 9 10 P0.26/AD0.5 11 P0.27/AD0.0/CAP0.1/MAT0.1 P1.17/TRACEPKT1 12 P0.28/AD0.1/CAP0.2/MAT0 P0.29/AD0.2/CAP0.3/MAT0.3 P0.30/AD0.3/EINT3/CAP0.0 15 P1.16/TRACEPKT0 16 Fig 3. LPC2132 pinning. 9397 750 14868 Preliminary data sheet ...

Page 6

... Philips Semiconductors P0.21/PWM5/AD1.6/CAP1 P0.22/AD1.7/CAP0.0/MAT0.0 RTXC1 3 P1.19/TRACEPKT3 4 RTXC2 DDA P1.18/TRACEPKT2 8 9 P0.25/AD0.4/AOUT 10 P0.26/AD0.5 P0.27/AD0.0/CAP0.1/MAT0.1 11 P1.17/TRACEPKT1 12 13 P0.28/AD0.1/CAP0.2/MAT0.2 P0.29/AD0.2/CAP0.3/MAT0.3 14 P0.30/AD0.3/EINT3/CAP0 P1.16/TRACEPKT0 Fig 4. LPC2134/2136/2138 pinning. 9397 750 14868 ...

Page 7

... O TXD1 — Transmitter output for UART1. O PWM4 — Pulse Width Modulator output 4. I AD1.1 — A/D converter 1, input 1. This analog input is always connected to its pin. Available in LPC2138 only. I RXD1 — Receiver input for UART1. O PWM6 — Pulse Width Modulator output 6. I EINT3 — External interrupt 3 input. ...

Page 8

... Preliminary data sheet LPC2131/2132/2134/2136/2138 Type Description O RTS1 — Request to Send output for UART1. Available in LPC2138 only. I CAP1.0 — Capture input for Timer 1, channel 0. I AD1.2 — A/D converter 1, input 2. This analog input is always connected to its pin. Available in LPC2138 only. ...

Page 9

... General purpose digital input/output pin. I AD0.4 — A/D converter 0, input 4. This analog input is always connected to its pin. O AOUT — D/A converter output. Available in LPC2132 and LPC2138 only. I AD0.5 — A/D converter 0, input 5. This analog input is always connected to its pin. I AD0.0 — A/D converter 0, input 0. This analog input is always connected to its pin ...

Page 10

... Philips Semiconductors Table 3: Pin description …continued Symbol Pin [6] P1.22/ 40 PIPESTAT1 [6] P1.23/ 36 PIPESTAT2 [6] P1.24/ 32 TRACECLK [6] P1.25/EXTIN0 28 [6] P1.26/RTCK 24 [6] P1.27/TDO 64 [6] P1.28/TDI 60 [6] P1.29/TCK 56 [6] P1.30/TMS 52 [6] P1.31/TRST 20 [7] RESET 57 [8] XTAL1 62 [8] XTAL2 61 [8] RTXC1 3 [8] RTXC2 18, 25, 42 ...

Page 11

... Philips Semiconductors [ tolerant pad with built-in pull-up resistor providing digital I/O functions with TTL levels and hysteresis and 10 ns slew rate control. The pull-up resistor’s value ranges from 300 tolerant pad providing digital input (with TTL levels and hysteresis) function only. ...

Page 12

... Philips Semiconductors 6. Functional description 6.1 Architectural overview The ARM7TDMI general purpose 32-bit microprocessor, which offers high performance and very low power consumption. The ARM architecture is based on Reduced Instruction Set Computer (RISC) principles, and the instruction set and related decode mechanism are much simpler than those of microprogrammed Complex Instruction Set Computers ...

Page 13

... TOTAL ON-CHIP STATIC RAM (LPC2136/38) TOTAL ON-CHIP STATIC RAM (LPC2132/34) TOTAL ON-CHIP STATIC RAM (LPC2131) 1.0 GB RESERVED ADDRESS SPACE TOTAL OF 512 kB ON-CHIP NON-VOLATILE MEMORY (LPC2138) TOTAL OF 256 kB ON-CHIP NON-VOLATILE MEMORY (LPC2136) TOTAL OF 128 kB ON-CHIP NON-VOLATILE MEMORY (LPC2134) TOTAL ON-CHIP NON-VOLATILE MEMORY ...

Page 14

... Philips Semiconductors Fast Interrupt reQuest (FIQ) has the highest priority. If more than one request is assigned to FIQ, the VIC combines the requests to produce the FIQ signal to the ARM processor. The fastest possible FIQ latency is achieved when only one request is classified as FIQ, because then the FIQ service routine can simply start dealing with that device ...

Page 15

... Philips Semiconductors Table 4: Block SPI0 SSP PLL RTC System Control AD0 I2C1 BOD AD1 6.6 Pin connect block The pin connect block allows selected pins of the microcontroller to have more than one function. Configuration registers control the multiplexers to allow connection between the pin and the on chip peripherals ...

Page 16

... Philips Semiconductors 6.7 Pin function select register 0 (PINSEL0 - 0xE002C000) The PINSEL0 register controls the functions of the pins as per the settings listed in Table 6. The direction control bit in the IODIR register is effective only when the GPIO function is selected for a pin. For other functions, direction is controlled automatically. ...

Page 17

... Match 1.0 (Timer Reserved (LPC2131/32) AD1.3 (LPC2134/36/38) P0. GPIO Port 0. Reserved (LPC2131/32) DTR (UART1) (LPC2134/36/38 Match 1.1 (Timer Reserved (LPC2131/32) AD1.4 (LPC2138) P0. GPIO Port 0. Reserved (LPC2131/32) DCD (UART1) (LPC2134/36/38 EINT1 1 1 SDA1 (I P0. GPIO Port 0. ...

Page 18

... Philips Semiconductors 6.8 Pin function select register 1 (PINSEL1 - 0xE002C004) The PINSEL1 register controls the functions of the pins as per the settings listed in Table 7. The direction control bit in the IODIR register is effective only when the GPIO function is selected for a pin. For other functions direction is controlled automatically. ...

Page 19

... Philips Semiconductors Table 7: PINSEL1 17:16 19:18 21:20 23:22 25:24 27:26 29:28 31:30 6.9 Pin function select register 2 (PINSEL2 - 0xE002C014) The PINSEL2 register controls the functions of the pins as per the settings listed in Table 8. The direction control bit in the IODIR register is effective only when the GPIO function is selected for a pin. For other functions direction is controlled automatically. ...

Page 20

... Philips Semiconductors Table 8: PINSEL2 bits 1 31:30 6.10 General purpose parallel I/O Device pins that are not connected to a specific peripheral function are controlled by the GPIO registers. Pins may be dynamically configured as inputs or outputs. Separate registers allow setting or clearing any number of outputs simultaneously. The value of the output register may be read back, as well as the current state of the port pins ...

Page 21

... Philips Semiconductors 6.13 UARTs The LPC2131/2132/2134/2136/2138 each contain two UARTs. In addition to standard transmit and receive data lines, the LPC2134/2136/2138 UART1 also provides a full modem control handshake interface. 6.13.1 Features • 16 byte Receive and Transmit FIFOs. • Register locations conform to ‘550 industry standard. • ...

Page 22

... Philips Semiconductors 6.15 SPI serial I/O controller The LPC2131/2132/2134/2136/2138 each contain one SPI controller. The SPI is a full duplex serial interface, designed to be able to handle multiple masters and slaves connected to a given bus. Only a single master and a single slave can communicate on the interface during a given data transfer. During a data transfer the master always sends a byte of data to the slave, and the slave always sends a byte of data to the master ...

Page 23

... Philips Semiconductors • External Event Counter or timer operation. • Four 32-bit capture channels per timer/counter that can take a snapshot of the timer value when an input signal transitions. A capture event may also optionally generate an interrupt. • Four 32-bit match registers that allow: – Continuous operation with optional interrupt generation on match. ...

Page 24

... Philips Semiconductors • Provides Seconds, Minutes, Hours, Day of Month, Month, Year, Day of Week, and Day of Year. • Can use either the RTC dedicated 32 kHz oscillator input or clock derived from the external crystal/oscillator input at XTAL1. Programmable Reference Clock Divider allows fine adjustment of the RTC. ...

Page 25

... Philips Semiconductors • Supports single edge controlled and/or double edge controlled PWM outputs. Single edge controlled PWM outputs all go HIGH at the beginning of each cycle unless the output is a constant LOW. Double edge controlled PWM outputs can have either edge occur at any position within a cycle. This allows for both positive going and negative going pulses. • ...

Page 26

... Philips Semiconductors When the internal reset is removed, the processor begins executing at address 0, which is the reset vector. At that point, all of the processor and peripheral registers have been initialized to predetermined values. The wake-up timer ensures that the oscillator and other analog functions required for chip operation are fully functional before the processor is allowed to execute instructions ...

Page 27

... Philips Semiconductors 6.21.7 Memory Mapping Control The Memory Mapping Control alters the mapping of the interrupt vectors that appear beginning at address 0x00000000. Vectors may be mapped to the bottom of the on-chip Flash memory the on-chip static RAM. This allows code running in different memory spaces to have control of the interrupts. ...

Page 28

... Philips Semiconductors 6.22.1 EmbeddedICE Standard ARM EmbeddedICE logic provides on-chip debug support. The debugging of the target system requires a host computer running the debugger software and an EmbeddedICE protocol convertor. EmbeddedICE protocol convertor converts the Remote Debug Protocol commands to the JTAG data needed to access the ARM core. ...

Page 29

... Philips Semiconductors 7. Limiting values Table 9: Limiting values In accordance with the Absolute Maximum Rating System (IEC 60134). Symbol Parameter V supply voltage, core and external rail DD V analog 3.3 V pad supply voltage DDA V RTC power supply voltage BAT V A/D converter reference voltage REF V analog input voltage on A/D related pins ...

Page 30

... Philips Semiconductors 8. Static characteristics Table 10: DC characteristics +85 C for commercial applications, unless otherwise specified. a Symbol Parameter V supply voltage, core and DD external rail V analog 3.3 V pad supply DDA voltage V RTC supply voltage BAT V A/D converter reference REF voltage Standard port pins, RESET, RTCK ...

Page 31

... Philips Semiconductors Table 10: DC characteristics …continued +85 C for commercial applications, unless otherwise specified. a Symbol Parameter I Power-down mode V BAT BAT supply current active mode V supply BAT current active mode V supply BAT current optimized for low battery consumption 2 I C-bus pins ...

Page 32

... Philips Semiconductors [7] Only allowed for a short time period. [8] Minimum condition for V = 4.5 V, maximum condition for [9] The input threshold voltage of I C-bus pins meets the I 0 while an input voltage above 3.0 V will be recognized as a logic 1. Table 11: A/D converter DC electrical characteristics +85 C unless otherwise specifi ...

Page 33

... Philips Semiconductors 1023 1022 1021 1020 1019 1018 7 code out offset error E O (1) Example of an actual transfer curve. (2) The ideal transfer curve. (3) Differential non-linearity (E D (4) Integral non-linearity (E L(adj) (5) Center of a step of the actual transfer curve. Fig 6. A/D conversion characteristics. ...

Page 34

... Philips Semiconductors 9. Dynamic characteristics Table 12: AC characteristics for commercial applications +85 C for industrial applications Symbol Parameter External clock f oscillator frequency osc T oscillator clock period clk t clock HIGH time CHCX t clock LOW time CLCX t clock rise time ...

Page 35

... Philips Semiconductors 9.1 Timing V Fig 7. External clock timing. 9.2 LPC2138 power consumption measurements 40 I current DD (mA Test conditions: code executed from Flash; all peripherals are enabled in PCONP register; PCLK = CCLK/4. (1) 3 (max) DD (2) 3 140 C DD (3) 3 (4) 3 ...

Page 36

... Philips Semiconductors 15 I current DD (mA Test conditions: Idle mode entered executing code from Flash; all peripherals are enabled in PCONP register; PCLK = CCLK/4. (1) 3 140 C (max) DD (2) 3 (3) 3 (4) 3 (typical) DD (5) 3 (typical) DD Fig 9 ...

Page 37

... Philips Semiconductors 10. Package outline LQFP64: plastic low profile quad flat package; 64 leads; body 1 pin 1 index DIMENSIONS (mm are the original dimensions) A UNIT max. 0.20 1.45 mm 1.6 0.25 0.05 1.35 Note 1. Plastic or metal protrusions of 0.25 mm maximum per side are not included. ...

Page 38

... Philips Semiconductors 11. Abbreviations Table 13: Acronym ADC BOD CPU DAC DCC FIFO GPIO PLL POR PWM RAM SRAM UART VIC VPB 9397 750 14868 Preliminary data sheet LPC2131/2132/2134/2136/2138 Acronym list Description Analog-to-Digital Converter Brown-Out Detection Central Processing Unit Digital-to-Analog Converter ...

Page 39

... Philips Semiconductors 12. Revision history Table 14: Revision history Document ID Release date LPC2131_32_34_36_38_2 20050415 • Modifications: LPC2131_2132_2138_1 20041118 9397 750 14868 Preliminary data sheet LPC2131/2132/2134/2136/2138 Data sheet status Change notice Preliminary data - sheet Added new devices LPC2134 and LPC2136. Preliminary data - sheet Rev. 02 — ...

Page 40

... Semiconductors reserves the right to change the specification in any manner without notice. This data sheet contains data from the preliminary specification. Supplementary data will be published at a later date. Philips Semiconductors reserves the right to change the specification without notice, in order to improve the design and supply the best possible product. ...

Page 41

... Emulation and debugging 6.22.1 EmbeddedICE . . . . . . . . . . . . . . . . . . . . . . . . 28 6.22.2 Embedded trace 6.22.3 RealMonitor . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7 Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 29 8 Static characteristics . . . . . . . . . . . . . . . . . . . 30 9 Dynamic characteristics . . . . . . . . . . . . . . . . . 34 9.1 Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 9.2 LPC2138 power consumption measurements 35 10 Package outline . . . . . . . . . . . . . . . . . . . . . . . . 37 11 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 38 12 Revision history . . . . . . . . . . . . . . . . . . . . . . . 39 13 Data sheet status Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 15 Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 16 Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 17 Contact information . . . . . . . . . . . . . . . . . . . . 40 © ...

Related keywords