LPC2131_32_34_36_38 NXP Semiconductors, LPC2131_32_34_36_38 Datasheet
LPC2131_32_34_36_38
Related parts for LPC2131_32_34_36_38
LPC2131_32_34_36_38 Summary of contents
Page 1
LPC2131/32/34/36/38 Single-chip 16/32-bit microcontrollers; 32/64/128/256/512 kB ISP/IAP flash with 10-bit ADC and DAC Rev. 5.1 — 29 July 2011 1. General description 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 ...
Page 2
... LPC2132FBD64/01 LQFP64 LPC2132FHN64/01 HVQFN64 plastic thermal enhanced very thin quad flat LPC2134FBD64/01 LQFP64 LPC2136FBD64/01 LQFP64 LPC2138FBD64/01 LQFP64 LPC2138FHN64/01 HVQFN64 plastic thermal enhanced very thin quad flat LPC2131_32_34_36_38 Product data sheet Ordering information Package Name Description plastic low profile quad flat package; 64 leads; ...
Page 3
... NXP Semiconductors 3.1 Ordering options Table 2. Type number LPC2131FBD64/01 LPC2132FBD64/01 LPC2132FHN64/01 LPC2134FBD64/01 LPC2136FBD64/01 LPC2138FBD64/01 LPC2138FHN64/01 LPC2131_32_34_36_38 Product data sheet Ordering options Flash RAM ADC memory 128 256 512 512 All information provided in this document is subject to legal disclaimers ...
Page 4
... AD0[7:0] A/D CONVERTERS 0 AND 1 (1) AD1[7:0] (2) AOUT D/A CONVERTER P0[31:0] GENERAL PURPOSE I/O P1[31:16] PWM[6:1] PWM0 (1) LPC2134/36/38 only. (2) LPC2132/34/36/38 only. (3) Pins shared with GPIO. Fig 1. Block diagram LPC2131_32_34_36_38 Product data sheet (3) (3) TMS TDI trace signals (3) (3) (3) TRST TCK TDO TEST/DEBUG INTERFACE ARM7TDMI-S AHB BRIDGE (Advanced High-performance Bus) ...
Page 5
... P1.17/TRACEPKT1 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 Fig 2. LPC2131 LQFP64 pin configuration LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 LPC2131 LPC2131/01 All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 Single-chip 16/32-bit microcontrollers 48 P1.20/TRACESYNC 47 P0.17/CAP1.2/SCK1/MAT1 ...
Page 6
... P1.17/TRACEPKT1 12 P0.28/AD0.1/CAP0.2/MAT0.2 13 P0.29/AD0.2/CAP0.3/MAT0 P0.30/AD0.3/EINT3/CAP0.0 P1.16/TRACEPKT0 16 Fig 3. LPC2132 LQFP64 pin configuration LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 LPC2132 LPC2132/01 All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 Single-chip 16/32-bit microcontrollers 48 P1.20/TRACESYNC 47 P0.17/CAP1.2/SCK1/MAT1 ...
Page 7
... P0.28/AD0.1/CAP0.2/MAT0.2 13 P0.29/AD0.2/CAP0.3/MAT0 P0.30/AD0.3/EINT3/CAP0.0 P1.16/TRACEPKT0 16 Fig 4. LPC2134/36/38 LQFP64 pin configuration LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 LPC2134, LPC2134/01 LPC2136, LPC2136/01 LPC2138, LPC2138/01 All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 Single-chip 16/32-bit microcontrollers 48 P1 ...
Page 8
... RTCX2 DDA P1.18/TRACEPKT2 P0.25/AD0.4/AOUT P0.26/AD0.5 P0.27/AD0.0/CAP0.1/MAT0.1 P1.17/TRACEPKT1 P0.28/AD0.1/CAP0.2/MAT0.2 P0.29/AD0.2/CAP0.3/MAT0.3 P0.30/AD0.3/EINT3/CAP0.0 P1.16/TRACEPKT0 AD1.7 to AD1.0 only available on LPC2134/36/38. Fig 5. LPC2132/38 HVQFN64 pin configuration LPC2131_32_34_36_38 Product data sheet LPC2132/2138 ...
Page 9
... O CAP1.0/AD1 LPC2131_32_34_36_38 Product data sheet Description Port 0: Port 32-bit I/O port with individual direction controls for each bit. Total of 31 pins of the Port 0 can be used as a general purpose bidirectional digital I/Os while P0.31 is output only pin. The operation of port 0 pins depends upon the pin function selected via the pin connect block ...
Page 10
... I [4] P0.22/AD1. CAP0.0/MAT0 LPC2131_32_34_36_38 Product data sheet Description CTS1 — Clear to Send input for UART1. Available in LPC2134/36/38. CAP1.1 — Capture input for Timer 1, channel 1. 2 SCL1 — clock input/output. Open drain output (for I DSR1 — Data Set Ready input for UART1. Available in LPC2134/36/38. ...
Page 11
... O TRACECLK [6] P1.25/EXTIN0 28 I LPC2131_32_34_36_38 Product data sheet Description General purpose digital input/output pin. AD0.4 — ADC 0, input 4. This analog input is always connected to its pin. AOUT — DAC output. Not available in LPC2131. AD0.5 — ADC 0, input 5. This analog input is always connected to its pin. ...
Page 12
... Pad provides special analog functionality. [9] When unused, the RTCX1 pin can be grounded or left floating. For lowest power leave it floating. The other RTC pin, RTCX2, should be left floating. LPC2131_32_34_36_38 Product data sheet Description RTCK — Returned Test Clock output. Extra signal added to the JTAG port. Assists debugger synchronization when processor frequency varies ...
Page 13
... On-chip static RAM may be used for code and/or data storage. The SRAM may be accessed as 8-bit, 16-bit, and 32-bit. The LPC2131, LPC2132/34, and LPC2136/38 provide 8 kB and static RAM respectively. LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 All information provided in this document is subject to legal disclaimers. ...
Page 14
... The LPC2131/32/34/36/38 memory map incorporates several distinct regions, as shown in Figure In addition, the CPU interrupt vectors may be re-mapped to allow them to reside in either flash memory (the default) or on-chip static RAM. This is described in “System Fig 6. LPC2131/32/34/36/38 memory map LPC2131_32_34_36_38 Product data sheet 6. control”. 4.0 GB AHB PERIPHERALS 3.75 GB APB PERIPHERALS 3 ...
Page 15
... Table 4. Block WDT - ARM Core ARM Core TIMER0 TIMER1 UART0 LPC2131_32_34_36_38 Product data sheet lists the interrupt sources for each peripheral function. Each peripheral device has Interrupt sources Flag(s) Watchdog Interrupt (WDINT) Reserved for software interrupts only EmbeddedICE, DbgCommRX EmbeddedICE, DbgCommTX ...
Page 16
... Features • Direction control of individual bits. • Separate control of output set and clear. • All I/O default to inputs after reset. LPC2131_32_34_36_38 Product data sheet Interrupt sources …continued Flag(s) RX Line Status (RLS) Transmit Holding Register empty (THRE) RX Data Available (RDA) ...
Page 17
... B Receive and Transmit FIFOs. • Register locations conform to 16C550 industry standard. • Receiver FIFO trigger points and 14 B LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 Single-chip 16/32-bit microcontrollers © ...
Page 18
... 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. LPC2131_32_34_36_38 Product data sheet 2 C compliant bus interface. ...
Page 19
... A capture event may also optionally generate an interrupt. • Four 32-bit match registers that allow: – Continuous operation with optional interrupt generation on match. LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 Single-chip 16/32-bit microcontrollers © ...
Page 20
... 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. • Dedicated power supply pin can be connected to a battery or the main 3.3 V. LPC2131_32_34_36_38 Product data sheet 256 cy(PCLK) 4. ...
Page 21
... All PWM outputs will occur at the same repetition rate. • Double edge controlled PWM outputs can be programmed to be either positive going or negative going pulses. LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 Single-chip 16/32-bit microcontrollers © ...
Page 22
... Since the oscillator and other functions are turned off during Power-down mode, any wake-up of the processor from Power-down mode makes use of the wake-up timer. LPC2131_32_34_36_38 Product data sheet and CCLK are the same value unless the PLL is running and connected. Refer to for additional information ...
Page 23
... 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. LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 ramp (in the case of power on), the type of crystal DD All information provided in this document is subject to legal disclaimers ...
Page 24
... 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. LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/ ⁄ ...
Page 25
... It communicates with the host using the DCC, which is present in the EmbeddedICE logic. The LPC2131/32/34/36/38 contain a specific configuration of RealMonitor software programmed into the on-chip flash memory. LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 All information provided in this document is subject to legal disclaimers. ...
Page 26
... Not to exceed 4.6 V. [4] The peak current is limited to 25 times the corresponding maximum current. [5] Dependent on package type. [6] Human body model: equivalent to discharging a 100 pF capacitor through a 1.5 k series resistor. LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 [1] Conditions for the RTC on ADC related pins 5 V tolerant I/O pins ...
Page 27
... OHS output current I LOW-level short-circuit OLS output current I pull-down current pd I pull-up current pu I active mode supply DD(act) current I Power-down mode supply DD(pd) current LPC2131_32_34_36_38 Product data sheet Conditions pull- no-pull-down pull-up/down (0.5V ) < ...
Page 28
... RTCX2 Typical ratings are not guaranteed. The values listed are at room temperature (25 C), nominal supply voltages. [1] [2] The RTC typically fails when V i(VBAT) [3] Including voltage on outputs in 3-state mode. LPC2131_32_34_36_38 Product data sheet …continued Conditions RTC clock = 32 kHz (from RTCXn pins C T ...
Page 29
... Parameters are valid over operating temperature range unless otherwise specified. Typical ratings are not guaranteed. The values listed are at room temperature (25 C), nominal supply voltages. [2] [3] Bus capacitance C in pF, from 400 pF. b LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 is grounded 5 over specified ranges. ...
Page 30
... C (typical C (typical) ( Fig 8. I measured at different frequencies (CCLK) and temperatures DD(act) LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/ CHCL CLCX 20 30 All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 Single-chip 16/32-bit microcontrollers ...
Page 31
... 3.3 V (max 3.3 V (typical) DD Fig 10. I measured at different temperatures DD(pd) LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/ All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 Single-chip 16/32-bit microcontrollers 002aab403 40 50 frequency (MHz) 002aab405 ...
Page 32
... ADC and the ideal transfer curve. See [8] See Figure 11. LPC2131_32_34_36_38 Product data sheet Conditions ) is the difference between the actual step width and the ideal step width. See ) is the peak difference between the center of the steps of the actual and the ideal transfer curve after Figure 11 ...
Page 33
... E O (1) Example of an actual transfer curve. (2) The ideal transfer curve. (3) Differential linearity error (E (4) Integral non-linearity (E L(adj) (5) Center of a step of the actual transfer curve. Fig 11. ADC characteristics LPC2131_32_34_36_38 Product data sheet (2) (5) (4) (3) 1 LSB (ideal (LSB ...
Page 34
... NXP Semiconductors Fig 12. Suggested ADC interface - LPC2131/32/34/36/38 ADx.y pin LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 LPC2131/32/34/36/38 20 kΩ ADx.y SAMPLE All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 Single-chip 16/32-bit microcontrollers R vsi ADx EXT 002aad452 © ...
Page 35
... D E integral non-linearity L(adj) E offset error O E gain error G C load capacitance L R load resistance L LPC2131_32_34_36_38 Product data sheet LPC2131/32/34/36/38 Conditions All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 Single-chip 16/32-bit microcontrollers Min Typ Max 1 ...
Page 36
... C fundamental mode oscillation (the fundamental frequency is represented Capacitance C S not be larger than 7 pF. Parameters F manufacturer. LPC2131_32_34_36_38 Product data sheet which attenuates the input voltage by a factor C g 13), with an amplitude between 200 mV (RMS) and 1000 mV (RMS). This and Table 11 ...
Page 37
... Fundamental oscillation frequency F 1 MHz to 5 MHz 5 MHz to 10 MHz 10 MHz to 15 MHz 15 MHz to 20 MHz Table 11. Fundamental oscillation frequency F 15 MHz to 20 MHz 20 MHz to 25 MHz LPC2131_32_34_36_38 Product data sheet LPC2xxx XTAL1 XTAL2 XTAL model used for C /C evaluation ...
Page 38
... Loops must be made as small as possible in order to keep the noise coupled in via the PCB as small as possible. Also parasitics should stay as small as possible. Values of C accordingly to the increase in parasitics of the PCB layout. LPC2131_32_34_36_38 Product data sheet LPC2xxx RTCX1 ...
Page 39
... 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. OUTLINE VERSION IEC SOT314-2 136E10 Fig 16. Package outline SOT314-2 (LQFP64) LPC2131_32_34_36_38 Product data sheet ...
Page 40
... DIMENSIONS (mm are the original dimensions) A UNIT max. 0.05 0.80 0. 0.00 0.65 0.18 OUTLINE VERSION IEC SOT804 Fig 17. Package outline SOT804-2 (HVQFN64) LPC2131_32_34_36_38 Product data sheet 1 1 scale ...
Page 41
... GPIO JTAG LSB PLL POR PWM RAM SPI SRAM SSP UART LPC2131_32_34_36_38 Product data sheet Acronym list Description Analog-to-Digital Analog-to-Digital Converter Advanced High-performance Bus Advanced Microcontroller Bus Architecture Advanced Peripheral Bus BrownOut Detection Central Processing Unit Digital-to-Analog Converter ...
Page 42
... All information provided in this document is subject to legal disclaimers. Rev. 5.1 — 29 July 2011 LPC2131/32/34/36/38 Single-chip 16/32-bit microcontrollers Change notice Supersedes - LPC2131_32_34_36_38 v.5 values”. - LPC2131_32_34_36_38 v.4 Table note [9] to RTCX1 and RTCX2 pins. 2 C-bus pins: Changed typical hysteresis voltage from and V IH Table note [ ...
Page 43
... Suitability for use — NXP Semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or LPC2131_32_34_36_38 Product data sheet [3] Definition This document contains data from the objective specification for product development. ...
Page 44
... NXP Semiconductors’ specifications such use shall be solely at customer’s 17. Contact information For more information, please visit: For sales office addresses, please send an email to: LPC2131_32_34_36_38 Product data sheet own risk, and (c) customer fully indemnifies NXP Semiconductors for any liability, damages or failed product claims resulting from customer design and use of the product for automotive applications beyond NXP Semiconductors’ ...
Page 45
... Please be aware that important notices concerning this document and the product(s) described herein, have been included in section ‘Legal information’. © NXP B.V. 2011. For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com Document identifier: LPC2131_32_34_36_38 All rights reserved. Date of release: 29 July 2011 ...