LPC122X All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet Rev. 2 — 26 August 2011 16 of 61
NXP Semiconductors
LPC122x
32-bit ARM Cortex-M0 microcontroller
[1] After reset, the SWD functions are selected by default on pins PIO0_26 and PIO0_25.
7. Functional description
7.1 ARM Cortex-M0 processor
The ARM Cortex-M0 is a general purpose, 32-bit microprocessor, which offers high
performance and very low power consumption.
7.1.1 System tick timer
The ARM Cortex-M0 includes a System Tick timer (SYSTICK) that is intended to generate
a dedicated SYSTICK exception at a 10 ms interval.
7.2 On-chip flash program memory
The LPC122x contain up to 128 kB of on-chip flash memory.
7.3 On-chip SRAM
The LPC122x contain a total of up to 8 kB on-chip static RAM memory.
7.4 Memory map
The LPC122x incorporates several distinct memory regions, shown in the following
figures. Figure 4
shows the overall map of the entire address space from the user
program viewpoint following reset. The interrupt vector area supports address remapping.
The AHB peripheral area is 2 megabyte in size, and is divided to allow for up to 128
peripherals. The APB peripheral area is 512 kB in size and is divided to allow for up to 32
peripherals. Each peripheral of either type is allocated 16 kilobytes of space. This allows
simplifying the address decoding for each peripheral.
UART1 RXD1 I PIO0_8 PIO2_11 PIO2_12
TXD1 O PIO0_9 PIO2_10 PIO2_13
SSP/SPI SCK I/O PIO0_14 - -
MISO I/O PIO0_16 - -
MOSI I/O PIO0_17 - -
SSEL I/O PIO0_15 - -
I2C SCL I/O PIO0_10 - -
SDA I/O PIO0_11 - -
SWD SWCLK
[1]
I PIO0_18 PIO0_26 -
SWDIO
[1]
I/O PIO0_25 PIO1_2 -
Reset RESET
I PIO0_13 - -
Clockout pin CLKOUT O PIO0_12 - -
Table 4. Pin multiplexing
Peripheral Function Type Available on ports:
LPC122X All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet Rev. 2 — 26 August 2011 17 of 61
NXP Semiconductors
LPC122x
32-bit ARM Cortex-M0 microcontroller
7.5 Nested Vectored Interrupt Controller (NVIC)
The Nested Vectored Interrupt Controller (NVIC) is an integral part of the Cortex-M0. The
tight coupling to the CPU allows for low interrupt latency and efficient processing of late
arriving interrupts.
7.5.1 Features
Controls system exceptions and peripheral interrupts.
Fig 4. LPC122x memory map
0x5000 0000
0x5001 0000
0x5002 0000
AHB peripherals
3 - 6 reserved
GPIO PIO1
1
0x5003 0000
GPIO PIO2
2
0x5007 0000
0x5008 0000
CRC
7
GPIO PIO0
0
APB peripherals
0x4000 4000
0x4000 8000
0x4000 C000
0x4001 0000
0x4001 8000
0x4002 0000
0x4003 8000
0x4003 C000
0x4004 0000
0x4004 4000
0x4004 8000
0x4004 C000
0x4008 0000
0x4002 4000
0x4001 C000
0x4001 4000
0x4000 0000
WDT
32-bit counter/timer 0
32-bit counter/timer 1
ADC
UART0
UART1
PMU
I
2
C-bus
9 - 13 reserved
22 - 31 reserved
0
1
2
3
4
5
6
7
8
16
15
14
17
18
reserved
reserved
0x0000 0000
0 GB
4 GB
1 GB
0x0000 C000
0x0000 8000
0x1000 1000
0x1FFF 0000
0x1FFF 2000
0x4000 0000
0x4008 0000
0x5000 0000
0x5008 0000
0xFFFF FFFF
reserved
reserved
APB peripherals
AHB peripherals
4 kB SRAM (LPC1224)
0x1000 2000
8 kB SRAM (LPC1225/6/7)
0x1FFC 0000
reserved
0x1FFC 4000
16 kB NXP library ROM
0x1FFE 0000
reserved
0x1FFE 2000
8 kB custom ROM
reserved
0x1000 0000
LPC122x
48 kB on-chip flash (LPC1224/121)
32 kB on-chip flash (LPC1224/101)
0x0001 0000
64 kB on-chip flash (LPC1225/301)
0x0001 4000
80 kB on-chip flash (LPC1225/321)
0x0001 8000
96 kB on-chip flash (LPC1226/301)
0x0002 0000
128 kB on-chip flash (LPC1227/301)
8 kB boot ROM
0x0000 0000
0x0000 00C0
active interrupt vectors
reserved
SSP
16-bit counter/timer 1
16-bit counter/timer 0
IOCONFIG
system control
0x4005 0000
19
micro DMA registers
0x4005 4000
20
RTC
0x4005 8000
21
comparator 0/1
reserved
002aaf270
0xE000 0000
0xE010 0000
private peripheral bus
LPC122X All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet Rev. 2 — 26 August 2011 18 of 61
NXP Semiconductors
LPC122x
32-bit ARM Cortex-M0 microcontroller
In the LPC122x, the NVIC supports 32 vectored interrupts. In addition, up to 12 of the
individual GPIO inputs are NVIC-vector capable.
Four programmable interrupt priority levels with hardware priority level masking.
Software interrupt generation.
Non-maskable Interrupt (NMI) can be programmed to use any of the peripheral
interrupts. The NMI is not available on an external pin.
7.5.2 Interrupt sources
Each peripheral device has one interrupt line connected to the NVIC but may have several
interrupt flags. Individual interrupt flags may also represent more than one interrupt
source.
Any GPIO pin (total of up to 55 pins) regardless of the selected function, can be
programmed to generate an interrupt on a level, a rising edge or falling edge, or both.
7.6 IOCONFIG block
The IOCONFIG 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.
Peripherals should be connected to the appropriate pins prior to being activated and prior
to any related interrupt(s) being enabled. Activity of any enabled peripheral function that is
not mapped to a related pin should be considered undefined.
7.6.1 Features
Programmable pull-up resistor.
Programmable digital glitch filter.
Programmable input inverter.
Programmable drive current.
Programmable open-drain mode.
7.7 Micro DMA controller
The micro DMA controller enables memory-to-memory, memory-to-peripheral, and
peripheral-to-memory data transfers. The supported peripherals are: UART0 (transmit
and receive), UART1 (transmit and receive), SSP/SPI (transmit and receive), ADC, RTC,
32-bit counter/timer 0 (match output channels 0 and 1), 32-bit counter/timer 1 (match
output channels 0 and 1), 16-bit counter/timer 0 (match output channel 0), 16-bit
counter/timer 1 (match output channel 0), comparator 0, comparator 1, GPIO0 to GPIO2.
7.7.1 Features
Single AHB-Lite master for transferring data using a 32-bit address bus and 32-bit
data bus.
21 DMA channels.
Handshake signals and priority level programmable for each channel.
Each priority level arbitrates using a fixed priority that is determined by the DMA
channel number.

OM13013,598

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
LPC1227 EVAL BRD
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union