LPC2138FBD64: Single-chip 16/32-bit microcontrollers; 32/64/128/256/512 kB ISP/IAP flash with 10-bit ADC and DAC

The LPC2131/32/34/36/38 microcontrollers are based on a 16/32-bit ARM7TDMI-S CPU with real-time emulation and embedded trace support, that combine 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 kB, 16 kB, and 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.

LPC2138FBD64: Product Block Diagram
Outline 3d SOT314-2
2.1 Enhancements brought by LPC213x/01 devices
  • Fast GPIO ports enable port pin toggling up to 3.5 times faster than the original LPC213x. They also allow for a port pin to be read at any time regardless of its function.
  • Dedicated result registers for ADC(s) reduce interrupt overhead.
  • UART0/1 include fractional baud rate generator, auto-bauding capabilities and handshake flow-control fully implemented in hardware.
  • Additional BOD control enables further reduction of power consumption.
2.2 Key features common for LPC213x and LPC213x/01
  • 16/32-bit ARM7TDMI-S microcontroller in a tiny LQFP64 or HVQFN64 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 Programming/In-Application Programming (ISP/IAP) via on-chip bootloader software. Single flash sector or full chip erase in 400 ms and programming of 256 B 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 ADCs provide a total of up to 16 analog inputs, with conversion times as low as 2.44 µs per channel.
  • Single 10-bit DAC 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²C-bus (400 kbit/s), SPI and SSP with buffering and variable data length capabilities.
  • Vectored interrupt controller with configurable priorities and vector addresses.
  • Up to forty-seven 5 V tolerant general purpose I/O pins in tiny LQFP64 or HVQFN package.
  • Up to nine edge or level sensitive external interrupt pins available.
  • 60 MHz maximum CPU clock available from programmable on-chip PLL with settling time of 100 µ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.
  • Power saving modes include Idle and Power-down.
  • Individual enable/disable of peripheral functions as well as peripheral clock scaling down for additional power optimization.
  • Processor wake-up from Power-down mode via external interrupt or BOD.
  • Single power supply chip with POR and BOD circuits: CPU operating voltage range of 3.0 V to 3.6 V (3.3 V ± 10 %) with 5 V tolerant I/O pads.
Data Sheets (1)
Name/DescriptionModified Date
Single-chip 16/32-bit microcontrollers; 32/64/128/256/512 kB ISP/IAP flash with 10-bit ADC and DAC (REV 5.1) PDF (381.0 kB) LPC2131_32_34_36_3829 Jul 2011
Errata (2)
Name/DescriptionModified Date
Errata sheet LPC2138/01 (REV 2.1) PDF (132.0 kB) ES_LPC2138_0115 May 2012
Errata sheet LPC2138 (REV 2.0) PDF (286.0 kB) ES_LPC213816 Mar 2011
Application Notes (21)
Name/DescriptionModified Date
Interfacing NXP® bridge IC with NXP ARM microcontroller (REV 1.0) PDF (65.0 kB) AN1058721 Jun 2016
Guidelines for full-speed USB on NXP®'s LPC microcontrollers (REV 1.1) PDF (148.0 kB) AN1139220 Feb 2014
NXP® LPC2000 IEC60335 Class B library (REV 1.0) ZIP (526.0 kB) AN1149821 Jan 2014
UUencoding for UART ISP (REV 1.0) PDF (139.0 kB) AN1122906 Jul 2012
Using the Philips LPC2000 Flash utility with the Keil MCB2100 and IAR LPC210x Kickstart evaluation boards (REV 4.0) PDF (529.0 kB) AN1030216 Feb 2010
Migrating to the LPC1700 series (REV 1.0) PDF (615.0 kB) AN1087806 Oct 2009
NicheLite for LPC implementation notes (REV 1.0) PDF (190.0 kB) AN1077516 Jul 2009
Full-duplex software UART for LPC2000 (REV 1.0) PDF (1.1 MB) AN1068918 Jan 2008
Brushless DC motor control using the LPC2141 (REV 1.0) PDF (426.0 kB) AN1066118 Oct 2007
uC/OS-II Time Management in LPC2000 (REV 1.0) PDF (164.0 kB) AN1041318 Jul 2007
Realizing an MP3 player with the LPC2148, using libmad and EFSL (REV 1.0) PDF (782.0 kB) AN1058323 Apr 2007
Connecting ethernet interface with LPC2000 (REV 1.0) PDF (242.0 kB) AN1040309 Feb 2007
Migrating to the LPC2300/2400 family (REV 1.0) PDF (191.0 kB) AN1057605 Feb 2007
LPC2138 extreme power down application note (REV 1.0) PDF (758.0 kB) AN1053515 Dec 2006
Entering ISP mode from user code (REV 3.0) PDF (112.0 kB) AN1035606 Sep 2006
Power management for LPC2138 (REV 1.0) PDF (202.0 kB) AN1042106 Jan 2006
Handling of spurious interrupts in the LPC2000 (REV 1.0) PDF (182.0 kB) AN1041404 Jan 2006
Initialization code/hints for the LPC2000 family (REV 1.0) PDF (300.0 kB) AN1040401 Nov 2005
Nesting of interrupts in the LPC2000 (REV 1.0) PDF (65.0 kB) AN1038106 Jun 2005
Using the RTC efficiently in the LPC213x (REV 1.0) PDF (50.0 kB) AN1038206 Jun 2005
Using IAP for LPC2000 ARM devices (REV 1.0) PDF (123.0 kB) AN1025625 Oct 2004
Users Guides (1)
Name/DescriptionModified Date
LPC2131/2/4/6/8 User manual (REV 4.0) PDF (1.9 MB) UM1012015 May 2012
Brochures (1)
Name/DescriptionModified Date
Create smarter, more efficient white goods; An industry-leading portfolio of cost-effective, power-saving solutions for... (REV 1.0) PDF (1.1 MB) 7501654301 Jun 2008
Package Information (1)
Name/DescriptionModified Date
plastic low profile quad flat package; 64 leads; body 10 x 10 x 1.4 mm (REV 1.0) PDF (537.0 kB) SOT314-208 Feb 2016
Packing (1)
Name/DescriptionModified Date
LQFP64; Reel pack; SMD, 13" Q1/T1 Standard product orientation Orderable part number ending ,118 or... (REV 1.0) PDF (239.0 kB) SOT314-2_11815 Apr 2013
Supporting Information (7)
Name/DescriptionModified Date
Footprint for wave soldering (REV 1.0) PDF (11.0 kB) HTQFP-HLQFP-LQFP-MSQFP-WAVE08 Oct 2009
LPC21xx/22xx, 2104/5/6 revision defect (with software) (REV 1.0) ZIP (36.0 kB) TN0800313 Oct 2008
TN06005_LPC2000_I2C_1 (REV 0.1) PDF (51.0 kB) TN06005_LPC2000_I2C_121 Apr 2006
TN06004_LPC2000_ADC_1 (REV 0.1) PDF (45.0 kB) TN06004_LPC2000_ADC_127 Mar 2006
TN06002_LPC2000_EINT_1 (REV 0.1) PDF (26.0 kB) TN06002_LPC2000_EINT_122 Feb 2006
MACC06001_LPC2000_SPI_1 (REV 0.1) PDF (60.0 kB) MACC06001_LPC2000_SPI_120 Jan 2006
MACC05007_LPC2000_UART_1 (REV 0.1) PDF (30.0 kB) MACC05007_LPC2000_UART_119 Sep 2005
Snippets, Boot Code, Headers, Monitors, etc.
Software
Ordering Information
ProductStatusCoreClock speed [max] (MHz)Flash (kB)DMIPSRAM (kB)EEPROM (kB)GPIOEthernetUSBUSB (speed)USB (type)LCDCANUARTI²CSPII²SADC channelsADC (bits)SCTimer / PWMDAC (bits)TimersTimer (bits)RTCPWMIOHPackage nameTemperature rangeSupply voltage [min] (V)Supply voltage [max] (V)Product categoryDemoboard
LPC2138FBD64/01ActiveARM7605123247221161033216LQFP64-40 °C to +85 °C33.6OM10045
LPC2138FBD64No Longer ManufacturedARM76051232472211610133216NLQFP64-40 °C to +85 °C33.6150-LPC2100/200/300/400-OM10045
Package Information
Product IDPackage DescriptionOutline VersionReflow/Wave SolderingPackingProduct StatusPart NumberOrdering code(12NC)MarkingChemical ContentRoHS / Pb Free / RHFLeadFree Conversion DateEFRIFR(FIT)MTBF(hour)MSLMSL LF
LPC2138FBD64SOT314-2HTQFP-HLQFP-LQFP-MSQFP-WAVETray, Bakeable, SingleWithdrawnLPC2138FBD64,151 (9352 777 95151)Standard MarkingAlways Pb-free0.02.842.58E811
LPC2138FBD64/01SOT314-2HTQFP-HLQFP-LQFP-MSQFP-WAVETray, Bakeable, SingleActiveLPC2138FBD64/01,15 (9352 817 76151)Standard MarkingLPC2138FBD64/01Always Pb-free0.02.842.58E811
Reel 13" Q1/T1ActiveLPC2138FBD64/01,11 (9352 817 76118)Standard MarkingLPC2138FBD64/01Always Pb-free0.02.842.58E811
Single-chip 16/32-bit microcontrollers; 32/64/128/256/512 kB ISP/IAP flash with 10-bit ADC and DAC LPC2138FBD64
Errata sheet LPC2138/01 LPC2138FBD64
Errata sheet LPC2138 LPC2138FBD64
Interfacing NXP® bridge IC with NXP ARM microcontroller LPC2194HBD64
Guidelines for full-speed USB on NXP®'s LPC microcontrollers LPC1788FET208
NXP® LPC2000 IEC60335 Class B library LPC2138FBD64
UUencoding for UART ISP LPC43S50FET256
Using the Philips LPC2000 Flash utility with the Keil MCB2100 and IAR LPC210x Kickstart evaluation boards LPC2294HBD144
Migrating to the LPC1700 series LPC1768FBD100
NicheLite for LPC implementation notes LPC2478FET208
Full-duplex software UART for LPC2000 LPC2468FET208
Brushless DC motor control using the LPC2141 BAS16_AUTOMOTIVE
uC/OS-II Time Management in LPC2000 LPC2468FET208
Realizing an MP3 player with the LPC2148, using libmad and EFSL LPC2290FBD144
Connecting ethernet interface with LPC2000 LPC2294HBD144
Migrating to the LPC2300/2400 family LPC2468FET208
LPC2138 extreme power down application note LPC2138FBD64
Entering ISP mode from user code LPC2148FBD64
Power management for LPC2138 LPC2290FBD144
Handling of spurious interrupts in the LPC2000 LPC2294HBD144
Initialization code/hints for the LPC2000 family LPC2294HBD144
Nesting of interrupts in the LPC2000 LPC2294HBD144
Using the RTC efficiently in the LPC213x LPC2138FBD64
Using IAP for LPC2000 ARM devices LPC2478FET208
LPC2131/2/4/6/8 User manual LPC2138FBD64
Create smarter, more efficient white goods; An industry-leading portfolio of cost-effective, power-saving solutions for... PMEG6010CE_AUTOMOTIVE
LPC21xx/22xx, 2104/5/6 revision defect (with software) LPC2294HBD144
TN06005_LPC2000_I2C_1 LPC2294HBD144
TN06004_LPC2000_ADC_1 LPC2294HBD144
TN06002_LPC2000_EINT_1 LPC2294HBD144
MACC06001_LPC2000_SPI_1 LPC2294HBD144
MACC05007_LPC2000_UART_1 LPC2294HBD144
Sample Code Bundle for LPC213x/LPC214x Peripherals using Keil's μVision LPC2138FBD64
LPC2000_Series_Secondary_Bootl_1 LPC2478FET208
AN10722 - RC5 decoder using the LPC2000 LPC2478FET208
TN06008_LPC2000_SPI_1 LPC2294HBD144
SOT314-2 LPC54114J256BD64
HTQFP-HLQFP-LQFP-MSQFP-WAVE LPC54114J256BD64
Reel 13" Q1/T1 LPC11U37FBD64
LPC2138FBD64
TEF6862HL