LPC2141/42/44/46/48 Single-chip 16-bit/32-bit microcontrollers; up to 512 kB flash with ISP/IAP, USB 2.0 full-speed device, 10-bit ADC and DAC Rev. 5 — 12 August 2011 Product data sheet 1. General description The LPC2141/42/44/46/48 microcontrollers are based on a 16-bit/32-bit ARM7TDMI-S CPU with real-time emulation and embedded trace support, that combine the microcontroller with embedded high-speed flash memory ranging from 32 kB to 512 kB.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers Multiple serial interfaces including two UARTs (16C550), two Fast I2C-bus (400 kbit/s), SPI and SSP with buffering and variable data length capabilities. Vectored Interrupt Controller (VIC) with configurable priorities and vector addresses. Up to 45 of 5 V tolerant fast general purpose I/O pins in a tiny LQFP64 package. Up to 21 external interrupt pins available.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 4.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 5. Pinning information 49 VBAT 50 VSS 51 VDD 52 P1.30/TMS 53 P0.18/CAP1.3/MISO1/MAT1.3 54 P0.19/MAT1.2/MOSI1/CAP1.2 55 P0.20/MAT1.3/SSEL1/EINT3 56 P1.29/TCK 57 RESET 58 P0.23/VBUS 59 VSSA 60 P1.28/TDI 61 XTAL2 62 XTAL1 63 VREF 64 P1.27/TDO 5.1 Pinning P0.21/PWM5/CAP1.3 1 48 P1.20/TRACESYNC P0.22/CAP0.0/MAT0.0 2 47 P0.17/CAP1.2/SCK1/MAT1.2 RTCX1 3 46 P0.16/EINT0/MAT0.2/CAP0.2 P1.
LPC2141/42/44/46/48 NXP Semiconductors 49 VBAT 50 VSS 51 VDD 52 P1.30/TMS 53 P0.18/CAP1.3/MISO1/MAT1.3 54 P0.19/MAT1.2/MOSI1/CAP1.2 55 P0.20/MAT1.3/SSEL1/EINT3 56 P1.29/TCK 57 RESET 58 P0.23/VBUS 59 VSSA 60 P1.28/TDI 61 XTAL2 62 XTAL1 63 VREF 64 P1.27/TDO Single-chip 16-bit/32-bit microcontrollers P0.21/PWM5/CAP1.3 1 48 P1.20/TRACESYNC P0.22/CAP0.0/MAT0.0 2 47 P0.17/CAP1.2/SCK1/MAT1.2 RTCX1 3 46 P0.16/EINT0/MAT0.2/CAP0.2 P1.19/TRACEPKT3 4 45 P0.15/EINT2 RTCX2 5 44 P1.
LPC2141/42/44/46/48 NXP Semiconductors 49 VBAT 50 VSS 51 VDD 52 P1.30/TMS 53 P0.18/CAP1.3/MISO1/MAT1.3 54 P0.19/MAT1.2/MOSI1/CAP1.2 55 P0.20/MAT1.3/SSEL1/EINT3 56 P1.29/TCK 57 RESET 58 P0.23/VBUS 59 VSSA 60 P1.28/TDI 61 XTAL2 62 XTAL1 63 VREF 64 P1.27/TDO Single-chip 16-bit/32-bit microcontrollers P0.21/PWM5/AD1.6/CAP1.3 1 48 P1.20/TRACESYNC P0.22/AD1.7/CAP0.0/MAT0.0 2 47 P0.17/CAP1.2/SCK1/MAT1.2 RTCX1 3 46 P0.16/EINT0/MAT0.2/CAP0.2 P1.19/TRACEPKT3 4 45 P0.15/RI1/EINT2/AD1.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 5.2 Pin description Table 3. Pin description Symbol Pin P0.0 to P0.31 Type Description I/O Port 0: Port 0 is a 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. Pins P0.24, P0.26 and P0.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers Table 3. Pin description …continued Symbol Pin Type Description P0.8/TXD1/ PWM4/AD1.1 33[4] I/O P0.8 — General purpose input/output digital pin (GPIO). O TXD1 — Transmitter output for UART1. O PWM4 — Pulse Width Modulator output 4. P0.9/RXD1/ PWM6/EINT3 P0.10/RTS1/ CAP1.0/AD1.2 P0.11/CTS1/ CAP1.1/SCL1 P0.12/DSR1/ MAT1.0/AD1.3 P0.13/DTR1/ MAT1.1/AD1.4 P0.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers Table 3. Pin description …continued Symbol Pin Type Description P0.16/EINT0/ MAT0.2/CAP0.2 46[2] I/O P0.16 — General purpose input/output digital pin (GPIO). I EINT0 — External interrupt 0 input. O MAT0.2 — Match output for Timer 0, channel 2. P0.17/CAP1.2/ SCK1/MAT1.2 P0.18/CAP1.3/ MISO1/MAT1.3 P0.19/MAT1.2/ MOSI1/CAP1.2 P0.20/MAT1.3/ SSEL1/EINT3 P0.21/PWM5/ AD1.6/CAP1.3 P0.22/AD1.7/ CAP0.0/MAT0.0 P0.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers Table 3. Pin description …continued Symbol Pin Type Description P0.29/AD0.2/ CAP0.3/MAT0.3 14[4] I/O P0.29 — General purpose input/output digital pin (GPIO). I AD0.2 — ADC 0, input 2. I CAP0.3 — Capture input for Timer 0, channel 3. P0.30/AD0.3/ EINT3/CAP0.0 P0.31/UP_LED/ CONNECT 15[4] 17[6] O MAT0.3 — Match output for Timer 0, channel 3. I/O P0.30 — General purpose input/output digital pin (GPIO).
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers Table 3. Pin description …continued Symbol Pin Type Description P1.23/ PIPESTAT2 36[6] I/O P1.23 — General purpose input/output digital pin (GPIO). Standard I/O port with internal pull-up. O PIPESTAT2 — Pipeline Status, bit 2. P1.24/ TRACECLK 32[6] I/O P1.24 — General purpose input/output digital pin (GPIO). Standard I/O port with internal pull-up. O TRACECLK — Trace Clock. P1.25/EXTIN0 28[6] I/O P1.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers Table 3. Pin description …continued Symbol Pin Type Description VDDA 7 I Analog 3.3 V power supply: This should be nominally the same voltage as VDD but should be isolated to minimize noise and error. This voltage is only used to power the on-chip ADC(s) and DAC. VREF 63 I ADC reference voltage: This should be nominally less than or equal to the VDD voltage but should be isolated to minimize noise and error.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 6. Functional description 6.1 Architectural overview The ARM7TDMI-S is a 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 (CISC).
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 6.3 On-chip static RAM 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 LPC2141, LPC2142/44 and LPC2146/48 provide 8 kB, 16 kB and 32 kB of static RAM respectively. In case of LPC2146/48 only, an 8 kB SRAM block intended to be utilized mainly by the USB can also be used as a general purpose RAM for data storage and code storage and execution. 6.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 6.5 Interrupt controller The Vectored Interrupt Controller (VIC) accepts all of the interrupt request inputs and categorizes them as Fast Interrupt reQuest (FIQ), vectored Interrupt ReQuest (IRQ), and non-vectored IRQ as defined by programmable settings. The programmable assignment scheme means that priorities of interrupts from the various peripherals can be dynamically assigned and adjusted. FIQ has the highest priority.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 6.7 Fast general purpose parallel I/O (GPIO) 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.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers • Selectable speed versus power. 6.10 USB 2.0 device controller The USB is a 4-wire serial bus that supports communication between a host and a number (127 max) of peripherals. The host controller allocates the USB bandwidth to attached devices through a token based protocol. The bus supports hot plugging, unplugging, and dynamic configuration of the devices. All transactions are initiated by the host controller.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 6.11.1 Features • • • • 16 B Receive and Transmit FIFOs. Register locations conform to 16C550 industry standard. Receiver FIFO trigger points at 1 B, 4 B, 8 B, and 14 B Built-in fractional baud rate generator covering wide range of baud rates without a need for external crystals of particular values. • Transmission FIFO control enables implementation of software (XON/XOFF) flow control on both UARTs.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 6.13.1 Features • • • • Compliant with SPI specification. Synchronous, Serial, Full Duplex, Communication. Combined SPI master and slave. Maximum data bit rate of one eighth of the input clock rate. 6.14 SSP serial I/O controller The LPC2141/42/44/46/48 each contain one Serial Synchronous Port controller (SSP). The SSP controller is capable of operation on a SPI, 4-wire SSI, or Microwire bus.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers – Stop timer on match with optional interrupt generation. – Reset timer on match with optional interrupt generation. • Four external outputs per timer/counter corresponding to match registers, with the following capabilities: – Set LOW on match. – Set HIGH on match. – Toggle on match. – Do nothing on match. 6.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 6.18 Pulse width modulator The PWM is based on the standard timer block and inherits all of its features, although only the PWM function is pinned out on the LPC2141/42/44/46/48. The timer is designed to count cycles of the peripheral clock (PCLK) and optionally generate interrupts or perform other actions when specified timer values occur, based on seven match registers.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers • Match register updates are synchronized with pulse outputs to prevent generation of erroneous pulses. Software must ‘release’ new match values before they can become effective. • May be used as a standard timer if the PWM mode is not enabled. • A 32-bit Timer/Counter with a programmable 32-bit Prescaler. 6.19 System control 6.19.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers The Wake-up Timer monitors the crystal oscillator as the means of checking whether it is safe to begin code execution. When power is applied to the chip, or some event caused the chip to exit Power-down mode, some time is required for the oscillator to produce a signal of sufficient amplitude to drive the clock logic.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 6.19.8 Power control The LPC2141/42/44/46/48 supports two reduced power modes: Idle mode and Power-down mode. In Idle mode, execution of instructions is suspended until either a reset or interrupt occurs. Peripheral functions continue operation during Idle mode and may generate interrupts to cause the processor to resume execution.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers The ARM core has a Debug Communication Channel (DCC) function built-in. The DCC allows a program running on the target to communicate with the host debugger or another separate host without stopping the program flow or even entering the debug state. The DCC is accessed as a co-processor 14 by the program running on the ARM7TDMI-S core.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 7. Limiting values Table 4. Limiting values In accordance with the Absolute Maximum Rating System (IEC 60134).[1] Symbol Parameter Conditions VDD supply voltage (core and external rail) VDDA analog 3.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 8. Static characteristics Table 5. Static characteristics Tamb = 40 C to +85 C for commercial applications, unless otherwise specified. Symbol Parameter VDD supply voltage VDDA analog supply voltage Vi(VBAT) input voltage on pin VBAT Vi(VREF) input voltage on pin VREF Conditions [2] 3.3 V pad [3] Min Typ[1] Max Unit 3.0 3.3 3.6 V 3.0 3.3 3.6 V 2.0 3.3 3.6 V 2.5 3.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers Table 5. Static characteristics …continued Tamb = 40 C to +85 C for commercial applications, unless otherwise specified. Symbol Parameter Conditions Min Typ[1] Max IDD(act) active mode supply current VDD = 3.3 V; Tamb = 25 C; code - 15 50 Unit while(1){} executed from flash, no active peripherals CCLK = 10 MHz mA CCLK = 60 MHz VDD = 3.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers Table 5. Static characteristics …continued Tamb = 40 C to +85 C for commercial applications, unless otherwise specified. Min Typ[1] Max Unit output voltage on pin XTAL2 0.5 1.8 1.95 V Vi(RTCX1) input voltage on pin RTCX1 0.5 1.8 1.95 V Vo(RTCX2) output voltage on pin RTCX2 0.5 1.8 1.95 V - - 10 A - - 5.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 9. Dynamic characteristics Table 6. Dynamic characteristics of USB pins (full-speed) CL = 50 pF; Rpu = 1.5 k on D+ to VDD, unless otherwise specified. Symbol Parameter Conditions Min Typ Max Unit tr rise time 10 % to 90 % 4 - 20 ns tf fall time 10 % to 90 % 4 - 20 ns tFRFM differential rise and fall time matching (tr/tf) 90 - 110 % VCRS output signal crossover voltage 1.3 - 2.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 9.1 Timing tCHCL tCHCX tCLCH tCLCX Tcy(clk) 002aaa907 Fig 6. External clock timing (with an amplitude of at least Vi(RMS) = 200 mV) TPERIOD crossover point extended crossover point differential data lines source EOP width: tFEOPT differential data to SE0/EOP skew n × TPERIOD + tFDEOP receiver EOP width: tEOPR1, tEOPR2 002aab561 Fig 7.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 10. ADC electrical characteristics Table 8. ADC static characteristics VDDA = 2.5 V to 3.6 V; Tamb = 40 C to +85 C unless otherwise specified; ADC frequency 4.5 MHz. Symbol Parameter VIA analog input voltage Cia analog input capacitance ED differential linearity error EL(adj) integral non-linearity offset error EO Conditions Min Typ Max Unit 0 - VDDA V - - 1 pF VSSA = 0 V, VDDA = 3.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers offset error EO gain error EG 1023 1022 1021 1020 1019 1018 (2) 7 code out (1) 6 5 (5) 4 (4) 3 (3) 2 1 LSB (ideal) 1 0 1 2 3 4 5 6 7 1018 1019 1020 1021 1022 1023 1024 VIA (LSBideal) offset error EO 1 LSB = Vi(VREF) − VSSA 1024 002aae604 (1) Example of an actual transfer curve. (2) The ideal transfer curve. (3) Differential linearity error (ED). (4) Integral non-linearity (EL(adj)).
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers LPC2141/42/44/46/48 20 kΩ ADx.y ADx.ySAMPLE 3 pF Rvsi 5 pF VEXT VSS 002aab834 Fig 9. Suggested ADC interface - LPC2141/42/44/46/48 ADx.y pin LPC2141_42_44_46_48 Product data sheet All information provided in this document is subject to legal disclaimers. Rev. 5 — 12 August 2011 © NXP B.V. 2011. All rights reserved.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 11. DAC electrical characteristics Table 9. DAC electrical characteristics VDDA = 3.0 V to 3.6 V; Tamb = 40 C to +85 C unless otherwise specified Symbol Parameter ED Min Typ Max Unit differential linearity error - 1 - LSB EL(adj) integral non-linearity - 1.5 - LSB EO offset error - 0.6 - % EG gain error - 0.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 12. Application information 12.1 Suggested USB interface solutions VDD CONNECT soft-connect switch LPC2141/42/ 44/46/48 R1 1.5 kΩ VBUS D+ RS = 33 Ω D− RS = 33 Ω USB-B connector VSS 002aab563 Fig 10. LPC2141/42/44/46/48 USB interface using the CONNECT function on pin 17 VDD R2 LPC2141/42/ 44/46/48 UP_LED R1 1.5 kΩ VBUS D+ RS = 33 Ω D− RS = 33 Ω USB-B connector VSS 002aab562 Fig 11.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers LPC2xxx XTAL1 Ci 100 pF Cg 002aae718 Fig 12. Slave mode operation of the on-chip oscillator In slave mode the input clock signal should be coupled by means of a capacitor of 100 pF (Figure 12), with an amplitude between 200 mV (RMS) and 1000 mV (RMS). This corresponds to a square wave signal with a signal swing of between 280 mV and 1.4 V. The XTAL2 pin in this configuration can be left unconnected.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers Table 10.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers that belong to a specific CL. The value of external capacitances CX1 and CX2 specified in this table are calculated from the internal parasitic capacitances and the CL. Parasitics from PCB and package are not taken into account. Table 12.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 13. Package outline LQFP64: plastic low profile quad flat package; 64 leads; body 10 x 10 x 1.4 mm SOT314-2 c y X A 48 33 49 32 ZE e E HE A A2 (A 3) A1 wM θ bp pin 1 index 64 Lp L 17 detail X 16 1 ZD e v M A wM bp D B HD v M B 0 2.5 5 mm scale DIMENSIONS (mm are the original dimensions) UNIT A max. A1 A2 A3 bp c D (1) E (1) e mm 1.6 0.20 0.05 1.45 1.35 0.25 0.27 0.17 0.18 0.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 14. Abbreviations Table 13.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 15. Revision history Table 14. Revision history Document ID Release date Data sheet status Change notice Supersedes LPC2141_42_44_46_48 v.5 20110812 Product data sheet - Modifications: LPC2141_42_44_46_48 v.4 Modifications: • • • LPC2141_42_44_46_48 v.4 Table 3 “Pin description”: Added Table note [10] to RTCX1 and RTCX2 pins. Table 4 “Limiting values”: Added parameter Isink.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers 16. Legal information 16.1 Data sheet status Document status[1][2] Product status[3] Definition Objective [short] data sheet Development This document contains data from the objective specification for product development. Preliminary [short] data sheet Qualification This document contains data from the preliminary specification.
LPC2141/42/44/46/48 NXP Semiconductors Single-chip 16-bit/32-bit microcontrollers Non-automotive qualified products — Unless this data sheet expressly states that this specific NXP Semiconductors product is automotive qualified, the product is not suitable for automotive use. It is neither qualified nor tested in accordance with automotive testing or application requirements.
NXP Semiconductors LPC2141/42/44/46/48 Single-chip 16-bit/32-bit microcontrollers 18. Contents 1 2 2.1 3 3.1 4 5 5.1 5.2 6 6.1 6.2 6.3 6.4 6.5 6.5.1 6.6 6.7 6.7.1 6.8 6.8.1 6.9 6.9.1 6.10 6.10.1 6.11 6.11.1 6.12 6.12.1 6.13 6.13.1 6.14 6.14.1 6.15 6.15.1 6.16 6.16.1 6.17 6.17.1 6.18 6.18.1 6.19 6.19.1 6.19.2 6.19.3 6.19.4 General description . . . . . . . . . . . . . . . . . . . . . . 1 Features and benefits . . . . . . . . . . . . . . . . . . . . 1 Key features . . . . . . . . . . . . . . . . . . . . .