PHILIPS LPC2925

R
R
R
R
R
A
A
A
A
A
FT
FT
FT
FT
FT
D
R
R
A
A
FT
FT
FT
FT
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
ARM9 microcontroller with CAN, LIN, and USB device
R
A
F
FT
FT
A
A
R
R
D
D
Preliminary data sheet
D
Rev. 00.01 — 24 October 2008
D
D
D
D
D
LPC2921/2923/2925
D
FT
FT
A
A
R
R
D
D
D
R
1. General description
A
R
A
„ ARM968E-S processor running at frequencies of up to 125 MHz maximum.
„ Multilayer AHB system bus at 125 MHz with four separate layers.
„ On-chip memory:
‹ Two Tightly Coupled Memories (TCM), 16 kB Instruction (ITCM) and 16 kB Data
TCM (DTCM).
‹ On the LPC2925, two separate internal Static RAM (SRAM) instances, 16 kB each.
‹ On the LPC2923 and LPC2921, one 16 kB SRAM block.
‹ 8 kB ETB SRAM, also usable for code execution and data.
‹ Up to 512 kB high-speed flash-program memory.
‹ 16 kB true EEPROM, byte-erasable/programmable.
„ Dual-master, eight-channel GPDMA controller on the AHB multilayer matrix which can
be used with both I2C interfaces, the SPI interfaces, and the UARTs, as well as for
memory-to-memory transfers including the TCM memories.
„ Serial interfaces:
‹ USB 2.0 full-speed device controller with dedicated DMA controller and on-chip
device PHY.
‹ Two-channel CAN controller supporting Full-CAN and extensive message filtering.
‹ Two LIN master controllers with full hardware support for LIN communication. The
LIN interface can be configured as UART to provide two additional UART
interfaces.
‹ Two 550 UARTs with 16-byte Tx and Rx FIFO depths, DMA support, and RS485
(9-bit) support.
‹ Three full-duplex Q-SPIs with four slave-select lines; 16 bits wide; 8 locations deep;
Tx FIFO and Rx FIFO.
‹ Two I2C-bus interfaces.
D
2. Features
FT
The LPC2921/2923/2925 combine an ARM968E-S CPU core with two integrated TCM
blocks operating at frequencies of up to 125 MHz, Full-speed USB 2.0 device controller,
CAN and LIN, up to 40 kB SRAM, up to 512 kB flash memory, two 10-bit ADCs, and
multiple serial and parallel interfaces in a single chip targeted at consumer, industrial,
medical, communication, and automotive markets. To optimize system power
consumption, the LPC2921/2923/2925 has a very flexible Clock Generation Unit (CGU)
that provides dynamic clock gating and scaling.
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
„ Other peripherals:
‹ Two 10-bit ADCs, 8-channels each, with 3.3 V measurement range provide 8
analog inputs each with conversion times as low as 2.44 μs per channel. Each
channel provides a compare function to minimize interrupts.
‹ Multiple trigger-start option for all ADCs: timer, PWM, other ADC and external
signal input.
‹ Four 32-bit timers each containing four capture-and-compare registers linked to
I/Os.
‹ Four six-channel PWMs (Pulse-Width Modulators) with capture and trap
functionality.
‹ Two dedicated 32-bit timers to schedule and synchronize PWM and ADC.
‹ Quadrature encoder interface that can monitor one external quadrature encoder.
‹ 32-bit watchdog with timer change protection, running on safe clock.
„ Up to 60 general-purpose I/O pins with programmable pull-up, pull-down, or bus
keeper.
„ Vectored Interrupt Controller (VIC) with 16 priority levels.
„ Up to 16 level-sensitive external interrupt pins, including USB, CAN and LIN wake-up
features.
„ Configurable clock-out pin for driving external system clocks.
„ Processor wake-up from power-down via external interrupt pins; CAN or LIN activity.
„ Flexible Reset Generator Unit (RGU) able to control resets of individual modules.
„ Flexible Clock-Generation Unit (CGU) able to control clock frequency of individual
modules:
‹ On-chip very low-power ring oscillator; fixed frequency of 0.4 MHz; always on to
provide a Safe_Clock source for system monitoring.
‹ On-chip crystal oscillator with a recommended operating range from 10 MHz to
25 MHz. PLL input range 10 MHz to 25 MHz.
‹ On-chip PLL allows CPU operation up to a maximum CPU rate of 125 MHz.
‹ Generation of up to 11 base clocks.
‹ Seven fractional dividers.
„ Second, dedicated CGU with its own PLL generates the USB clock and a configurable
clock output.
„ Highly configurable system Power Management Unit (PMU):
‹ clock control of individual modules.
‹ allows minimization of system operating power consumption in any configuration.
„ Standard ARM test and debug interface with real-time in-circuit emulator.
„ Boundary-scan test supported.
„ ETM/ETB debug functions with 8 kB of dedicated SRAM also accessible for
application code and data storage.
„ Dual power supply:
‹ CPU operating voltage: 1.8 V ± 5 %.
‹ I/O operating voltage: 2.7 V to 3.6 V; inputs tolerant up to 5.5 V.
„ 100-pin LQFP package.
„ −40 °C to +85 °C ambient operating temperature range.
D
FT
FT
A
A
R
R
D
D
D
R
A
A
2 of 81
R
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
D
Preliminary data sheet
FT
LPC2921_2923_2925_0
D
D
R
R
R
R
R
D
D
D
D
R
R
R
A
FT
R
F
D
FT
FT
A
A
R
R
D
D
D
R
SOT407-1
LPC2925FBD100 LQFP100
plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm
SOT407-1
3.1 Ordering options
Table 2.
Part options
Type number
Flash
SRAM (incl. USB
UART
memory ETB SRAM) device RS485
LIN 2.0/
UART
CAN
Package
LPC2921FBD100
128 kB
24 kB
yes
2
2
2
LQFP100
LPC2923FBD100
256 kB
24 kB
yes
2
2
2
LQFP100
LPC2925FBD100
512 kB
40 kB
yes
2
2
2
LQFP100
LPC2921_2923_2925_0
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
3 of 81
A
SOT407-1
plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm
R
plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm
LPC2923FBD100 LQFP100
D
LPC2921FBD100 LQFP100
FT
Version
A
Description
Preliminary data sheet
A
FT
FT
A
A
R
R
D
D
D
Package
Name
D
R
FT
FT
A
A
R
R
D
D
D
Type number
FT
FT
FT
FT
Ordering information
A
A
A
A
R
R
D
D
D
3. Ordering information
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 1.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
4. Block diagram
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
D
D
JTAG
interface
R
A
FT
D
R
A
TEST/DEBUG
INTERFACE
LPC2921/2923/2925
ITCM
16 kB
8 kB SRAM
DTCM
16 kB
ARM968E-S
1 master
2 slaves
master
master
VECTORED
INTERRUPT
CONTROLLER
CLOCK
GENERATION
UNIT
RESET
GENERATION
UNIT
slave
AHB TO DTL
BRIDGE
PWM0/1/2/3
slave
GPDMA REGISTERS
master
slave
AHB TO DTL
BRIDGE
USB DEVICE
CONTROLLER
slave
slave
power. clock, and
reset subsystem
EMBEDDED SRAM 16 kB
slave
EMBEDDED SRAM 16 kB
(LPC2925 only)
POWER
MANAGEMENT
UNIT
TIMER0/1 MTMR
GPDMA CONTROLLER
slave
AHB TO APB
BRIDGE
AHB
MULTILAYER
MATRIX
slave
EMBEDDED FLASH
512/256/128 kB
16 kB
EEPROM
slave
AHB TO APB
BRIDGE
MSC subsystem
general subsystem
SYSTEM CONTROL
EVENT ROUTER
3.3 V ADC1/2
CHIP FEATURE ID
slave
QUADRATURE
ENCODER
AHB TO APB
BRIDGE
peripheral subsystem
CAN0/1
AHB TO APB
BRIDGE
slave
GENERAL PURPOSE I/O
PORTS 0/1/5
TIMER 0/1/2/3
SPI0/1/2
GLOBAL
ACCEPTANCE
FILTER
networking subsystem
RS485 UART0/1
WDT
I2C0/1
002aae224
Grey-shaded blocks represent peripherals and memory regions accessible by the GPDMA.
Fig 1.
LPC2921/2923/2925 block diagram
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
4 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
F
D
FT
FT
A
A
R
R
D
5.1 Pinning
A
FT
FT
A
A
R
R
D
D
D
5. Pinning information
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
D
76
FT
100
A
R
A
1
75
LPC2921FBD100
LPC2923FBD100
LPC2925FBD100
Fig 2.
50
51
26
25
002aae242
Pin configuration for SOT407-1 (LQFP100)
5.2 Pin description
5.2.1 General description
The LPC2921/2923/2925 uses three ports: port 1 with 32 pins, port 1 with 28 pins, and
port 5 with 2 pins. Ports 4/3/2 are not used. The pin to which each function is assigned is
controlled by the SFSP registers in the SCU. The functions combined on each port pin are
shown in the pin description tables in this section.
5.2.2 LQFP100 pin assignment
Table 3.
LQFP100 pin assignment
Pin name
Pin
Description
TDO
1[1]
IEEE 1149.1 test data out
P0[24]/TXD1/
TXDC1/SCS2[0]
2[1]
GPIO 0, pin 24
P0[25]/RXD1/
RXDC1/SDO2
3[1]
GPIO 0, pin 25
P0[26]/TXD1/SDI2
4[1]
GPIO 0, pin 26
P0[27]/RXD1/SCK2
5[1]
GPIO 0, pin 27
-
UART1 RXD
SPI2 SCK
P0[28]/CAP0[0]/
MAT0[0]
6[1]
GPIO 0, pin 28
-
TIMER0 CAP0
TIMER0 MAT0
P0[29]/CAP0[1]/
MAT0[1]
7[1]
GPIO 0, pin 29
-
TIMER0 CAP1
TIMER0 MAT1
VDD(IO)
8
3.3 V power supply for I/O
P0[30]/CAP0[2]/
MAT0[2]
9[1]
GPIO 0, pin 30
-
TIMER0 CAP2
TIMER0 MAT2
P0[31]/CAP0[3]/
MAT0[3]
10[1]
GPIO 0, pin 31
-
TIMER0 CAP3
TIMER0 MAT3
VSS(IO)
11
ground for I/O
Function 0 (default)
Function 1
Function 2
Function 3
UART1 TXD
CAN1 TXD
SPI2 SCS0
UART1 RXD
CAN1 RXD
SPI2 SDO
UART1 TXD
SPI2 SDI
-
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
5 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
D
Function 2
Function 3
P5[19]/USB_D+
GPIO 5, pin 19
USB_D+
-
-
P5[18]/USB_D−
13[2]
GPIO 5, pin 18
USB_D−
-
-
VDD(IO)
14
3.3 V power supply for I/O
VDD(CORE)
15
1.8 V power supply for digital core
VSS(CORE)
16
ground for core
VSS(IO)
17
ground for I/O
P1[27]/CAP1[2]/
TRAP2/PMAT3[3]
18[1]
GPIO 1, pin 27
TIMER1 CAP2,
ADC2 EXT START
PWM TRAP2
PWM3 MAT3
P1[26]/PMAT2[0]/
TRAP3/PMAT3[2]
19[1]
GPIO 1, pin 26
PWM2 MAT0
PWM TRAP3
PWM3 MAT2
VDD(IO)
20
3.3 V power supply for I/O
P1[25]/PMAT1[0]/
USB_VBUS/
PMAT3[1]
21[1]
GPIO 1, pin 25
PWM1 MAT0
USB_VBUS
PWM3 MAT1
P1[24]/PMAT0[0]/
USB_CONNECT/
PMAT3[0]
22[1]
GPIO 1, pin 24
PWM0 MAT0
USB_CONNECT
PWM3 MAT0
P1[23]/RXD0
23[1]
GPIO 1, pin 23
UART0 RXD
-
-
P1[22]/TXD0/
USB_UP_LED
24[1]
GPIO 1, pin 22
UART0 TXD
USB_UP_LED
-
TMS
25[1]
IEEE 1149.1 test mode select, pulled up internally
TCK
26[1]
IEEE 1149.1 test clock
P1[21]/CAP3[3]/
CAP1[3]
27[1]
GPIO 1, pin 21
TIMER3 CAP3
TIMER1 CAP3,
MSCSS PAUSE
-
P1[20]/CAP3[2]/
SCS0[1]
28[1]
GPIO 1, pin 20
TIMER3 CAP2
SPI0 SCS1
-
P1[19]/CAP3[1]/
SCS0[2]
29[1]
GPIO 1, pin 19
TIMER3 CAP1
SPI0 SCS2
-
P1[18]/CAP3[0]/
SDO0
30[1]
GPIO 1, pin 18
TIMER3 CAP0
SPI0 SDO
-
P1[17]/CAP2[3]/
SDI0
31[1]
GPIO 1, pin 17
TIMER2 CAP3
SPI0 SDI
-
VSS(IO)
32
ground for I/O
P1[16]/CAP2[2]/
SCK0
33[1]
GPIO 1, pin 16
TIMER2 CAP2
SPI0 SCK
-
P1[15]/CAP2[1]/
SCS0[0]
34[1]
GPIO 1, pin 15
TIMER2 CAP1
SPI0 SCS0
-
P1[14]/CAP2[0]/
SCS0[3]
35[1]
GPIO 1, pin 14
TIMER2 CAP0
SPI0 SCS3
-
P1[13]/EI3/SCL1
36[1]
GPIO 1, pin 13
EXTINT3
I2C1 SCL
-
P1[12]/EI2/SDA1
37[1]
GPIO 1, pin 12
EXTINT2
I2C1 SDA
-
VDD(IO)
38
3.3 V power supply for I/O
P1[11]/SCK1/SCL0
39[1]
GPIO 1, pin 11
I2C0 SCL
-
D
FT
FT
A
A
R
R
D
D
D
R
A
FT
D
R
A
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
F
FT
FT
Function 1
A
A
A
R
R
R
Function 0 (default)
12[2]
Preliminary data sheet
R
A
D
D
Pin
LPC2921_2923_2925_0
D
R
FT
FT
A
A
R
R
D
D
D
Pin name
SPI1 SCK
FT
FT
FT
FT
Description
A
A
A
A
R
R
D
D
D
LQFP100 pin assignment …continued
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 3.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
6 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
P1[8]/SCS1[0]/
TXDL1/CS0
P1[7]/SCS1[3]/RXD1
D
I2C0 SDA
-
SPI1 SDO
-
-
GPIO 1, pin 8
SPI1 SCS0
-
-
46[1]
GPIO 1, pin 7
SPI1 SCS3
UART1 RXD
-
P1[6]/SCS1[2]/TXD1
47[1]
GPIO 1, pin 6
SPI1 SCS2
UART1 TXD
-
P1[5]/SCS1[1]/
PMAT3[5]
48[1]
GPIO 1, pin 5
SPI1 SCS1
PWM3 MAT5
-
P1[4]/SCS2[2]/
PMAT3[4]
49[1]
GPIO 1, pin 4
SPI2 SCS2
PWM3 MAT4
-
TRST_N
50[1]
IEEE 1149.1 test reset NOT; active LOW; pulled up internally
RST_N
51[1]
asynchronous device reset; active LOW; pulled up internally
VSS(OSC_PLL)
52
ground for oscillator
XOUT_OSC
53[3]
crystal out for oscillator
XIN_OSC
54[3]
crystal in for oscillator
VDD(OSC_PLL)
55
1.8 V supply for oscillator and PLL
VSS(OSC_PLL)
56
ground for PLL
VDD(IO)
57
3.3 V power supply for I/O
P1[3]/SCS2[1]/
PMAT3[3]
58[1]
GPIO 1, pin 3
SPI2 SCS1
PWM3 MAT3
-
P1[2]/SCS2[3]/
PMAT3[2]
59[1]
GPIO 1, pin 2
SPI2 SCS3
PWM3 MAT2
-
P1[1]/EI1/PMAT3[1]
60[1]
GPIO 1, pin 1
EXTINT1
PWM3 MAT1
-
VSS(CORE)
61
ground for digital core
VDD(CORE)
62
1.8 V power supply for digital core
P1[0]/EI0/PMAT3[0]
63[1]
GPIO 1, pin 0
EXTINT0
PWM3 MAT0
-
P0[0]/PHB0/
TXDC0/D24
64[1]
GPIO 0, pin 0
QEI0 PHB
CAN0 TXD
-
VSS(IO)
65
ground for I/O
P0[1]/PHA0/RXDC0
66[1]
GPIO 0, pin 1
QEI0 PHA
CAN0 RXD
-
P0[2]/CLK_OUT/
PMAT0[0]
67[1]
GPIO 0, pin 2
CLK_OUT
PWM0 MAT0
-
P0[3]/USB_UP_LED/ 68[1]
PMAT0[1]
GPIO 0, pin 3
USB_UP_LED
PWM0 MAT1
-
P0[4]/PMAT0[2]
69[1]
GPIO 0, pin 4
-
PWM0 MAT2
-
P0[5]/PMAT0[3]
70[1]
GPIO 0, pin 5
-
PWM0 MAT3
-
VDD(IO)
71
3.3 V power supply for I/O
P0[6]/PMAT0[4]
72[1]
GPIO 0, pin 6
-
PWM0 MAT4
-
P0[7]/PMAT0[5]
73[1]
GPIO 0, pin 7
-
PWM0 MAT5
-
R
SPI1 SDI
R
D
GPIO 1, pin 10
A
FT
D
D
ground for I/O
45[1]
Function 3
F
44
A
VSS(IO)
Function 2
FT
GPIO 1, pin 9
R
43[1]
Function 1
A
P1[9]/SDO1
FT
1.8 V power supply for digital core
FT
ground for digital core
42
D
A
A
41
VDD(CORE)
R
FT
R
R
VSS(CORE)
Function 0 (default)
R
A
FT
D
R
A
LPC2921_2923_2925_0
Preliminary data sheet
A
D
D
P1[10]/SDI1/SDA0
40[1]
D
R
FT
FT
A
A
R
R
D
D
D
Description
FT
FT
FT
FT
Pin
A
A
A
A
R
R
D
D
D
LQFP100 pin assignment …continued
Pin name
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 3.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
7 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
R
F
FT
FT
D
FT
FT
A
A
R
R
D
Function 3
3.3 V power supply for ADC
JTAGSEL
75[1]
TAP controller select input; LOW-level selects the ARM debug mode; HIGH-level selects
boundary scan and flash programming; pulled up internally.
N.C.
76
not connected
VREFP
77[3]
HIGH reference for ADC
VREFN
78[3]
LOW reference for ADC
P0[8]/IN1[0]
79[4]
GPIO 0, pin 8
ADC1 IN0
-
-
P0[9]/IN1[1]
80[4]
GPIO 0, pin 9
ADC1 IN1
-
-
P0[10]/IN1[2]/
PMAT1[0]
81[4]
GPIO 0, pin 10
ADC1 IN2
PWM1 MAT0
-
P0[11]/IN1[3]/
PMAT1[1]
82[4]
GPIO 0, pin 11
ADC1 IN3
PWM1 MAT1
-
VSS(IO)
83
ground for I/O
P0[12]/IN1[4]/
PMAT1[2]
84[4]
GPIO 0, pin 12
ADC1 IN4
PWM1 MAT2
-
P0[13]/IN1[5]/
PMAT1[3]
85[4]
GPIO 0, pin 13
ADC1 IN5
PWM1 MAT3
-
P0[14]/IN1[6]/
PMAT1[4]
86[4]
GPIO 0, pin 14
ADC1 IN6
PWM1 MAT4
-
P0[15]/IN1[7]/
PMAT1[5]
87[4]
GPIO 0, pin 15
ADC1 IN7
PWM1 MAT5
-
P0[16]IN2[0]/TXD0
88[4]
GPIO 0, pin 16
ADC2 IN0
UART0 TXD
-
P0[17]/IN2[1]/
RXD0/A23
89[4]
GPIO 0, pin 17
ADC2 IN1
UART0 RXD
-
VDD(CORE)
90
1.8 V power supply for digital core
VSS(CORE)
91
ground for digital core
VDD(IO)
92
3.3 V power supply for I/O
P0[18]/IN2[2]/
PMAT2[0]
93[4]
GPIO 0, pin 18
ADC2 IN2
PWM2 MAT0
-
P0[19]/IN2[3]/
PMAT2[1]
94[4]
GPIO 0, pin 19
ADC2 IN3
PWM2 MAT1
-
P0[20]/IN2[4]/
PMAT2[2]
95[4]
GPIO 0, pin 20
ADC2 IN4
PWM2 MAT2
-
P0[21]/IN2[5]/
PMAT2[3]
96[4]
GPIO 0, pin 21
ADC2 IN5
PWM2 MAT3
-
P0[22]/IN2[6]/
PMAT2[4]/A18
97[4]
GPIO 0, pin 22
ADC2 IN6
PWM2 MAT4
-
VSS(IO)
98
ground for I/O
D
74
D
VDDA(ADC3V3)
R
A
FT
D
R
A
LPC2921_2923_2925_0
Preliminary data sheet
A
A
A
Function 2
D
R
R
Function 1
R
A
D
D
Function 0 (default)
D
R
FT
FT
A
A
R
R
D
D
D
Description
FT
FT
FT
FT
Pin
A
A
A
A
R
R
D
D
D
LQFP100 pin assignment …continued
Pin name
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 3.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
8 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
Pin
Function 0 (default)
Function 1
Function 2
Function 3
P0[23]/IN2[7]/
PMAT2[5]/A19
99[4]
GPIO 0, pin 23
ADC2 IN7
PWM2 MAT5
-
TDI
100[1]
IEEE 1149.1 data in, pulled up internally
F
FT
FT
Pin name
A
A
A
R
R
D
D
D
Description
A
A
A
A
R
R
D
D
D
LQFP100 pin assignment …continued
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 3.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
D
D
R
A
FT
D
R
Bidirectional Pad; Analog Port; Plain Input; 3state Output; Slew Rate Control; 5V Tolerant; TTL with Hysteresis; Programmable Pull Up /
Pull Down / Repeater.
[2]
USB pad, <tbd>.
[3]
Analog Pad; Analog Input Output.
[4]
Analog I/O pad, <tbd>.
6. Functional description
6.1 Architectural overview
The LPC2921/2923/2925 consists of:
• An ARM968E-S processor with real-time emulation support
• An AMBA multilayer Advanced High-performance Bus (AHB) for interfacing to the
on-chip memory controllers
• Two DTL buses (an universal NXP interface) for interfacing to the interrupt controller
and the Power, Clock and Reset Control cluster (also called subsystem).
• Three ARM Peripheral Buses (APB - a compatible super set of ARM's AMBA
advanced peripheral bus) for connection to on-chip peripherals clustered in
subsystems.
• One ARM Peripheral Bus for event router and system control.
The LPC2921/2923/2925 configures the ARM968E-S processor in little-endian byte order.
All peripherals run at their own clock frequency to optimize the total system power
consumption. The AHB2APB bridge used in the subsystems contains a write-ahead buffer
one transaction deep. This implies that when the ARM968E-S issues a buffered write
action to a register located on the APB side of the bridge, it continues even though the
actual write may not yet have taken place. Completion of a second write to the same
subsystem will not be executed until the first write is finished.
6.2 ARM968E-S processor
The ARM968E-S is a general purpose 32-bit RISC processor, 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). This simplicity results in a high instruction throughput
and impressive real-time interrupt response from a small and cost-effective controller
core.
Amongst the most compelling features of the ARM968E-S are:
• Separate directly connected instruction and data Tightly Coupled Memory (TCM)
interfaces
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
9 of 81
A
[1]
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
• Write buffers for the AHB and TCM buses
• Enhanced 16 × 32 multiplier capable of single-cycle MAC operations and 16-bit fixed-
D
D
FT
FT
A
A
R
R
point DSP instructions to accelerate signal-processing algorithms and applications.
D
D
Pipeline techniques are employed so that all parts of the processing and memory systems
can operate continuously. The ARM968E-S is based on the ARMv5TE five-stage pipeline
architecture. Typically, in a three-stage pipeline architecture, while one instruction is being
executed its successor is being decoded and a third instruction is being fetched from
memory. In the five-stage pipeline additional stages are added for memory access and
write-back cycles.
R
A
THUMB code can provide up to 65 % of the code size of ARM, and 160 % of the
performance of an equivalent ARM controller connected to a 16-bit memory system.
The ARM968E-S processor is described in detail in the ARM968E-S data sheet Ref. 2.
6.3 On-chip flash memory system
The LPC2921/2923/2925 includes a 128 kB, 256 kB, or 512 kB flash memory system.
This memory can be used for both code and data storage. Programming of the flash
memory can be accomplished via the flash memory controller or the JTAG.
The flash controller also supports a 16 kB, byte-accessible on-chip EEPROM integrated
on the LPC2921/2923/2925.
6.4 On-chip static RAM
In addition to the two 16 kB TCMs, the LPC2921/2923/2925 includes up two static RAM
memories of 16 kB each for a total of 32 kB (LPC2925 only) or 1 block of 16 kB
(LPC2921/2923). Both may be used for code and/or data storage.
The 8 kB SRAM block for the ETB can be used as static memory for code and data
storage as well. However, DMA access to this memory region is not supported.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
10 of 81
A
The THUMB set's 16-bit instruction length allows it to approach twice the density of
standard ARM code while retaining most of the ARM's performance advantage over a
traditional 16-bit controller using 16-bit registers. This is possible because THUMB code
operates on the same 32-bit register set as ARM code.
R
• Standard 32-bit ARMv5TE set
• 16-bit THUMB set
D
The key idea behind THUMB is that of a super-reduced instruction set. Essentially, the
ARM968E-S processor has two instruction sets:
FT
The ARM968E-S processor also employs a unique architectural strategy known as
THUMB, which makes it ideally suited to high-volume applications with memory
restrictions or to applications where code density is an issue.
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx
4 GB
0xFFFF FFFF
0xFFFF F000
0xFFFF C000
VIC
reserved
0xFFFF B000
CGU1
0xFFFF A000
PMU
0xFFFF 9000
0xFFFF 8000
LPC2921/2923/2925
PCR/VIC control
reserved
PCR/VIC
subsystem
DMA interface to TCM
reserved
RGU
CGU0
0xE00E 0000
Rev. 00.01 — 24 October 2008
PWM0
0xE008 6000
USB controller
0xE008 4000
0xE010 0000
I2C1
0xE008 3000
0xE00E 0000
I2C0
0xE008 2000
CAN1
0xE008 1000
CAN0
0xE008 0000
0xE00C 0000
reserved
peripherals #6
MSCSS
subsystem
0xE00A 0000
peripheral subsystem #4
0xE00C 3000
ADC1
peripheral subsystem #2
0xE00C 2000
reserved
reserved
0xE00C 0000
0xE008 7000
reserved
reserved
0xE00C 1000
0xE008 8000
CAN AF regs
MSCSS timer1
peripheral subsystem #0
MSCSS timer0
0xE006 0000
0xE006 0000
GPIO5
0xE005 0000
0xE004 F000
0xE004 0000
reserved
0xE004 C000
GPIO1
0xE004 B000
GPIO0
0xE004 A000
SPI2
0xE004 9000
SPI1
0xE004 8000
SPI0
0xE004 7000
0x8000 4000
UART1
0xE004 6000
0x8000 0000
UART0
0xE004 5000
0xE002 0000
0xE000 0000
reserved
0x2008 0000
remappable to
shadow area
reserved
flash controller
reserved
16 kB AHB SRAM (LPC2925 only)
flash
memory
2 GB
16 kB AHB SRAM
0x8000 8000
peripherals #2
peripheral
subsystem
0x2004 0000
512 kB on-chip flash
TIMER3
0xE004 4000
0x2002 0000
256 kB on-chip flash
TIMER2
0xE004 3000
0x2000 0000
128 kB on-chip flash
TIMER1
0xE004 2000
TIMER0
0xE004 1000
WDT
0xE004 0000
reserved
0x2000 0000
no physical memory
0x0080 0000
16 kB DTCM
ITCM/DTCM
memory
reserved
0xE000 1000
0xE000 0000
FT
SCU
CFID
002aae232
D
A
A
R
FT
D
LPC2921/2923/2925 memory map
R
FT
Fig 3.
FT
0x0000 0000
R
0 GB
0xE000 2000
0xE000 2000
D
16 kB ITCM
event router
A
0x2000 0000
512 MB shadow area
ITCM/DTCM
reserved
R
reserved
0xE002 0000
peripherals #0
general
subsystem
D
on-chip flash
0x0000 4000
0x0000 0000
0x2020 4000
FT
0x0040 0000
reserved
0x4000 0000
FT
R
FT
D
A
11 of 81
© NXP B.V. 2008. All rights reserved.
0x0040 4000
1 GB
LPC2921/2923/2925
reserved
D
A
R
F
D
A
A
R
FT
D
D
D
D
D
D
R
R
R
R
R
A
A
A
A
A
FT
FT
FT
FT
FT
D
D
D
D
R
R
R
R
A
A
A
A
F
F
F
F
T
T
T
T
ARM9 microcontroller
with
CAN
and
LIN
D
D
D
D
R
R
R
R
A
A
A
0xE008 0000
0x8000 C000
0x2020 4000
0x2020 0000
peripherals #4
networking
subsystem
0xE014 0000
ADC2
0xE00C 4000
0xE008 9000
CAN common regs
0xE018 3000
DMA controller
0xE00C 8000
0xE00C 5000
LIN0
CAN ID LUT
peripheral subsystem #6
0xE00C 6000
0xE008 A000
0xF000 0000
0xE018 0000
PWM3
PWM1
LIN1
8 kB ETB SRAM
0xE00C 9000
0xE00C 7000
0xE008 B000
0xF080 0000
0xE018 2000
reserved
PWM2
0xE00A 0000
reserved
ETB control
reserved
quadrature encoder
0xE00C A000
0xFFFF FFFF
0xFFFF 8000
NXP Semiconductors
LPC2921_2923_2925_0
Preliminary data sheet
6.5 Memory map
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
6.6.1 Reset and power-up behavior
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
6.6 Reset, debug, test, and power description
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
The LPC2921/2923/2925 contains external reset input and internal power-up reset
circuits. This ensures that a reset is extended internally until the oscillators and flash have
reached a stable state. See Section 8 for trip levels of the internal power-up reset circuit1.
See Section 9 for characteristics of the several start-up and initialization times. Table 4
shows the reset pin.
R
A
Description
RST_N
IN
external reset input, active LOW; pulled up internally
At activation of the RST_N pin the JTAGSEL pin is sensed as logic LOW. If this is the case
the LPC2921/2923/2925 is assumed to be connected to debug hardware, and internal
circuits re-program the source for the BASE_SYS_CLK to be the crystal oscillator instead
of the Low-Power Ring Oscillator (LP_OSC). This is required because the clock rate when
running at LP_OSC speed is too low for the external debugging environment.
6.6.2 Reset strategy
The LPC2921/2923/2925 contains a central module, the Reset Generator Unit (RGU) in
the Power, Clock and Reset Subsystem (PCRSS), which controls all internal reset signals
towards the peripheral modules. The RGU provides individual reset control as well as the
monitoring functions needed for tracing a reset back to source.
6.6.3 IEEE 1149.1 interface pins (JTAG boundary-scan test)
The LPC2921/2923/2925 contains boundary-scan test logic according to IEEE 1149.1,
also referred to in this document as Joint Test Action Group (JTAG). The boundary-scan
test pins can be used to connect a debugger probe for the embedded ARM processor. Pin
JTAGSEL selects between boundary-scan mode and debug mode. Table 5 shows the
boundary- scan test pins.
Table 5.
1.
IEEE 1149.1 boundary-scan test and debug interface
Symbol
Description
JTAGSEL
TAP controller select input. LOW level selects ARM debug mode and HIGH level
selects boundary scan and flash programming; pulled up internally
TRST_N
test reset input; pulled up internally (active LOW)
TMS
test mode select input; pulled up internally
TDI
test data input, pulled up internally
TDO
test data output
TCK
test clock input
Only for 1.8 V power sources
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
12 of 81
A
Direction
R
Symbol
D
Reset pin
FT
Table 4.
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
FT
FT
A
A
R
R
D
D
The ETM provides real-time trace capability for deeply embedded processor cores. It
outputs information about processor execution to a trace buffer. A software debugger
allows configuration of the ETM using a JTAG interface and displays the trace information
that has been captured in a format that a user can easily understand. The ETB stores
trace data produced by the ETM.
F
FT
FT
A
A
R
R
D
D
D
ETM/ETB
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
6.6.3.1
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
FT
D
R
•
•
•
•
•
A
The ETM/ETB module has the following features:
Closely tracks the instructions that the ARM core is executing.
On-chip trace data storage (ETB).
All registers are programmed through JTAG interface.
Does not consume power when trace is not being used.
THUMB/Java instruction set support.
6.6.4 Power supply pins
Table 6 shows the power supply pins.
Table 6.
Power supply pins
Symbol
Description
VDD(CORE)
digital core supply 1.8 V
VSS(CORE)
digital core ground (digital core, ADC1/2)
VDD(IO)
I/O pins supply 3.3 V
VSS(IO)
I/O pins ground
VDD(OSC_PLL)
oscillator and PLL supply
VSS(OSC_PLL)
oscillator and PLL ground
VDDA(ADC3V3)
ADC1 and ADC2 3.3 V supply
6.7 Clocking strategy
6.7.1 Clock architecture
The LPC2921/2923/2925 contains several different internal clock areas. Peripherals like
Timers, SPI, UART, CAN and LIN have their own individual clock sources called base
clocks. All base clocks are generated by the Clock Generator Unit (CGU0). They may be
unrelated in frequency and phase and can have different clock sources within the CGU.
The system clock for the CPU and AHB Bus infrastructure has its own base clock. This
means most peripherals are clocked independently from the system clock. See Figure 4
for an overview of the clock areas within the device.
Within each clock area there may be multiple branch clocks, which offers very flexible
control for power-management purposes. All branch clocks are outputs of the Power
Management Unit (PMU) and can be controlled independently. Branch clocks derived
from the same base clock are synchronous in frequency and phase. See Section 6.15 for
more details of clock and power control within the device.
Two of the base clocks generated by the CGU0 are used as input into a second,
dedicated CGU (CGU1). The CGU1 uses its own PLL and fractional dividers to generate
the base clock for the USB controller and one base clock for an independent clock output.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
13 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
BA SE_ICLK0_CLK
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
FT
BASE_USB_CLK
D
D
BASE_ICLK1_CLK
FT
A
A
R
R
D
BASE_SYS_CLK
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
R
A
USB
FT
CPU
D
R
A
AHB MULTILAYER MATRIX
BASE_OUT_CLK
CLOCK
OUT
AHB TO APB BRIDGES
CGU1
VIC
BASE_IVNSS_CLK
networking subsystem
GPDMA
branch
clocks
FLASH/SRAM
CAN0/1
USB REGISTERS
branch
clocks
general subsytem
GLOBAL
ACCEPTANCE
FILTER
LIN0/1
SYSTEM CONTROL
EVENT ROUTER
CFID
I2C0/1
BASE_PCR_CLK
peripheral subsystem
power control subsystem
branch
clock
GPIO0/1/5
BASE_TMR_CLK
RESET/CLOCK
GENERATION &
POWER
MANAGEMENT
BASE_MSCSS_CLK
TIMER 0/1/2/3
BASE_SPI_CLK
modulation and sampling
control subsystem
SPI0/1/2
BASE_UART_CLK
TIMER0/1 MTMR
UART0/1
BASE_SAFE_CLK
WDT
branch
clocks
PWM0/1/2/3
QEI
BASE_ADC_CLK
ADC1/2
branch
clocks
CGU0
002aae238
Fig 4.
LPC2921/2923/2925 overview of clock areas
6.7.2 Base clock and branch clock relationship
Table 7 contains an overview of all the base blocks in the LPC2921/2923/2925 and their
derived branch clocks. A short description is given of the hardware parts that are clocked
with the individual branch clocks. In relevant cases more detailed information can be
found in the specific subsystem description. Some branch clocks have special protection
since they clock vital system parts of the device and should not be switched off. See
Section 6.15.5 for more details of how to control the individual branch clocks.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
14 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
CLK_SYS_PCRSS
AHB side of bridge in PCRSS
CLK_SYS_FMC
Flash-Memory Controller
CLK_SYS_RAM0
Embedded SRAM Controller 0
(16 kB)
CLK_SYS_RAM1
Embedded SRAM Controller 1
(16 kB) (LPC2925 only)
CLK_SYS_GESS
General Subsystem
CLK_SYS_VIC
Vectored Interrupt Controller
CLK_SYS_PESS
Peripheral Subsystem
CLK_SYS_GPIO0
GPIO bank 0
CLK_SYS_GPIO1
GPIO bank 1
CLK_SYS_GPIO5
GPIO bank 5
CLK_SYS_IVNSS_A
AHB side of bridge of IVNSS
CLK_SYS_MSCSS_A
AHB side of bridge of MSCSS
CLK_SYS_DMA
GPDMA
CLK_SYS_USB
USB registers
BASE_PCR_CLK
CLK_PCR_SLOW
PCRSS, CGU, RGU and PMU
logic clock
BASE_IVNSS_CLK
CLK_IVNSS_APB
APB side of the IVNSS
CLK_IVNSS_CANCA
CAN controller Acceptance
Filter
CLK_IVNSS_CANC0
CAN channel 0
CLK_IVNSS_CANC1
CAN channel 1
CLK_IVNSS_I2C0
I2C0
CLK_IVNSS_I2C1
I2C1
CLK_IVNSS_LIN0
LIN channel 0
CLK_IVNSS_LIN1
LIN channel 1
CLK_MSCSS_APB
APB side of the MSCSS
CLK_MSCSS_MTMR0
Timer 0 in the MSCSS
CLK_MSCSS_MTMR1
Timer 1 in the MSCSS
CLK_MSCSS_PWM0
PWM 0
CLK_MSCSS_PWM1
PWM 1
CLK_MSCSS_PWM2
PWM 2
CLK_MSCSS_PWM3
PWM 3
D
D
AHB bus infrastructure
F
CLK_SYS_SYS
A
ARM968E-S and TCMs
FT
CLK_SYS_CPU
[1]
A
BASE_SYS_CLK
R
watchdog timer
D
CLK_SAFE
FT
BASE_SAFE_CLK
Remark
A
Parts of the device clocked
by this branch clock
R
Branch clock name
D
Base clock
R
FT
FT
A
A
R
R
D
D
D
Base clock and branch clock overview
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 7.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
R
A
FT
D
R
A
BASE_MSCSS_CLK
[2] [4]
[1], [3]
CLK_MSCSS_ADC1_APB APB side of ADC 1
CLK_MSCSS_ADC2_APB APB side of ADC 2
CLK_MSCSS_QEI
LPC2921_2923_2925_0
Preliminary data sheet
Quadrature encoder
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
15 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
D
A
FT
Timer 3 clock for counter part
CLK_ADC1
Control of ADC 1, capture
sample result
CLK_ADC2
Control of ADC 2, capture
sample result
reserved
-
-
BASE_ICLK1_CLK
-
clock for CGU1 input
D
CLK_TMR3
D
R
A
[1]
This clock is always on (cannot be switched off for system safety reasons)
[2]
In the peripheral subsystem parts of the Timers, watchdog timer, SPI and UART have their own clock
source. See Section 6.12 for details.
[3]
In the Power Clock and Reset Control subsystem parts of the CGU, RGU, and PMU have their own clock
source. See Section 6.15 for details.
[4]
The clock should remain activated when system wake-up on timer or UART is required.
CGU1 base clock and branch clock overview
Base clock
Branch clock name
Parts of the device clocked
by this branch clock
BASE_OUT_CLK
CLK_OUT_CLK
clock out pin
BASE_USB_CLK
CLK_USB_CLK
USB clock
Remark
6.8 Flash memory controller
The flash memory has a 128-bit wide data interface and the flash controller offers two
128-bit buffer lines to improve system performance. The flash has to be programmed
initially via JTAG. In-system programming must be supported by the bootloader. Flash
memory contents can be protected by disabling JTAG access. Suspension of burning or
erasing is not supported.
The Flash Memory Controller (FMC) interfaces to the embedded flash memory for two
tasks:
• Memory data transfer
• Memory configuration via triggering, programming, and erasing
The key features are:
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
F
Timer 2 clock for counter part
A
CLK_TMR2
FT
Timer 1 clock for counter part
FT
CLK_TMR1
A
Timer 0 clock for counter part
A
SPI 2 interface clock
CLK_TMR0
R
CLK_SPI2
R
SPI 1 interface clock
D
CLK_SPI1
D
SPI 0 interface clock
FT
CLK_SPI0
FT
BASE_SPI_CLK
A
clock for CGU1 input
R
UART 1 interface clock
-
D
CLK_UART1
BASE_ICLK0_CLK
Remark
FT
UART 0 interface clock
A
A
CLK_UART0
R
R
R
BASE_UART_CLK
D
D
D
Parts of the device clocked
by this branch clock
Table 8.
R
R
FT
FT
A
A
R
R
D
D
D
Branch clock name
BASE_ADC_CLK
FT
FT
FT
FT
Base clock
BASE_TMR_CLK
A
A
A
A
R
R
D
D
D
Base clock and branch clock overview …continued
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 7.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
16 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
JTAG access protection
FT
FT
FT
FT
Programming by external programmer via JTAG
A
A
A
A
R
R
D
D
D
Programming by CPU via AHB
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
D
Burn-finished and erase-finished interrupt
D
R
•
•
•
•
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
A
FT
D
6.8.1 Functional description
R
A
After reset flash initialization is started. During this initialization, flash access is not
possible and AHB transfers to flash are stalled, blocking the AHB bus.
During flash initialization, the index sector is read to identify the status of the JTAG access
protection and sector security. If JTAG access protection is active, the flash is not
accessible via JTAG. In this case, ARM debug facilities are disabled and flash-memory
contents cannot be read. If sector security is active, only the unsecured sections can be
read.
Flash can be read synchronously or asynchronously to the system clock. In synchronous
operation, the flash goes into standby after returning the read data. Started reads cannot
be stopped, and speculative reading and dual buffering are therefore not supported.
With asynchronous reading, transfer of the address to the flash and of read data from the
flash is done asynchronously, giving the fastest possible response time. Started reads can
be stopped, so speculative reading and dual buffering are supported.
Buffering is offered because the flash has a 128-bit wide data interface while the AHB
interface has only 32 bits. With buffering a buffer line holds the complete 128-bit flash
word, from which four words can be read. Without buffering every AHB data port read
starts a flash read. A flash read is a slow process compared to the minimum AHB cycle
time, so with buffering the average read time is reduced improving system performance.
With single buffering, the most recently read flash word remains available until the next
flash read. When an AHB data-port read transfer requires data from the same flash word
as the previous read transfer, no new flash read is done and the read data is given without
wait cycles.
When an AHB data port read transfer requires data from a different flash word to that
involved in the previous read transfer, a new flash read is done and wait states are given
until the new read data is available.
With dual buffering, a secondary buffer line is used, the output of the flash being
considered as the primary buffer. On a primary buffer, hit data can be copied to the
secondary buffer line, which allows the flash to start a speculative read of the next flash
word.
Both buffer lines are invalidated after:
•
•
•
•
Initialization
Configuration-register access
Data-latch reading
Index-sector reading
The modes of operation are listed in Table 9.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
17 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
F
D
R
R
D
default mode of operation; most recently read flash word is kept until
another flash word is required
FT
FT
A
A
for single (non-linear) reads; one flash-word read per word read
Single buffer line
D
D
R
A
FT
D
Asynchronous timing
R
one flash-word read per word read
Single buffer line
most recently read flash word is kept until another flash word is
required
Dual buffer line, single
speculative
on a buffer miss a flash read is done, followed by at most one
speculative read; optimized for execution of code with small loops
(less than eight words) from flash
Dual buffer line, always
speculative
most recently used flash word is copied into second buffer line; next
flash-word read is started; highest performance for linear reads
A
No buffer line
6.8.2 Flash layout
The ARM processor can program the flash for ISP (In-System Programming) through the
flash memory controller. Note that the flash always has to be programmed by ‘flash words’
of 128 bits (four 32-bit AHB bus words, hence 16 bytes).
The flash memory is organized into eight ‘small’ sectors of 8 kB each and up to 11 ‘large’
sectors of 64 kB each. The number of large sectors depends on the device type. A sector
must be erased before data can be written to it. The flash memory also has sector-wise
protection. Writing occurs per page which consists of 4096 bits (32 flash words). A small
sector contains 16 pages; a large sector contains 128 pages.
Table 10 gives an overview of the flash-sector base addresses.
Flash sector overview
Flash memory Sector size (kB)
sector number
Flash memory
address
LPC2921
LPC2923 LPC2925
11
8
2000 0000h
yes
yes
yes
12
8
2000 2000h
yes
yes
yes
13
8
2000 4000h
yes
yes
yes
14
8
2000 6000h
yes
yes
yes
15
8
2000 8000h
yes
yes
yes
16
8
2000 A000h
yes
yes
yes
17
8
2000 C000h
yes
yes
yes
18
8
2000 E000h
yes
yes
yes
0
64
2001 0000h
yes
yes
yes
1
64
2002 0000h
no
yes
yes
2
64
2003 0000h
no
yes
yes
3
64
2004 0000h
no
no
yes
4
64
2005 0000h
no
no
yes
5
64
2006 0000h
no
no
yes
6
64
2007 0000h
no
no
yes
LPC2921_2923_2925_0
Preliminary data sheet
A
FT
FT
A
A
R
R
D
D
D
No buffer line
Table 10.
FT
FT
FT
FT
Synchronous timing
A
A
A
A
R
R
D
D
D
Flash read modes
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 9.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
18 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
The index sector is a special sector in which the JTAG access protection and sector
security are located. The address space becomes visible by setting the FS_ISS bit and
overlaps the regular flash sector’s address space.
D
FT
FT
A
A
R
R
D
D
D
Note that the index sector, once programmed, cannot be erased. Any flash operation must
be executed out of SRAM (internal or external).
R
A
D
R
A
To eliminate the delay associated with synchronizing flash-read data, a predefined
number of wait-states must be programmed. These depend on flash-memory response
time and system clock period. The minimum wait-states value can be calculated with the
following formulas:
Synchronous reading:
t acc ( clk )
WST > ------------------ – 1
tt
(1)
tclk ( sys )
Asynchronous reading:
t acc ( addr )
WST > ---------------------- – 1
t tclk ( sys )
(2)
Remark: If the programmed number of wait-states is more than three, flash-data reading
cannot be performed at full speed (i.e. with zero wait-states at the AHB bus) if speculative
reading is active.
6.8.4 Pin description
The flash memory controller has no external pins. However, the flash can be programmed
via the JTAG pins, see Section 6.6.3.
6.8.5 Clock description
The flash memory controller is clocked by CLK_SYS_FMC, see Section 6.7.2.
6.8.6 EEPROM
EEPROM is a non-volatile memory mostly used for storing relatively small amounts of
data, for example for storing settings. It contains one 16 kB memory block and is
byte-programmable and byte-erasable.
The EEPROM can be accessed only through the flash controller.
6.9 General Purpose DMA (GPDMA) controller
The GPDMA controller allows peripheral-to memory, memory-to-peripheral,
peripheral-to-peripheral, and memory-to-memory transactions. Each DMA stream
provides unidirectional serial DMA transfers for a single source and destination. For
example, a bidirectional port requires one stream for transmit and one for receives. The
source and destination areas can each be either a memory region or a peripheral, and
can be accessed through the same AHB master or one area by each master.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
FT
6.8.3 Flash bridge wait-states
19 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
The GPDMA controls eight DMA channels with hardware prioritization. The DMA
controller interfaces to the system via two AHB bus masters, each with a full 32-bit data
bus width. DMA operations may be set up for 8-bit, 16-bit, and 32-bit data widths, and can
be either big-endian or little-endian. Incrementing or non-incrementing addressing for
source and destination are supported, as well as programmable DMA burst size. Scatter
or gather DMA is supported through the use of linked lists. This means that the source
and destination areas do not have to occupy contiguous areas of memory.
D
FT
FT
A
A
R
R
D
D
D
R
A
FT
D
R
A
6.9.1 DMA support for peripherals
The GPDMA supports the following peripherals: SPI0/1/2, UART0/1, and the
I2C0/1-interfaces. The GPDMA can access both embedded SRAM blocks, both TCMs,
external static memory, and flash memory.
6.9.2 Clock description
The DMA controller is clocked by CLK_SYS_DMA derived from BASE_SYS_CLK, see
Section 6.7.2.
6.10 USB interface
The Universal Serial Bus (USB) is a 4-wire bus that supports communication between a
host and one or more (up to 127) peripherals. The bus supports hot plugging and dynamic
configuration of the devices. All transactions are initiated by the Host controller.
The LPC2921/2923/2925 USB interface includes a device controller with on-chip PHY for
device. Details on typical USB interfacing solutions can be found in Section 10.2.
6.10.1 USB device controller
The device controller enables 12 Mbit/s data exchange with a USB Host controller. It
consists of a register interface, serial interface engine, endpoint buffer memory, and a
DMA controller. The serial interface engine decodes the USB data stream and writes data
to the appropriate endpoint buffer. The status of a completed USB transfer or error
condition is indicated via status registers. An interrupt is also generated if enabled. When
enabled, the DMA controller transfers data between the endpoint buffer and the on-chip
SRAM.
The USB device controller has the following features:
•
•
•
•
•
Fully compliant with USB 2.0 specification (full speed).
Supports 32 physical (16 logical) endpoints with a 2 kB endpoint buffer RAM.
Supports Control, Bulk, Interrupt and Isochronous endpoints.
Scalable realization of endpoints at run time.
Endpoint Maximum packet size selection (up to USB maximum specification) by
software at run time.
• Supports SoftConnect and GoodLink features.
• While USB is in the Suspend mode, the LPC2921/2923/2925 can enter the reduced
power mode and wake up on USB activity.
• Supports DMA transfers with the on-chip SRAM blocks on all non-control endpoints.
• Allows dynamic switching between CPU-controlled slave and DMA modes.
• Double buffer implementation for Bulk and Isochronous endpoints.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
20 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
A
R
R
D
USB device port pins
A
A
A
A
R
R
D
D
D
6.10.2 Pin description
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 11.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
Direction
Description
USB_VBUS
I
USB_VBUS status input. When this function is not enabled
via its corresponding PINSEL register, it is driven HIGH
internally.
USB_D+
I/O
Positive differential data
USB_D−
I/O
Negative differential data
USB_CONNECT
O
SoftConnect control signal
USB_UP_LED
O
GoodLink LED control signal
FT
FT
A
Pin name
D
D
R
A
FT
D
R
A
6.10.3 Clock description
Access to the USB registers is clocked by the CLK_SYS_USB, derived from
BASE_SYS_CLK, see Section 6.7.2. The CGU1 provides an independent base clock to
the USB block, BASE_USB_CLK (see Section 6.15.3).
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
21 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
D
D
The general subsystem is clocked by CLK_SYS_GESS, see Section 6.7.2.
FT
A
A
R
R
D
6.11.1 General subsystem clock description
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
6.11 General subsystem
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
R
A
FT
6.11.2 Chip and feature identification
D
R
A
The Chip/Feature ID (CFID) module contains registers which show and control the
functionality of the chip. It contains an ID to identify the silicon and also registers
containing information about the features enabled or disabled on the chip.
The key features are:
• Identification of product
• Identification of features enabled
The CFID has no external pins.
6.11.3 System Control Unit (SCU)
The system control unit contains system-related functions.The key feature is configuration
of the I/O port-pins multiplexer. It defines the function of each I/O pin of the
LPC2921/2923/2925. The I/O pin configuration should be consistent with peripheral
function usage.
The SCU has no external pins.
6.11.4 Event router
The event router provides bus-controlled routing of input events to the vectored interrupt
controller for use as interrupt or wake-up signals.
Key features:
• Up to 16 level-sensitive external interrupt pins, including the receive pins of SPI, CAN,
LIN, and UART, as well as the I2C-bus SCL pins plus three internal event sources.
• Input events can be used as interrupt source either directly or latched
(edge-detected).
•
•
•
•
•
Direct events disappear when the event becomes inactive.
Latched events remain active until they are explicitly cleared.
Programmable input level and edge polarity.
Event detection maskable.
Event detection is fully asynchronous, so no clock is required.
The event router allows the event source to be defined, its polarity and activation type to
be selected and the interrupt to be masked or enabled. The event router can be used to
start a clock on an external event.
The vectored interrupt-controller inputs are active HIGH.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
22 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
FT
FT
A
A
R
R
D
D
The event router module in the LPC2921/2923/2925 is connected to the pins listed below.
The pins are combined with other functions on the port pins of the LPC2921/2923/2925.
Table 12 shows the pins connected to the event router.
F
FT
FT
A
A
R
R
D
D
D
Pin description
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
6.11.4.1
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
Event-router pin connections
FT
Table 12.
Default polarity
EXTINT 0 - 3
I
external interrupt input 0 - 3
1
CAN0 RXD
I
CAN0 receive data input wake-up
0
CAN1 RXD
I
CAN1 receive data input wake-up
0
I2C0_SCL
I
I2C0 SCL clock input
0
I2C1_SCL
I
I2C1 SCL clock input
0
USB_D+
I
USB D+ data input
<tbd>
LIN0 RXD
I
LIN0 receive data input wake-up
0
LIN1 RXD
I
LIN1 receive data input wake-up
0
SPI0 SDI
I
SPI0 receive data input
0
SPI1 SDI
I
SPI1 receive data input
0
SPI2 SDI
I
SPI2 receive data input
0
UART0 RXD
I
UART0 receive data input
0
UART1 RXD
I
UART1 receive data input
0
-
na
CAN interrupt (internal)
1
-
na
VIC FIQ (internal)
1
-
na
VIC IRQ (internal)
1
A
Description
6.12 Peripheral subsystem
6.12.1 Peripheral subsystem clock description
The peripheral subsystem is clocked by a number of different clocks:
•
•
•
•
•
CLK_SYS_PESS
CLK_UART0/1
CLK_SPI0/1/2
CLK_TMR0/1/2/3
CLK_SAFE see Section 6.7.2
6.12.2 Watchdog timer
The purpose of the watchdog timer is to reset the ARM9 processor within a reasonable
amount of time if the processor enters an error state. The watchdog generates a system
reset if the user program fails to trigger it correctly within a predetermined amount of time.
Key features:
• Internal chip reset if not periodically triggered
• Timer counter register runs on always-on safe clock
• Optional interrupt generation on watchdog time-out
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
R
Direction
D
Symbol
23 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
• Debug mode with disabling of reset
• Watchdog control register change-protected with key
• Programmable 32-bit watchdog timer period with programmable 32-bit prescaler.
D
FT
FT
A
A
R
R
D
D
D
Functional description
R
A
6.12.2.1
FT
D
The watchdog timer consists of a 32-bit counter with a 32-bit prescaler.
R
A
The watchdog should be programmed with a time-out value and then periodically
restarted. When the watchdog times out, it generates a reset through the RGU.
To generate watchdog interrupts in watchdog debug mode the interrupt has to be enabled
via the interrupt enable register. A watchdog-overflow interrupt can be cleared by writing
to the clear-interrupt register.
Another way to prevent resets during debug mode is via the Pause feature of the
watchdog timer. The watchdog is stalled when the ARM9 is in debug mode and the
PAUSE_ENABLE bit in the watchdog timer control register is set.
The Watchdog Reset output is fed to the Reset Generator Unit (RGU). The RGU contains
a reset source register to identify the reset source when the device has gone through a
reset. See Section 6.15.4.
6.12.2.2
Clock description
The watchdog timer is clocked by two different clocks; CLK_SYS_PESS and CLK_SAFE,
see Section 6.7.2. The register interface towards the system bus is clocked by
CLK_SYS_PESS. The timer and prescale counters are clocked by CLK_SAFE which is
always on.
6.12.3 Timer
The LPC2921/2923/2925 contains six identical timers: four in the peripheral subsystem
and two in the Modulation and Sampling Control SubSystem (MSCSS) located at different
peripheral base addresses. This section describes the four timers in the peripheral
subsystem. Each timer has four capture inputs and/or match outputs. Connection to
device pins depends on the configuration programmed into the port function-select
registers. The two timers located in the MSCSS have no external capture or match pins,
but the memory map is identical, see Section 6.14.6. One of these timers has an external
input for a pause function.
The key features are:
• 32-bit timer/counter with programmable 32-bit prescaler
• Up to four 32-bit capture channels per timer. These take a snapshot of the timer value
when an external signal connected to the TIMERx CAPn input changes state. A
capture event may also optionally generate an interrupt
• Four 32-bit match registers per timer that allow:
– Continuous operation with optional interrupt generation on match
– Stop timer on match with optional interrupt generation
– Reset timer on match with optional interrupt generation
• Up to four external outputs per timer corresponding to match registers, with the
following capabilities:
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
24 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
– Toggle on match
FT
FT
FT
FT
– Set HIGH on match
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
– Set LOW on match
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
– Do nothing on match
R
A
FT
• Pause input pin (MSCSS timers only)
D
Pin description
The four timers in the peripheral subsystem of the LPC2921/2923/2925 have the pins
described below. The two timers in the modulation and sampling subsystem have no
external pins except for the pause pin on MSCSS timer 1. See Section 6.14.6 for a
description of these timers and their associated pins. The timer pins are combined with
other functions on the port pins of the LPC2921/2923/2925, see Section 6.11.3. Table
Table 13 shows the timer pins (x runs from 0 to 3).
Table 13.
Pin name
Direction
Description
TIMERx CAP[0]
CAPx[0]
IN
TIMER x capture input 0
TIMERx CAP[1]
CAPx[1]
IN
TIMER x capture input 1
TIMERx CAP[2]
CAPx[2]
IN
TIMER x capture input 2
TIMERx CAP[3]
CAPx[3]
IN
TIMER x capture input 3
TIMERx MAT[0]
MATx[0]
OUT
TIMER x match output 0
TIMERx MAT[1]
MATx[1]
OUT
TIMER x match output 1
TIMERx MAT[2]
MATx[2]
OUT
TIMER x match output 2
TIMERx MAT[3]
MATx[3]
OUT
TIMER x match output 3
[1]
6.12.3.2
Timer pins
Symbol
Note that CAP0 and CAP1 are not pinned out on Timer1.
Clock description
The timer modules are clocked by two different clocks; CLK_SYS_PESS and CLK_TMRx
(x = 0-3), see Section 6.7.2. Note that each timer has its own CLK_TMRx branch clock for
power management. The frequency of all these clocks is identical as they are derived
from the same base clock BASE_CLK_TMR. The register interface towards the system
bus is clocked by CLK_SYS_PESS. The timer and prescale counters are clocked by
CLK_TMRx.
6.12.4 UARTs
The LPC2921/2923/2925 contains two identical UARTs located at different peripheral
base addresses. The key features are:
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
25 of 81
A
6.12.3.1
R
The timers are designed to count cycles of the clock and optionally generate interrupts or
perform other actions at specified timer values, based on four match registers. They also
include capture inputs to trap the timer value when an input signal changes state,
optionally generating an interrupt. The core function of the timers consists of a 32 bit
prescale counter triggering the 32 bit timer counter. Both counters run on clock
CLK_TMRx (x runs from 0 to 3) and all time references are related to the period of this
clock. Note that each timer has its individual clock source within the Peripheral
SubSystem. In the Modulation and Sampling SubSystem each timer also has its own
individual clock source. See section Section 6.15.5 for information on generation of these
clocks.
D
D
R
R
R
R
R
D
D
D
D
R
R
D
A
FT
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
D
D
Built-in baud rate generator.
R
R
FT
FT
A
A
R
R
D
D
D
Receiver FIFO trigger points at 1 byte, 4 bytes, 8 bytes and 14 bytes.
FT
FT
FT
FT
Register locations conform to 550 industry standard.
A
A
A
A
R
R
D
D
D
16-byte receive and transmit FIFOs.
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
R
A
D
R
Support for RS-485/9-bit mode allows both software address detection and automatic
address detection using 9-bit mode.
FT
•
•
•
•
•
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
A
The UART is commonly used to implement a serial interface such as RS232. The
LPC2921/2923/2925 contains two industry-standard 550 UARTs with 16-byte transmit and
receive FIFOs, but they can also be put into 450 mode without FIFOs.
Remark: The LIN controller can be configured to provide two additional standard UART
interfaces (see Section 6.13.2).
6.12.4.1
Pin description
The UART pins are combined with other functions on the port pins of the
LPC2921/2923/2925. Table 14 shows the UART pins (x runs from 0 to 1).
Table 14.
6.12.4.2
UART pins
Symbol
Pin name
Direction
Description
UARTx TXD
TXDx
OUT
UART channel x transmit data output
UARTx RXD
RXDx
IN
UART channel x receive data input
Clock description
The UART modules are clocked by two different clocks; CLK_SYS_PESS and
CLK_UARTx (x = 0-1), see Section 6.7.2. Note that each UART has its own CLK_UARTx
branch clock for power management. The frequency of all CLK_UARTx clocks is identical
since they are derived from the same base clock BASE_CLK_UART. The register
interface towards the system bus is clocked by CLK_SYS_PESS. The baud generator is
clocked by the CLK_UARTx.
6.12.5 Serial peripheral interface (SPI)
The LPC2921/2923/2925 contains three Serial Peripheral Interface modules (SPIs) to
allow synchronous serial communication with slave or master peripherals.
The key features are:
•
•
•
•
Master or slave operation
Each SPI supports up to four slaves in sequential multi-slave operation
Supports timer-triggered operation
Programmable clock bit rate and prescale based on SPI source clock
(BASE_SPI_CLK), independent of system clock
• Separate transmit and receive FIFO memory buffers; 16 bits wide, 32 locations deep
• Programmable choice of interface operation: Motorola SPI or Texas Instruments
Synchronous Serial Interfaces
• Programmable data-frame size from 4 to 16 bits
• Independent masking of transmit FIFO, receive FIFO and receive overrun interrupts
• Serial clock-rate master mode: fserial_clk ≤ fCLK(SPI)/2
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
26 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
• Serial clock-rate slave mode: fserial_clk = fCLK(SPI)/4
• Internal loopback test mode
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
The SPI module can operate in:
D
D
R
A
• Master mode:
FT
D
– Normal transmission mode
R
A
– Sequential slave mode
• Slave mode
6.12.5.1
Functional description
The SPI module is a master or slave interface for synchronous serial communication with
peripheral devices that have either Motorola SPI or Texas Instruments Synchronous
Serial Interfaces.
The SPI module performs serial-to-parallel conversion on data received from a peripheral
device. The transmit and receive paths are buffered with FIFO memories (16 bits wide ×
32 words deep). Serial data is transmitted on SPI_TXD and received on SPI_RXD.
The SPI module includes a programmable bit-rate clock divider and prescaler to generate
the SPI serial clock from the input clock CLK_SPIx.
The SPI module’s operating mode, frame format, and word size are programmed through
the SLVn_SETTINGS registers.
A single combined interrupt request SPI_INTREQ output is asserted if any of the
interrupts are asserted and unmasked.
Depending on the operating mode selected, the SPI_CS_OUT outputs operate as an
active-HIGH frame synchronization output for Texas Instruments synchronous serial
frame format or an active-LOW chip select for SPI.
Each data frame is between four and 16 bits long, depending on the size of words
programmed, and is transmitted starting with the MSB.
6.12.5.2
Pin description
The SPI pins are combined with other functions on the port pins of the
LPC2921/2923/2925, see Section 6.11.3. Table 15 shows the SPI pins (x runs from 0 to 2;
y runs from 0 to 3).
Table 15.
SPI pins
Symbol
Pin name
Direction
Description
SPIx SCSy
SCSx[y]
IN/OUT
SPIx chip select[1][2]
SPIx SCK
SCKx
IN/OUT
SPIx clock[1]
SPIx SDI
SDIx
IN
SPIx data input
SPIx SDO
SDOx
OUT
SPIx data output
[1]
Direction of SPIx SCS and SPIx SCK pins depends on master or slave mode. These pins are output in
master mode, input in slave mode.
[2]
In slave mode there is only one chip select input pin, SPIx SCS0. The other chip selects have no function in
slave mode.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
27 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
FT
FT
A
A
R
R
D
D
The SPI modules are clocked by two different clocks; CLK_SYS_PESS and CLK_SPIx
(x = 0, 1, 2), see Section 6.7.2. Note that each SPI has its own CLK_SPIx branch clock for
power management. The frequency of all clocks CLK_SPIx is identical as they are derived
from the same base clock BASE_CLK_SPI. The register interface towards the system bus
is clocked by CLK_SYS_PESS. The serial-clock rate divisor is clocked by CLK_SPIx.
F
FT
FT
A
A
R
R
D
D
D
Clock description
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
6.12.5.3
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
FT
D
The LPC2921/2923/2925 contains two general-purpose I/O ports located at different
peripheral base addresses. All I/O pins are bidirectional, and the direction can be
programmed individually. The I/O pad behavior depends on the configuration
programmed in the port function-select registers.
The key features are:
•
•
•
•
6.12.6.1
General-purpose parallel inputs and outputs
Direction control of individual bits
Synchronized input sampling for stable input-data values
All I/O defaults to input at reset to avoid any possible bus conflicts
Functional description
The general-purpose I/O provides individual control over each bidirectional port pin. There
are two registers to control I/O direction and output level. The inputs are synchronized to
achieve stable read-levels.
To generate an open-drain output, set the bit in the output register to the desired value.
Use the direction register to control the signal. When set to output, the output driver
actively drives the value on the output: when set to input the signal floats and can be
pulled up internally or externally.
6.12.6.2
Pin description
The five GPIO ports in the LPC2921/2923/2925 have the pins listed below. The GPIO pins
are combined with other functions on the port pins of the LPC2921/2923/2925. Table 16
shows the GPIO pins.
Table 16.
GPIO pins
Symbol
Pin name
Direction
Description
GPIO0 pin[31:0]
P0[31:0]
IN/OUT
GPIO port x pins 31 to 0
GPIO1 pin[27:0]
P1[27:0]
IN/OUT
GPIO port x pins 27 to 0
GPIO5 pin[19:18]
P5[19:18]
IN/OUT
GPIO port x pins 19 and 18
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
28 of 81
A
6.12.6 General-purpose I/O
R
The SPI clock frequency can be controlled by the CGU. In master mode the SPI clock
frequency (CLK_SPIx) must be set to at least twice the SPI serial clock rate on the
interface. In slave mode CLK_SPIx must be set to four times the SPI serial clock rate on
the interface.
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
D
FT
FT
A
A
R
R
D
The GPIO modules are clocked by several clocks, all of which are derived from
BASE_SYS_CLK; CLK_SYS_PESS and CLK_SYS_GPIOx (x = 0, 1, 5), see
Section 6.7.2. Note that each GPIO has its own CLK__SYS_GPIOx branch clock for
power management. The frequency of all clocks CLK_SYS_GPIOx is identical to
CLK_SYS_PESS since they are derived from the same base clock BASE_SYS_CLK.
FT
A
A
R
R
D
D
D
Clock description
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
6.12.6.3
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
FT
D
R
A
6.13 Networking subsystem
6.13.1 CAN gateway
Controller Area Network (CAN) is the definition of a high-performance communication
protocol for serial data communication. The two CAN controllers in the
LPC2921/2923/2925 provide a full implementation of the CAN protocol according to the
CAN specification version 2.0B. The gateway concept is fully scalable with the number of
CAN controllers, and always operates together with a separate powerful and flexible
hardware acceptance filter.
The key features are:
•
•
•
•
•
•
•
•
6.13.1.1
Supports 11-bit as well as 29-bit identifiers
Double receive buffer and triple transmit buffer
Programmable error-warning limit and error counters with read/write access
Arbitration-lost capture and error-code capture with detailed bit position
Single-shot transmission (i.e. no re-transmission)
Listen-only mode (no acknowledge; no active error flags)
Reception of ‘own’ messages (self-reception request)
Full CAN mode for message reception
Global acceptance filter
The global acceptance filter provides look-up of received identifiers - called acceptance
filtering in CAN terminology - for all the CAN controllers. It includes a CAN ID look-up table
memory, in which software maintains one to five sections of identifiers. The CAN ID
look-up table memory is 2 kB large (512 words, each of 32 bits). It can contain up to 1024
standard frame identifiers or 512 extended frame identifiers or a mixture of both types. It is
also possible to define identifier groups for standard and extended message formats.
6.13.1.2
Pin description
The two CAN controllers in the LPC2921/2923/2925 have the pins listed below. The CAN
pins are combined with other functions on the port pins of the LPC2921/2923/2925.
Table 17 shows the CAN pins (x runs from 0 to 1).
Table 17.
CAN pins
Symbol
Pin name
Direction
Description
CANx TXD
TXDC0/1
OUT
CAN channel x transmit data output
CANx RXD
RXDC0/1
IN
CAN channel x receive data input
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
29 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
FT
FT
A
A
R
R
D
D
The LPC2921/2923/2925 contain two LIN 2.0 master controllers. These can be used as
dedicated LIN 2.0 master controllers with additional support for sync break generation and
with hardware implementation of the LIN protocol according to spec 2.0.
F
FT
FT
A
A
R
R
D
D
D
6.13.2 LIN
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
FT
The key features are:
D
Complete LIN 2.0 message handling and transfer
A
6.13.2.1
R
•
•
•
•
•
•
•
•
•
•
One interrupt per LIN message
Slave response time-out detection
Programmable sync-break length
Automatic sync-field and sync-break generation
Programmable inter-byte space
Hardware or software parity generation
Automatic checksum generation
Fault confinement
Fractional baud rate generator
Pin description
The two LIN 2.0 master controllers in the LPC2921/2923/2925 have the pins listed below.
The LIN pins are combined with other functions on the port pins of the
LPC2921/2923/2925. Table 18 shows the LIN pins. For more information see Ref. 1
subsection 3.43, LIN master controller.
Table 18.
LIN controller pins
Symbol
Pin name
Direction
Description
LIN0/1 TXD
TXDL0/1
OUT
LIN channel 0/1 transmit data output
LIN0/1 RXD
RXDL0/1
IN
LIN channel 0/1 receive data input
Remark: Both LIN channels can be also configured as UART channels.
6.13.3 I2C-bus serial I/O controllers
The LPC2921/2923/2925 each contain two I2C-bus controllers.
The I2C-bus is bidirectional for inter-IC control using only two wires: a serial clock line
(SCL) and a serial data line (SDA). Each device is recognized by a unique address and
can operate as either a receiver-only device (e.g., an LCD driver) or as a transmitter with
the capability to both receive and send information (such as memory). Transmitters and/or
receivers can operate in either master or slave mode, depending on whether the chip has
to initiate a data transfer or is only addressed. The I2C is a multi-master bus, and it can be
controlled by more than one bus master connected to it.
The main features if the I2C-bus interfaces are:
• I2C0 and I2C1 use standard I/O pins with bit rates of up to 400 kbit/s (Fast I2C-bus)
and do not support powering off of individual devices connected to the same bus
lines.
• Easy to configure as master, slave, or master/slave.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
30 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
R
FT
FT
A
A
R
D
D
R
A
R
A
resume serial transfer.
• The I2C-bus can be used for test and diagnostic purposes.
• All I2C-bus controllers support multiple address recognition and a bus monitor mode.
Pin description
I2C-bus pins[1]
Symbol
Pin name
Direction
Description
I2C SCL0/1
SCL0/1
I/O
I2C clock input/output
I2C SDA0/1
SDA0/1
I/O
I2C data input/output
Note that the pins are not I2C-bus compliant open-drain pins.
6.14 Modulation and sampling control subsystem
The Modulation and Sampling Control Subsystem (MSCSS) in the LPC2921/2923/2925
includes four Pulse-Width Modulators (PWMs), two 10-bit successive approximation
Analog-to-Digital Converters (ADCs) and two timers.
The key features of the MSCSS are:
• Two 10-bit, 400 ksamples/s, 8-channel ADCs with 3.3 V inputs and various triggerstart options.
• Four 6-channel PWMs (Pulse-Width Modulators) with capture and trap functionality.
• Two dedicated timers to schedule and synchronize the PWMs and ADCs.
• Quadrature encoder interface.
6.14.1 Functional description
The MSCSS contains Pulse-Width Modulators (PWMs), Analog-to-Digital Converters
(ADCs) and timers.
Figure 5 provides an overview of the MSCSS. An AHB-to-APB bus bridge takes care of
communication with the AHB system bus. Two internal timers are dedicated to this
subsystem. MSCSS timer 0 can be used to generate start pulses for the ADCs and the
first PWM. The second timer (MSCSS timer 1) is used to generate ‘carrier’ signals for the
PWMs. These carrier patterns can be used, for example, in applications requiring current
control. Several other trigger possibilities are provided for the ADCs (external, cascaded
or following a PWM). The capture inputs of both timers can also be used to capture the
start pulse of the ADCs.
LPC2921_2923_2925_0
Preliminary data sheet
D
• Serial clock synchronization can be used as a handshake mechanism to suspend and
Table 19.
FT
one serial bus.
[1]
F
D
D
Arbitration between simultaneously transmitting masters without corruption of serial
data on the bus.
• Serial clock synchronization allows devices with different bit rates to communicate via
6.13.3.1
A
FT
FT
A
A
R
R
D
D
D
Multi-master bus (no central master).
FT
FT
FT
FT
Bidirectional data transfer between masters and slaves.
A
A
A
A
R
R
D
D
D
Programmable clocks allow versatile rate control.
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
•
•
•
•
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
31 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
The PWMs can be used to generate waveforms in which the frequency, duty cycle and
rising and falling edges can be controlled very precisely. Capture inputs are provided to
measure event phases compared to the main counter. Depending on the applications,
these inputs can be connected to digital sensor motor outputs or digital external signals.
Interrupt signals are generated on several events to closely interact with the CPU.
D
FT
FT
A
A
R
R
D
D
D
R
A
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
32 of 81
A
Preliminary data sheet
R
LPC2921_2923_2925_0
D
Note that the PWMs run on the PWM clock and the ADCs on the ADC clock, see
Section 6.15.2.
FT
The ADCs can be used for any application needing accurate digitized data from analog
sources. To support applications like motor control, a mechanism to synchronize several
PWMs and ADCs is available (sync_in and sync_out).
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
AHB-TO-APB BRIDGE
D
D
R
A
FT
D
MSCSS
R
A
PHA0
PHB0
QEI
capture
start
ADC1 IN[7:0]
ADC1
MSCSS
TIMER0
ADC2 EXT START
start
ADC2 IN[7:0]
ADC2
start
PWM0 MAT[5:0]
PWM0
capture
carrier
synch
carrier
MSCSS
TIMER1
PWM1 MAT[5:0]
PWM1
PAUSE
carrier
synch
PWM2 MAT[5:0]
PWM2
carrier
synch
PWM3
PWM3 MAT[5:0]
PWM0 CAP[2:0]
PWM1 CAP[2:0]
PWM2 TRAP
PWM2 CAP[2:0]
PWM3 TRAP
PWM3 CAP[2:0]
002aae248
Fig 5.
Modulation and Sampling Control Sub System (MSCSS) block diagram
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
33 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
FT
FT
A
A
R
R
D
D
The pins of the LPC2921/2923/2925 MSCSS associated with the two ADC modules are
described in Section 6.14.4.2. Pins connected to the four PWM modules are described in
Section 6.14.5.4, pins directly connected to the MSCSS timer 1 module are described in
Section 6.14.6.1, and pins connected to the quadrature encoder interface are described in
Section 6.14.7.1.
F
FT
FT
A
A
R
R
D
D
D
6.14.2 Pin description
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
FT
D
R
6.14.3 Clock description
The MSCSS is clocked from a number of different sources:
•
•
•
•
CLK_SYS_MSCSS_A clocks the AHB side of the AHB-to-APB bus bridge
CLK_MSCSS_APB clocks the subsystem APB bus
CLK_MSCSS_MTMR0/1 clocks the timers
CLK_MSCSS_PWM0..3 clocks the PWMs.
Each ADC has two clock areas; a APB part clocked by CLK_MSCSS_ADCx_APB (x = 1
or 2) and a control part for the analog section clocked by CLK_ADCx = 1 or 2), see
Section 6.7.2.
All clocks are derived from the BASE_MSCSS_CLK, except for CLK_SYS_MSCSS_A
which is derived form BASE_SYS_CLK, and the CLK_ADCx clocks which are derived
from BASE_CLK_ADC. If specific PWM or ADC modules are not used their corresponding
clocks can be switched off.
6.14.4 Analog-to-digital converter
The MSCSS in the LPC2921/2923/2925 includes two 10-bit successive-approximation
analog-to-digital converters.
The key features of the ADC interface module are:
• ADC1 and ADC2: Eight analog inputs; time-multiplexed; measurement range up to
3.3 V.
• External reference-level inputs.
• 400 ksamples per second at 10-bit resolution up to 1500 ksamples per second at 2-bit
resolution.
• Programmable resolution from 2-bit to 10-bit.
• Single analog-to-digital conversion scan mode and continuous analog-to-digital
conversion scan mode.
• Optional conversion on transition on external start input, timer capture/match signal,
PWM_sync or ‘previous’ ADC.
• Converted digital values are stored in a register for each channel.
• Optional compare condition to generate a ‘less than’ or an ‘equal to or greater than’
compare-value indication for each channel.
• Power-down mode.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
34 of 81
A
Remark: The IDX0 function for the QEI, the external start function for ADC1, and the
TRAP0/1 functions for the PWM0/1 are not pinned out on the LPC2921/2923/2925.
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
FT
FT
A
A
R
R
D
D
The ADC block diagram, Figure 6, shows the basic architecture of each ADC. The ADC
functionality is divided into two major parts; one part running on the MSCSS Subsystem
clock, the other on the ADC clock. This split into two clock domains affects the behavior
from a system-level perspective. The actual analog-to-digital conversions take place in the
ADC clock domain, but system control takes place in the system clock domain.
F
FT
FT
A
A
R
R
D
D
D
Functional description
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
6.14.4.1
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
FT
D
Each ADC has four start inputs. Note that start 0 and start 2 are captured in the system
clock domain while start 1 and start 3 are captured in the ADC domain. The start inputs
are connected at MSCSS level, see Section 6.14 for details.
ADC clock
(up to 4.5 MHz)
(BASE_ADC_CLK)
APB clock
(BASE_MSCSS_CLK)
SYSTEM DOMAIN
ADC DOMAIN
3.3 V
ADC1
update
APB system bus
ADC
REGISTERS
IRQ scan
conversion data
configuration data
IRQ compare
3.3 V
ADC2
ADC
start 2
ADC1 IN[7:0]
ANALOG
MUX
ADC2 IN[7:0]
3.3 V IN
IRQ
ADC
start 0
Fig 6.
ADC
CONTROL
ANALOG
MUX
3.3 V IN
ADC
start 1
ADC
start 3
sync_out
002aae251
ADC block diagram
6.14.4.2
Pin description
The two ADC modules in the MSCSS have the pins described below. The ADCx input
pins are combined with other functions on the port pins of the LPC2921/2923/2925. The
VREFN and VREFP pins are common for both ADCs. Table 20 shows the ADC pins.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
35 of 81
A
The ADC clock is limited to 4.5 MHz maximum frequency and should always be lower
than or equal to the system clock frequency. To meet this constraint or to select the
desired lower sampling frequency, the clock generation unit provides a programmable
fractional system-clock divider dedicated to the ADC clock. Conversion rate is determined
by the ADC clock frequency divided by the number of resolution bits plus one. Accessing
ADC registers requires an enabled ADC clock, which is controllable via the clock
generation unit, see Section 6.15.2.
R
A mechanism is provided to modify configuration of the ADC and control the moment at
which the updated configuration is transferred to the ADC domain.
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
Pin name
Direction
Description
ADC1/2 IN[7:0]
IN1/2[7:0]
IN
analog input for 3.3 V ADC1/2, channel 7 to
channel 0
ADC2_EXT_START CAP1[2]
IN
ADC external start-trigger input
VREFN
VREFN
IN
ADC LOW reference level
VREFP
VREFP
IN
ADC HIGH reference level
FT
FT
A
A
R
R
D
D
Symbol
F
FT
FT
A
A
R
R
D
D
D
Analog to digital converter pins
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 20.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
FT
D
R
A
Remark: Note that the ADC1 and ADC2 accept an input voltage up to of 3.6 V (see
Table 31) on the ADC1/2 IN pins. If the ADC is not used, the pins are 5 V tolerant.
6.14.4.3
Clock description
The ADC modules are clocked from two different sources; CLK_MSCSS_ADCx_APB and
CLK_ADCx (x = 1 or 2), see Section 6.7.2. Note that each ADC has its own CLK_ADCx
and CLK_MSCSS_ADCx_APB branch clocks for power management. If an ADC is
unused both its CLK_MSCSS_ADCx_APB and CLK_ADCx can be switched off.
The frequency of all the CLK_MSCSS_ADCx_APB clocks is identical to
CLK_MSCSS_APB since they are derived from the same base clock
BASE_MSCSS_CLK. Likewise the frequency of all the CLK_ADCx clocks is identical
since they are derived from the same base clock BASE_ADC_CLK.
The register interface towards the system bus is clocked by CLK_MSCSS_ADCx_APB.
Control logic for the analog section of the ADC is clocked by CLK_ADCx, see also
Figure 6.
6.14.5 Pulse Width Modulator (PWM)
The MSCSS in the LPC2921/2923/2925 includes four PWM modules with the following
features.
•
•
•
•
•
•
Six pulse-width modulated output signals
Double edge features (rising and falling edges programmed individually)
Optional interrupt generation on match (each edge)
Different operation modes: continuous or run-once
16-bit PWM counter and 16-bit prescale counter allow a large range of PWM periods
A protective mode (TRAP) holding the output in a software-controllable state and with
optional interrupt generation on a trap event
• Three capture registers and capture trigger pins with optional interrupt generation on
a capture event
• Interrupt generation on match event, capture event, PWM counter overflow or trap
event
• A burst mode mixing the external carrier signal with internally generated PWM
• Programmable sync-delay output to trigger other PWM modules (master/slave
behavior)
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
36 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
D
FT
FT
A
A
R
R
D
The ability to provide flexible waveforms allows PWM blocks to be used in multiple
applications; e.g. dimmer/lamp control and fan control. Pulse-width modulation is the
preferred method for regulating power since no additional heat is generated, and it is
energy-efficient when compared with linear-regulating voltage control networks.
FT
A
A
R
R
D
D
D
Functional description
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
6.14.5.1
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
controlled to have a certain pattern sequence. In this way the force/torque of the
motor can be adjusted as desired. This makes the PWM function as a motor drive.
sync_in
transfer_enable_in
APB DOMAIN
PWM DOMAIN
update
APB system bus
capture data
PWM
CONTROL
&
REGISTERS
IRQ pwm
IRQ capt_match
PWM counter value
config data
match outputs
PWM,
COUNTER,
PRESCALE
COUNTER
&
SHADOW
REGISTERS
IRQ's
capture inputs
trap input
carrier inputs
transfer_enable_out
sync_out
002aad837
Fig 7.
PWM block diagram
The PWM block diagram in Figure 7 shows the basic architecture of each PWM. PWM
functionality is split into two major parts, a APB domain and a PWM domain, both of which
run on clocks derived from the BASE_MSCSS_CLK. This split into two domains affects
behavior from a system-level perspective. The actual PWM and prescale counters are
located in the PWM domain but system control takes place in the APB domain.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
37 of 81
A
• Motor controller: The PWM provides multi-phase outputs, and these outputs can be
R
period allows the PWM to control the amount of power to be transferred to the load.
The PWM functions as a dimmer controller in this application
D
• Dimmer controller: The flexibility of providing waves of a desired duty cycle and cycle
FT
The PWM delivers the waveforms/pulses of the desired duty cycles and cycle periods. A
very basic application of these pulses can be in controlling the amount of power
transferred to a load. Since the duty cycle of the pulses can be controlled, the desired
amount of power can be transferred for a controlled duration. Two examples of such
applications are:
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
The actual PWM consists of two counters; a 16-bit prescale counter and a 16-bit PWM
counter. The position of the rising and falling edges of the PWM outputs can be
programmed individually. The prescale counter allows high system bus frequencies to be
scaled down to lower PWM periods. Registers are available to capture the PWM counter
values on external events.
D
FT
FT
A
A
R
R
D
D
D
R
A
6.14.5.3
Master and slave mode
A PWM module can provide synchronization signals to other modules (also called Master
mode). The signal sync_out is a pulse of one clock cycle generated when the internal
PWM counter (re)starts. The signal trans_enable_out is a pulse synchronous to sync_out,
generated if a transfer from system registers to PWM shadow registers occurred when the
PWM counter restarted. A delay may be inserted between the counter start and
generation of trans_enable_out and sync_out.
A PWM module can use input signals trans_enable_in and sync_in to synchronize its
internal PWM counter and the transfer of shadow registers (Slave mode).
6.14.5.4
Pin description
Each of the four PWM modules in the MSCSS has the following pins. These are combined
with other functions on the port pins of the LPC2921/2923/2925. Table 21 shows the
PWM0 to PWM3 pins (n = 0 to 3).
Table 21.
PWM pins
Symbol
Pin name
Direction
Description
PWMn CAP[0]
PCAPn[0]
IN
PWM n capture input 0
PWMn CAP[1]
PCAPn[1]
IN
PWM n capture input 1
PWMn CAP[2]
PCAPn[2]
IN
PWM n capture input 2
PWMn MAT[0]
PMATn[0]
OUT
PWM n match output 0
PWMn MAT[1]
PMATn[1]
OUT
PWM n match output 1
PWMn MAT[2]
PMATn[2]
OUT
PWM n match output 2
PWMn MAT[3]
PMATn[3]
OUT
PWM n match output 3
PWMn MAT[4]
PMATn[4]
OUT
PWM n match output 4
PWMn MAT[5]
PMATn[5]
OUT
PWM n match output 5
PWMn TRAP
TRAPn
IN
PWM n trap input (on the LPC2921/2923/2925
n = 2, 3)
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
38 of 81
A
A mechanism is included to synchronize the PWM period to other PWMs by providing a
sync input and a sync output with programmable delay. Several PWMs can be
synchronized using the trans_enable_in/trans_enable_out and sync_in/sync_out ports.
See Figure 5 for details of the connections of the PWM modules within the MSCSS in the
LPC2921/2923/2925. PWM 0 can be master over PWM 1; PWM 1 can be master over
PWM 2, etc.
R
Synchronizing the PWM counters
D
6.14.5.2
FT
Note that in the Modulation and Sampling SubSystem, each PWM has its individual clock
source CLK_MSCSS_PWMx (x runs from 0 to 3). Both the prescale and the timer
counters within each PWM run on this clock CLK_MSCSS_PWMx, and all time references
are related to the period of this clock. See Section 6.15 for information on generation of
these clocks.
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
D
FT
FT
A
A
R
R
D
The PWM modules are clocked by CLK_MSCSS_PWMx (x = 0 - 3), see Section 6.7.2.
Note that each PWM has its own CLK_MSCSS_PWMx branch clock for power
management. The frequency of all these clocks is identical to CLK_MSCSS_APB since
they are derived from the same base clock BASE_MSCSS_CLK.
F
FT
FT
A
A
R
R
D
D
D
Clock description
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
6.14.5.5
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
See section Section 6.12.3 for a functional description of the timers.
6.14.6.1
Pin description
MSCSS timer 0 has no external pins.
MSCSS timer 1 has a PAUSE pin available as external pin. The PAUSE pin is combined
with other functions on the port pins of the LPC2921/2923/2925. Table 22 shows the
MSCSS timer 1 external pin.
Table 22.
6.14.6.2
MSCSS timer 1 pin
Symbol
Direction
Description
MSCSS PAUSE
IN
pause pin for MSCSS timer 1
Clock description
The Timer modules in the MSCSS are clocked by CLK_MSCSS_MTMRx (x = 0 to 1), see
Section 6.7.2. Note that each timer has its own CLK_MSCSS_MTMRx branch clock for
power management. The frequency of all these clocks is identical to CLK_MSCSS_APB
since they are derived from the same base clock BASE_MSCSS_CLK.
Note that, unlike the timer modules in the Peripheral SubSystem, the actual timer counter
registers run at the same clock as the APB system interface CLK_MSCSS_APB. This
clock is independent of the AHB system clock.
If a timer module is not used its CLK_MSCSS_MTMRx branch clock can be switched off.
6.14.7 Quadrature Encoder Interface (QEI)
A quadrature encoder, also known as a 2-channel incremental encoder, converts angular
displacement into two pulse signals. By monitoring both the number of pulses and the
relative phase of the two signals, the user can track the position, direction of rotation, and
velocity. In addition, a third channel, or index signal, can be used to reset the position
counter. The quadrature encoder interface decodes the digital pulses from a quadrature
encoder wheel to integrate position over time and determine direction of rotation. In
addition, the QEI can capture the velocity of the encoder wheel.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
39 of 81
A
The two timers in the MSCSS are functionally identical to the timers in the peripheral
subsystem, see Section 6.12.3. The features of the timers in the MSCSS are the same as
the timers in the peripheral subsystem, but the capture inputs and match outputs are not
available on the device pins. These signals are instead connected to the ADC and PWM
modules as outlined in the description of the MSCSS, see Section 6.14.1.
R
6.14.6 Timers in the MSCSS
D
If a PWM module is not used its CLK_MSCSS_PWMx branch clock can be switched off.
FT
Also note that unlike the timer modules in the Peripheral SubSystem, the actual timer
counter registers of the PWM modules run at the same clock as the APB system interface
CLK_MSCSS_APB. This clock is independent of the AHB system clock.
D
D
R
R
R
R
R
D
D
D
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
R
FT
FT
A
A
R
D
D
R
A
FT
D
Velocity capture using built-in timer.
R
A
Velocity compare function with less than interrupt.
Uses 32-bit registers for position and velocity.
Three position compare registers with interrupts.
Index counter for revolution counting.
Index compare register with interrupts.
Can combine index and position interrupts to produce an interrupt for whole and
partial revolution displacement.
Pin description
QEI pins
Symbol
Pin name
Direction
Description
QEI0 PHA
PHA0
IN
Sensor signal. Corresponds to PHA in
quadrature mode and to direction in
clock/direction mode.
QEI0 PHB
PHB0
IN
Sensor signal. Corresponds to PHB in
quadrature mode and to clock signal in
clock/direction mode.
Remark: The index function for the QEI is not pinned out on the LPC2921/2923/2925.
Clock description
The QEI module is clocked by CLK_MSCSS_QEI, see Section 6.7.2. The frequency of
this clock is identical to CLK_MSCSS_APB since they are derived from the same base
clock BASE_MSCSS_CLK.
If the QEI is not used its CLK_MSCSS_QEI branch clock can be switched off.
6.15 Power, clock, and Reset control Sub System (PCRSS)
The Power, Clock, and Reset Control Subsystem (PCRSS) in the LPC2921/2923/2925
includes a Clock Generator Unit (CGU), a Reset Generator Unit (RGU) and a Power
Management Unit (PMU).
Figure 8 provides an overview of the PCRSS. An AHB-to-DTL bridge controls the
communication with the AHB system bus.
LPC2921_2923_2925_0
Preliminary data sheet
F
D
D
Programmable for 2X or 4X position counting.
The QEI module in the MSCSS has the following pins. These are combined with other
functions on the port pins of the LPC2921/2923/2925. Table 23 shows the QEI pins.
6.14.7.2
A
FT
FT
A
A
R
R
D
D
D
Increments/ decrements depending on direction.
Table 23.
FT
FT
FT
FT
Tracks encoder position.
• Digital filter with programmable delays for encoder input signals.
• Can accept decoded signal inputs (clk and direction).
• Connected to APB.
6.14.7.1
A
A
A
A
R
R
D
D
D
The QEI has the following features:
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
•
•
•
•
•
•
•
•
•
•
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
40 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
R
A
PLL
FT
D
OUT6
OUT11
R
OUT0
OUT2
A
PLL
OUT0
OUT1
LOW POWER
RING
OSCILLATOR
D
PMU
CGU1
D
CGU0
EXTERNAL
OSCILLATOR
branch
clocks
CLOCK
GATES
FDIV
OUT5
OUT7
FDIV[6:0]
OUT9
CGU0/1
REGISTERS
CLOCK
ENABLE
CONTROL
PMU
REGISTERS
AHB2DTL
BRIDGE
AHB
master
disable:
grant
request
wakeup_a
RGU
AHB_RST
RGU
REGISTERS
SCU_RST
RESET OUTPUT
DELAY LOGIC
POR
WARM_RST
COLD_RST
PCR_RST
RGU_RST
POR_RST
INPUT
DEGLITCH/
SYNC
RST_N (device pin)
reset from watchdog counter
002aae249
Fig 8.
Power, Clock, and Reset control Sub System (PCRSS) block diagram
6.15.1 Clock description
The PCRSS is clocked by a number of different clocks. CLK_SYS_PCRSS clocks the
AHB side of the AHB to DTL bus bridge and CLK_PCR_SLOW clocks the CGU, RGU and
PMU internal logic, see Section 6.7.2. CLK_SYS_PCRSS is derived from
BASE_SYS_CLK, which can be switched off in low-power modes. CLK_PCR_SLOW is
derived from BASE_PCR_CLK and is always on in order to be able to wake up from
low-power modes.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
41 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
Generation of 11 base clocks selectable from several embedded clock sources.
D
D
R
Crystal oscillator with power-down.
A
FT
D
Control PLL with power-down.
R
A
Very low-power ring oscillator, always on to provide a safe clock.
Seven fractional clock dividers with L/D division.
Individual source selector for each base clock, with glitch-free switching.
Autonomous clock-activity detection on every clock source.
Protection against switching to invalid or inactive clock sources.
Embedded frequency counter.
Register write-protection mechanism to prevent unintentional alteration of clocks.
Remark: Any clock-frequency adjustment has a direct impact on the timing of all on-board
peripherals.
Functional description
The clock generation unit provides 11 internal clock sources as described in Table 24.
Table 24.
CGU0 base clocks
Number Name
Frequency
(MHz) [1]
Description
0
BASE_SAFE_CLK
0.4
base safe clock (always on)
1
BASE_SYS_CLK
100
[2]
base system clock
base PCR subsystem clock
2
BASE_PCR_CLK
0.4
3
BASE_IVNSS_CLK
100
base IVNSS subsystem clock
4
BASE_MSCSS_CLK
100
base MSCSS subsystem clock
5
BASE_ICLK0_CLK
160
base internal clock 0, for CGU1
6
BASE_UART_CLK
100
base UART clock
7
BASE_SPI_CLK
50
base SPI clock
8
BASE_TMR_CLK
100
base timers clock
9
BASE_ADC_CLK
4.5
base ADCs clock
10
reserved
-
-
11
BASE_ICLK1_CLK
160
base internal clock 1, for CGU1
[1]
Maximum frequency that guarantees stable operation of the LPC2921/2923/2925.
[2]
Fixed to low-power oscillator.
For generation of these base clocks, the CGU consists of primary and secondary clock
generators and one output generator for each base clock.
LPC2921_2923_2925_0
Preliminary data sheet
FT
FT
FT
FT
The key features are:
6.15.2.1
A
A
A
A
R
R
D
D
D
6.15.2 Clock Generation Unit (CGU0)
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
•
•
•
•
•
•
•
•
•
•
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
42 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
CLOCK GENERATION UNIT (CGU0)
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
BASE_SYS_CLK
OUT 2
BASE_PCR_CLK
OUT 3
BASE_IVNSS_CLK
OUT 11
BASE_ICLK1_CLK
D
OUT 1
FT
BASE_SAFE_CLK
A
OUT 0
R
A
FDIV0
400 kHz LP_OSC
EXTERNAL
OSCLLLATOR
PLL
clkout
clkout120
clkout240
FDIV1
FDIV6
FREQUENCY
MONITOR
CLOCK
DETECTION
AHB TO DTL BRIDGE
002aae147
Fig 9.
Block diagram of the CGU0 (see Table 24 for all base clocks)
There are two primary clock generators: a low-power ring oscillator (LP_OSC) and a
crystal oscillator. See Figure 9.
LP_OSC is the source for the BASE_PCR_CLK that clocks the CGU itself and for
BASE_SAFE_CLK that clocks a minimum of other logic in the device (like the watchdog
timer). To prevent the device from losing its clock source LP_OSC cannot be put into
power-down. The crystal oscillator can be used as source for high-frequency clocks or as
an external clock input if a crystal is not connected.
Secondary clock generators are a PLL and seven fractional dividers (FDIV0..6). The PLL
has three clock outputs: normal, 120° phase-shifted and 240° phase-shifted.
Configuration of the CGU0: For every output generator generating the base clocks a
choice can be made from the primary and secondary clock generators according to
Figure 10.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
43 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
F
D
FT
FT
A
A
R
R
D
FDIV0..6
A
FT
FT
A
A
R
R
D
D
D
LP_OSC
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
D
D
R
EXTERNAL
OSCILLATOR
A
FT
D
clkout
clkout120
clkout240
R
A
PLL
OUTPUT
CONTROL
clock
outputs
002aad834
Fig 10. Structure of the clock generation scheme
Any output generator (except for BASE_SAFE_CLK and BASE_PCR_CLK) can be
connected to either a fractional divider (FDIV0..6) or to one of the outputs of the PLL or to
LP_OSC/crystal oscillator directly. BASE_SAFE_CLK and BASE_PCR_CLK can use only
LP_OSC as source.
The fractional dividers can be connected to one of the outputs of the PLL or directly to
LP_OSC/crystal Oscillator.
The PLL is connected to the crystal oscillator.
In this way every output generating the base clocks can be configured to get the required
clock. Multiple output generators can be connected to the same primary or secondary
clock source, and multiple secondary clock sources can be connected to the same PLL
output or primary clock source.
Invalid selections/programming - connecting the PLL to an FDIV or to one of the PLL
outputs itself for example - will be blocked by hardware. The control register will not be
written, the previous value will be kept, although all other fields will be written with new
data. This prevents clocks being blocked by incorrect programming.
Default Clock Sources: Every secondary clock generator or output generator is
connected to LP_OSC at reset. In this way the device runs at a low frequency after reset.
It is recommended to switch BASE_SYS_CLK to a high-frequency clock generator as
(one of) the first step(s) in the boot code after verifying that the high-frequency clock
generator is running.
Clock Activity Detection: Clocks that are inactive are automatically regarded as invalid,
and values of ‘CLK_SEL’ that would select those clocks are masked and not written to the
control registers. This is accomplished by adding a clock detector to every clock
generator. The RDET register keeps track of which clocks are active and inactive, and the
LPC2921_2923_2925_0
Preliminary data sheet
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
44 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
appropriate ‘CLK_SEL’ values are masked and unmasked accordingly. Each clock
detector can also generate interrupts at clock activation and deactivation so that the
system can be notified of a change in internal clock status.
D
FT
FT
A
A
R
R
D
D
D
Clock detection is done using a counter running at the BASE_PCR_CLK frequency. If no
positive clock edge occurs before the counter has 32 cycles of BASE_PCR_CLK the clock
is assumed to be inactive. As BASE_PCR_CLK is slower than any of the clocks to be
detected, normally only one BASE_PCR_CLK cycle is needed to detect activity. After
reset all clocks are assumed to be ‘non-present’, so the RDET status register will be
correct only after 32 BASE_PCR_CLK cycles.
R
A
6.15.2.2
PLL functional description
A block diagram of the PLL is shown in Figure 11. The input clock is fed directly to the
analog section. This block compares the phase and frequency of the inputs and generates
the main clock2. These clocks are either divided by 2 × P by the programmable post
divider to create the output clock, or sent directly to the output. The main output clock is
then divided by M by the programmable feedback divider to generate the feedback clock.
The output signal of the analog section is also monitored by the lock detector to signal
when the PLL has locked onto the input clock.
PSEL bits
P23EN bit
input clock
/ 2PDIV
P23
CCO
clkout120
clkout240
clkout
bypass
direct
/ MDIV
clkout
002aad833
MSEL bits
Fig 11. PLL block diagram
2.
Generation of the main clock is restricted by the frequency range of the PLL clock input. See Table 32, Dynamic characteristics.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
45 of 81
A
If the current clock is high and does not go low within 32 cycles of BASE_PCR_CLK it is
assumed to be inactive and is asynchronously forced low. This prevents deadlocks on the
interface.
R
In the case of the PLL the clock will be stopped and held low for long enough to allow the
PLL to stabilize and lock before being re-enabled. For all non-PLL Generators the switch
will occur as quickly as possible, although there will always be a period when the clock is
held low due to synchronization requirements.
D
Glitch-Free Switching: Provisions are included in the CGU to allow clocks to be
switched glitch-free, both at the output generator stage and also at secondary source
generators.
FT
Note that this mechanism cannot protect against a currently-selected clock going from
active to inactive state. Therefore an inactive clock may still be sent to the system under
special circumstances, although an interrupt can still be generated to notify the system.
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
Triple output phases: For applications that require multiple clock phases two additional
clock outputs can be enabled by setting register P23EN to logic 1, thus giving three clocks
with a 120° phase difference. In this mode all three clocks generated by the analog
section are sent to the output dividers. When the PLL has not yet achieved lock the
second and third phase output dividers run unsynchronized, which means that the phase
relation of the output clocks is unknown. When the PLL LOCK register is set the second
and third phase of the output dividers are synchronized to the main output clock CLKOUT
PLL, thus giving three clocks with a 120° phase difference.
D
FT
FT
A
A
R
R
D
D
D
R
A
The CGU0 module in the LPC2921/2923/2925 has the pins listed in Table 25 below.
Table 25.
CGU0 pins
Symbol
Direction
Description
XOUT_OSC
OUT
Oscillator crystal output
XIN_OSC
IN
Oscillator crystal input or external clock input
6.15.3 Clock generation for USB (CGU1)
The CGU1 block is functionally identical to the CGU0 block and generates the clock for
the USB interface and a dedicated output clock. The CGU1 block uses its own PLL and
fractional divider. The PLLs used in CGU0 and CGU1 are identical (see Section 6.15.2.2).
The clock input to the CGU1 PLL is provided by one of two base clocks generated in the
CGU0: BASE_ICLK0_CLK or BASE_ICLK1_CLK. The base clock not used for the PLL
can be configured to drive the output clock directly.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
46 of 81
A
Pin description
R
6.15.2.3
D
Power-down control: A Power-down mode has been incorporated to reduce power
consumption when the PLL clock is not needed. This is enabled by setting the PD control
register bit. In this mode the analog section of the PLL is turned off, the oscillator and the
phase-frequency detector are stopped and the dividers enter a reset state. While in
Power-down mode the LOCK output is low, indicating that the PLL is not in lock. When
Power-down mode is terminated by clearing the PD control-register bit the PLL resumes
normal operation, and makes the LOCK signal high once it has regained lock on the input
clock.
FT
Direct output mode: In normal operating mode (with DIRECT set to logic 0) the CCO
clock is divided by 2, 4, 8 or 16 depending on the value on the PSEL[1:0] input, giving an
output clock with a 50 % duty cycle. If a higher output frequency is needed the CCO clock
can be sent directly to the output by setting DIRECT to logic 1. Since the CCO does not
directly generate a 50 % duty cycle clock, the output clock duty cycle in this mode can
deviate from 50 %.
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
CLOCK GENERATION UNIT
(CGU1)
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
FT
BASE_OUT_CLK
A
OUT 2
R
BASE_USB_CLK
D
OUT 0
BASE_ICLK0_CLK
PLL
BASE_ICLK1_CLK
clkout
clkout120
clkout240
FDIV0
AHB TO DTL BRIDGE
002aae250
Fig 12. Block diagram of the CGU1
6.15.3.1
Pin description
The CGU1 module in the LPC2921/2923/2925 has the pins listed in Table 25 below.
Table 26.
CGU1 pins
Symbol
Direction
Description
CLK_OUT
OUT
clock output
6.15.4 Reset Generation Unit (RGU)
The RGU controls all internal resets.
The key features of the Reset Generation Unit (RGU) are:
•
•
•
•
6.15.4.1
Reset controlled individually per subsystem
Automatic reset stretching and release
Monitor function to trace resets back to source
Register write-protection mechanism to prevent unintentional resets
Functional description
Each reset output is defined as a combination of reset input sources including the external
reset input pins and internal power-on reset, see Table 27. The first five resets listed in
this table form a sort of cascade to provide the multiple levels of impact that a reset may
have. The combined input sources are logically OR-ed together so that activating any of
the listed reset sources causes the output to go active.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
47 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
D
A
FT
R
R
R
LP_OSC; is source for RGU_RST
POR_RST, RST_N pin
RGU internal; is source for PCR_RST
PCR_RST
RGU_RST, WATCHDOG PCR internal; is source for COLD_RST
COLD_RST
PCR_RST
parts with COLD_RST as reset source below
WARM_RST
COLD_RST
parts with WARM_RST as reset source below
SCU_RST
COLD_RST
SCU
CFID_RST
COLD_RST
CFID
FMC_RST
COLD_RST
embedded Flash-Memory Controller (FMC)
EMC_RST
COLD_RST
embedded SRAM-Memory Controller
GESS_A2V_RST
WARM_RST
GeSS AHB-to-APB bridge
PESS_A2V_RST
WARM_RST
PeSS AHB-to-APB bridge
GPIO_RST
WARM_RST
all GPIO modules
UART_RST
WARM_RST
all UART modules
TMR_RST
WARM_RST
all Timer modules in PeSS
SPI_RST
WARM_RST
all SPI modules
IVNSS_A2V_RST
WARM_RST
IVNSS AHB-to-APB bridge
IVNSS_CAN_RST
WARM_RST
all CAN modules including Acceptance filter
IVNSS_LIN_RST
WARM_RST
all LIN modules
MSCSS_A2V_RST
WARM_RST
MSCSS AHB to APB bridge
MSCSS_PWM_RST
WARM_RST
all PWM modules
MSCSS_ADC_RST
WARM_RST
all ADC modules
MSCSS_TMR_RST
WARM_RST
all Timer modules in MSCSS
I2C_RST
<tbd>
all I2C modules
QEI_RST
<tbd>
Quadrature encoder
DMA_RST
<tbd>
DMA controller
USB_RST
<tbd>
USB controller
VIC_RST
WARM_RST
Vectored Interrupt Controller (VIC)
AHB_RST
WARM_RST
CPU and AHB Bus infrastructure
FT
FT
A
A
power-on reset module
RGU_RST
D
D
R
A
FT
Direction
Description
RST_N
IN
external reset input, Active LOW; pulled up internally
6.15.5 Power Management Unit (PMU)
This module enables software to actively control the system’s power consumption by
disabling clocks not required in a particular operating mode.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
48 of 81
A
RGU pins
R
The RGU module in the LPC2921/2923/2925 has the following pins. Table 28 shows the
RGU pins.
D
Pin description
Symbol
F
D
D
POR_RST
Table 28.
A
FT
Parts of the device reset when activated
FT
A
A
R
R
D
D
D
6.15.4.2
R
R
FT
FT
A
A
R
R
D
D
D
Reset source
FT
FT
FT
FT
Reset output
A
A
A
A
R
R
D
D
D
Reset output configuration
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 27.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
FT
FT
FT
FT
FT
LPC2921/2923/2925
D
R
R
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
Using the base clocks from the CGU as input, the PMU generates branch clocks to the
rest of the LPC2921/2923/2925. Output clocks branched from the same base clock are
phase- and frequency-related. These branch clocks can be individually controlled by
software programming.
D
FT
FT
A
A
R
R
D
D
D
R
D
Individual clock control for all LPC2921/2923/2925 sub-modules
R
A
6.15.5.1
FT
•
•
•
•
•
•
•
A
The key features are:
Activates sleeping clocks when a wake-up event is detected
Clocks can be individually disabled by software
Supports AHB master-disable protocol when AUTO mode is set
Disables wake-up of enabled clocks when Power-down mode is set
Activates wake-up of enabled clocks when a wake-up event is received
Status register is available to indicate if an input base clock can be safely switched off
(i.e. all branch clocks are disabled)
Functional description
The PMU controls all internal clocks coming out of the CGU0 for power-mode
management. With some exceptions, each branch clock can be switched on or off
individually under control of software register bits located in its individual configuration
register. Some branch clocks controlling vital parts of the device operate in a fixed mode.
Table 29 shows which mode- control bits are supported by each branch clock.
By programming the configuration register the user can control which clocks are switched
on or off, and which clocks are switched off when entering Power-down mode.
Note that the standby-wait-for-interrupt instructions of the ARM968E-S processor (putting
the ARM CPU into a low-power state) are not supported. Instead putting the ARM CPU
into power-down should be controlled by disabling the branch clock for the CPU.
Remark: For any disabled branch clocks to be re-activated their corresponding base
clocks must be running (controlled by the CGU0).
Table 29 shows the relation between branch and base clocks, see also Section 6.7.1.
Every branch clock is related to one particular base clock: it is not possible to switch the
source of a branch clock in the PMU.
Table 29. Branch clock overview
Legend:
‘1’ Indicates that the related register bit is tied off to logic HIGH, all writes are ignored
‘0’ Indicates that the related register bit is tied off to logic LOW, all writes are ignored
‘+’ Indicates that the related register bit is readable and writable
Branch clock name
Base clock
Implemented switch on/off
mechanism
WAKE-UP
RUN
CLK_SAFE
BASE_SAFE_CLK
0
0
1
CLK_SYS_CPU
BASE_SYS_CLK
+
+
1
CLK_SYS
BASE_SYS_CLK
+
+
1
CLK_SYS_PCR
BASE_SYS_CLK
+
+
1
CLK_SYS_FMC
BASE_SYS_CLK
+
+
+
LPC2921_2923_2925_0
Preliminary data sheet
AUTO
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
49 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
D
FT
FT
A
A
R
R
D
D
Table 29. Branch clock overview …continued
Legend:
‘1’ Indicates that the related register bit is tied off to logic HIGH, all writes are ignored
‘0’ Indicates that the related register bit is tied off to logic LOW, all writes are ignored
‘+’ Indicates that the related register bit is readable and writable
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
Implemented switch on/off
mechanism
A
Base clock
R
Branch clock name
FT
D
CLK_SYS_RAM0
BASE_SYS_CLK
+
+
+
BASE_SYS_CLK
+
+
+
CLK_SYS_GESS
BASE_SYS_CLK
+
+
+
CLK_SYS_VIC
BASE_SYS_CLK
+
+
+
CLK_SYS_PESS
BASE_SYS_CLK
+
+
+
CLK_SYS_GPIO0
BASE_SYS_CLK
+
+
+
CLK_SYS_GPIO1
BASE_SYS_CLK
+
+
+
CLK_SYS_GPIO5
BASE_SYS_CLK
+
+
+
CLK_SYS_IVNSS_A
BASE_SYS_CLK
+
+
+
CLK_SYS_MSCSS_A
BASE_SYS_CLK
+
+
+
CLK_SYS_DMA
BASE_SYS_CLK
+
+
+
CLK_SYS_USB
BASE_SYS_CLK
+
+
+
CLK_PCR_SLOW
BASE_PCR_CLK
+
+
1
CLK_IVNSS_APB
BASE_IVNSS_CLK
+
+
+
CLK_IVNSS_CANC0
BASE_IVNSS_CLK
+
+
+
CLK_IVNSS_CANC1
BASE_IVNSS_CLK
+
+
+
CLK_IVNSS_I2C0
BASE_IVNSS_CLK
+
+
+
CLK_IVNSS_I2C1
BASE_IVNSS_CLK
+
+
+
CLK_IVNSS_LIN0
BASE_IVNSS_CLK
+
+
+
CLK_IVNSS_LIN1
BASE_IVNSS_CLK
+
+
+
CLK_MSCSS_APB
BASE_MSCSS_CLK
+
+
+
CLK_MSCSS_MTMR0
BASE_MSCSS_CLK
+
+
+
CLK_MSCSS_MTMR1
BASE_MSCSS_CLK
+
+
+
CLK_MSCSS_PWM0
BASE_MSCSS_CLK
+
+
+
CLK_MSCSS_PWM1
BASE_MSCSS_CLK
+
+
+
CLK_MSCSS_PWM2
BASE_MSCSS_CLK
+
+
+
CLK_MSCSS_PWM3
BASE_MSCSS_CLK
+
+
+
CLK_MSCSS_ADC1_APB BASE_MSCSS_CLK
+
+
+
CLK_MSCSS_ADC2_APB BASE_MSCSS_CLK
+
+
+
CLK_MSCSS_QEI
BASE_MSCSS_CLK
+
+
+
CLK_OUT_CLK
BASE_OUT_CLK
+
+
+
CLK_UART0
BASE_UART_CLK
+
+
+
CLK_UART1
BASE_UART_CLK
+
+
+
CLK_SPI0
BASE_SPI_CLK
+
+
+
CLK_SPI1
BASE_SPI_CLK
+
+
+
CLK_SPI2
BASE_SPI_CLK
+
+
+
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
50 of 81
A
RUN
CLK_SYS_RAM1
LPC2921_2923_2925_0
Preliminary data sheet
AUTO
R
WAKE-UP
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
D
FT
FT
A
A
R
R
D
D
Table 29. Branch clock overview …continued
Legend:
‘1’ Indicates that the related register bit is tied off to logic HIGH, all writes are ignored
‘0’ Indicates that the related register bit is tied off to logic LOW, all writes are ignored
‘+’ Indicates that the related register bit is readable and writable
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
Implemented switch on/off
mechanism
A
Base clock
R
Branch clock name
FT
D
RUN
CLK_TMR0
BASE_TMR_CLK
+
+
+
CLK_TMR1
BASE_TMR_CLK
+
+
+
CLK_TMR2
BASE_TMR_CLK
+
+
+
CLK_TMR3
BASE_TMR_CLK
+
+
+
CLK_ADC1
BASE_ADC_CLK
+
+
+
CLK_ADC2
BASE_ADC_CLK
+
+
+
CLK_TESTSHELL_IP
BASE_CLK_TESTSHELL
0
0
1
CLK_USB
BASE_USB_CLK
+
+
+
6.16 Vectored interrupt controller
The LPC2921/2923/2925 contains a very flexible and powerful Vectored Interrupt
Controller (VIC) to interrupt the ARM processor on request.
The key features are:
•
•
•
•
•
•
Level-active interrupt request with programmable polarity.
56 interrupt-request inputs.
Software-interrupt request capability associated with each request input.
Interrupt request state can be observed before masking.
Software-programmable priority assignments to interrupt requests up to 15 levels.
Software-programmable routing of interrupt requests towards the ARM-processor
inputs IRQ and FIQ.
• Fast identification of interrupt requests through vector.
• Support for nesting of interrupt service routines.
6.16.1 Functional description
The Vectored Interrupt Controller routes incoming interrupt requests to the ARM
processor. The interrupt target is configured for each interrupt request input of the VIC.
The targets are defined as follows:
• Target 0 is ARM processor FIQ (fast interrupt service)
• Target 1 is ARM processor IRQ (standard interrupt service)
Interrupt-request masking is performed individually per interrupt target by comparing the
priority level assigned to a specific interrupt request with a target-specific priority
threshold. The priority levels are defined as follows:
• Priority level 0 corresponds to ‘masked’ (i.e. interrupt requests with priority 0 never
lead to an interrupt)
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
51 of 81
A
AUTO
R
WAKE-UP
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
• Priority 1 corresponds to the lowest priority
• Priority 15 corresponds to the highest priority
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
Software interrupt support is provided and can be supplied for:
D
D
R
A
FT
• Testing RTOS (Real-Time Operating System) interrupt handling without using
D
device-specific interrupt service routines
R
A
• Software emulation of an interrupt-requesting device, including interrupts
6.16.2 Clock description
The VIC is clocked by CLK_SYS_VIC, see Section 6.7.2.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
52 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
R
FT
FT
A
A
R
W
D
1.5
FT
-
A
Unit
R
Max
D
Min
D
VDD(CORE)
core supply voltage
−0.5
+2.0
V
VDD(OSC_PLL)
oscillator and PLL supply
voltage
−0.5
+2.0
V
VDDA(ADC3V3)
3.3 V ADC analog supply
voltage
−0.5
+4.6
V
VDD(IO)
I/O supply voltage
IDD
supply current
average value per supply
pin
[2]
ISS
ground current
average value per ground
pin
[2]
−0.5
+4.6
V
-
98
mA
-
98
mA
Input pins and I/O pins
I/O input voltage
VI(ADC)
ADC input voltage
VVREFP
voltage on pin VREFP
VVREFN
voltage on pin VREFN
II(ADC)
−0.5
+2.0
V
[3][4][6]
−0.5
VDD(IO) + 3.0
V
[4][6]
−0.5
VDDA(ADC3V3)
+ 0.5
V
−0.5
+3.6
V
−0.5
+3.6
V
-
35
mA
voltage on pin XIN_OSC
ADC input current
for ADC1/2: I/O port 0 pin 8
to pin 23.
[2]
average value per input pin
Output pins and I/O pins configured as output
IOHS
HIGH-level short-circuit
output current
drive HIGH, output shorted
to VSS(IO)
[8]
-
−33
mA
IOLS
LOW-level short-circuit
output current
drive LOW, output shorted
to VDD(IO)
[8]
-
+38
mA
General
Tstg
storage temperature
−65
+150
°C
Tamb
ambient temperature
−40
+85
°C
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
53 of 81
A
total power dissipation
R
[1]
Ptot
VI(IO)
F
D
D
Conditions
Supply pins
VXIN_OSC
A
FT
FT
A
A
R
R
D
D
D
Parameter
FT
FT
FT
FT
Table 30. Limiting values
In accordance with the Absolute Maximum Rating System (IEC 60134).
A
A
A
A
R
R
D
D
D
7. Limiting values
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Symbol
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
R
R
R
R
D
D
D
D
R
R
D
R
FT
FT
FT
A
A
A
R
A
−2000
+2000
V
−500
+500
V
−750
+750
V
D
Unit
FT
FT
A
A
R
R
D
Max
F
FT
FT
A
A
R
R
D
D
D
on all pins
R
R
R
electrostatic discharge
voltage
Min
ESD
D
A
[7]
Based on package heat transfer, not device power consumption.
[2]
Peak current must be limited at 25 times average current.
[3]
For I/O Port 0, the maximum input voltage is defined by VI(ADC).
[4]
Only when VDD(IO) is present.
[5]
Not exceeding 6 V.
[6]
Note that pull-up should be off. With pull-up do not exceed 3.6 V.
[7]
Human-body model: discharging a 100 pF capacitor via a 10 kΩ series resistor.
[8]
112 mA per VDD(IO) or VSS(IO) should not be exceeded.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
54 of 81
A
[1]
R
charged device model
D
on corner pins
FT
charged device model
R
human body model
D
Vesd
D
D
D
Conditions
FT
FT
FT
FT
Parameter
A
A
A
A
R
R
D
D
D
Table 30. Limiting values …continued
In accordance with the Absolute Maximum Rating System (IEC 60134).
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Symbol
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
D
FT
FT
A
A
R
R
D
Table 31. Static characteristics
VDD(CORE) = VDD(OSC_PLL) ; VDD(IO) = 2.7 V to 3.6 V; VDDA(ADC3V3) = 3.0 V to 3.6 V; Tvj = -40 °C to +85 °C; all voltages are
measured with respect to ground; positive currents flow into the IC; unless otherwise specified.[1]
F
FT
FT
A
A
R
R
D
D
D
8. Static characteristics
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
Max
Unit
1.71
1.80
1.89
V
-
1.1
2.5
mA/
MHz
-
30
475
μA
2.7
-
3.6
V
1.71
1.80
1.89
V
normal mode
-
-
1
mA
Power-down mode
-
-
2
μA
3.0
3.3
3.6
V
normal mode
-
-
1.9
mA
Power-down mode
-
-
4
μA
−0.5
-
+ 5.5
V
D
Typ
R
A
Core supply
VDD(CORE)
core supply voltage
IDD(CORE)
core supply current
ARM9 and all
peripherals active at
max clock speeds
[2]
all clocks off
I/O supply
VDD(IO)
I/O supply voltage
Oscillator/PLL supply
VDD(OSC_PLL)
oscillator and PLL supply
voltage
IDD(OSC_PLL)
oscillator and PLL supply
current
Analog-to-digital converter supply
VDDA(ADC3V3)
3.3 V ADC analog supply
voltage
IDDA(ADC3V3)
3.3 V ADC analog supply
current
Input pins and I/O pins configured as input
VI
FT
Min
A
Conditions
R
Parameter
D
Symbol
Supplies
input voltage
all port pins and VDD(IO)
applied
[7][8]
see Section 7
port 0 pins 8 to 23 when
ADC1/2 is used
[8]
VVREFP
all port pins and VDD(IO)
not applied
−0.5
-
+3.6
V
all other I/O pins,
RESET_N, TRST_N,
TDI, JTAGSEL, TMS,
TCK
−0.5
-
VDD(IO)
V
VIH
HIGH-level input voltage
all port pins, RESET_N,
TRST_N, TDI,
JTAGSEL, TMS, TCK
2.0
-
-
V
VIL
LOW-level input voltage
all port pins, RESET_N,
TRST_N, TDI,
JTAGSEL, TMS, TCK
-
-
0.8
V
Vhys
hysteresis voltage
0.4
-
-
V
ILIH
HIGH-level input leakage
current
-
-
1
μA
ILIL
LOW-level input leakage
current
-
-
1
μA
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
55 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
Table 31. Static characteristics …continued
VDD(CORE) = VDD(OSC_PLL) ; VDD(IO) = 2.7 V to 3.6 V; VDDA(ADC3V3) = 3.0 V to 3.6 V; Tvj = -40 °C to +85 °C; all voltages are
measured with respect to ground; positive currents flow into the IC; unless otherwise specified.[1]
D
Conditions
Min
Typ
Max
Unit
II(pd)
pull-down input current
all port pins, VI = 3.3 V;
VI = 5.5 V
25
50
100
μA
II(pu)
pull-up input current
all port pins, RESET_N,
TRST_N, TDI,
JTAGSEL, TMS:
VI = 0 V; VI > 3.6 V is not
allowed
−25
−50
−115
μA
Ci
input capacitance
-
3
8
pF
FT
FT
A
Parameter
A
R
R
D
Symbol
D
D
R
A
FT
D
R
A
[3]
Output pins and I/O pins configured as output
VO
output voltage
0
-
VDD(IO)
V
VOH
HIGH-level output voltage IOH = −4 mA
VDD(IO) – 0.4
-
-
V
VOL
LOW-level output voltage
-
-
0.4
V
CL
load capacitance
-
-
25
pF
IOL = 4 mA
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Analog-to-digital converter supply
VVREFN
voltage on pin VREFN
0
-
VVREFP − 2
V
VVREFP
voltage on pin VREFP
VVREFN + 2
-
VDDA(ADC3V3)
V
VI(ADC)
ADC input voltage
on port 0 pins
VVREFN
-
VVREFP
V
Zi
input impedance
between VVREFN and
VVREFP
4.4
-
-
kΩ
between VVREFN and
VDD(A5V)
13.7
-
23.6
kΩ
FSR
full scale range
2
-
10
bit
INL
integral non-linearity
−2
-
+2
LSB
DNL
differential non-linearity
−1
-
+1
LSB
Verr(offset)
offset error voltage
−20
-
+20
mV
Verr(FS)
full-scale error voltage
−20
-
+20
mV
LPC2921_2923_2925_0
Preliminary data sheet
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
56 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
R
Max
Unit
Cxtal = 10 pF;
Cext = 18 pF
-
-
160
Ω
Cxtal = 20 pF;
Cext = 39 pF
-
-
60
Ω
-
-
80
Ω
2
pF
1.4
1.6
V
FT
D
D
R
A
[5]
FT
[9]
-
high trip level voltage
[6]
1.1
Vtrip(low)
low trip level voltage
[6]
1.0
1.3
1.5
V
Vtrip(dif)
difference between high
and low trip level voltage
[6]
50
120
180
mV
input capacitance
of XIN_OSC
Power-up reset
Vtrip(high)
[1]
All parameters are guaranteed over the virtual junction temperature range by design. Pre-testing is performed at Tamb = 125 °C on wafer
level. Cased products are tested at Tamb = 25 °C (final testing). Both pre-testing and final testing use correlated test conditions to cover
the specified temperature and power-supply voltage range.
[2]
Leakage current is exponential to temperature; worst-case value is at 125 °C Tvj. All clocks off. Analog modules and FLASH powered
down.
[3]
For Port 0, pin 0 to pin 15 add maximum 1.5 pF for input capacitance to ADC. For Port 0, pin 16 to pin 31 add maximum 1.0 pF for input
capacitance to ADC.
[4]
This value is the minimum drive capability. Maximum short-circuit output current is 33 mA (drive HIGH-level, shorted to ground) or
−38 mA. (drive LOW-level, shorted to VDD(IO)). The device will be damaged if multiple outputs are shorted.
[5]
Cxtal is crystal load capacitance and Cext are the two external load capacitors.
[6]
The power-up reset has a time filter: VDD(CORE) must be above Vtrip(high) for 2 μs before reset is de-asserted; VDD(CORE) must be below
Vtrip(low) for 11 μs before internal reset is asserted.
[7]
Not 5 V-tolerant when pull-up is on.
[8]
For I/O Port 0, the maximum input voltage is defined by VI(ADC).
[9]
This parameter is not part of production testing or final testing, hence only a typical value is stated. Maximum and minimum values are
based on simulation results.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
57 of 81
A
Cxtal = 10 pF;
Cext = 18 pF
R
[5]
D
fosc = 15 MHz to 20 MHz
Ci
FT
A
Typ
A
R
fosc = 10 MHz to 15 MHz
F
D
D
crystal series resistance
A
FT
FT
A
A
R
R
D
D
D
Min
Oscillator
Rs(xtal)
FT
FT
FT
FT
Conditions
A
A
A
A
R
R
D
D
D
Table 31. Static characteristics …continued
VDD(CORE) = VDD(OSC_PLL) ; VDD(IO) = 2.7 V to 3.6 V; VDDA(ADC3V3) = 3.0 V to 3.6 V; Tvj = -40 °C to +85 °C; all voltages are
measured with respect to ground; positive currents flow into the IC; unless otherwise specified.[1]
Parameter
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Symbol
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
gain
error
EG
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
offset
error
EO
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
1023
A
FT
D
R
1022
A
1021
1020
1019
1018
(2)
7
code
out
(1)
6
5
(5)
4
(4)
3
(3)
2
1 LSB
(ideal)
1
0
1
2
offset error
EO
3
4
5
6
7
1018
1019
1020
1021
1022
1023
1024
VIA (LSBideal)
1 LSB =
VDDA − VSSA
1024
002aac046
Fig 13. ADC characteristics
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
58 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
002aae241
80
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
8.1 Power consumption
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
IDD(CORE)
(mA)
A
FT
D
R
60
A
40
20
0
10
50
90
130
core frequency (MHz)
Conditions: Tamb = 25 °C; active mode entered executing code from flash; core voltage 1.8 V; all
peripherals enabled but not configured to run.
Fig 14. IDD(CORE) at different core frequencies (active mode)
002aae240
80
IDD(CORE)
(mA)
125 MHz
60
100 MHz
80 MHz
40
40 MHz
20
10 MHz
0
1.7
1.8
1.9
core voltage (V)
Conditions: Tamb = 25 °C; active mode entered executing code from flash; all peripherals enabled
but not configured to run.
Fig 15. IDD(CORE) at different core voltages VDD(CORE) (active mode)
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
59 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
F
D
FT
FT
A
A
R
R
D
125 MHz
A
FT
FT
A
A
R
R
R
002aae239
D
D
D
IDD(CORE)
(mA)
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
80
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
60
FT
100 MHz
D
R
A
80 MHz
40
40 MHz
20
10 MHz
0
−40
−15
10
35
60
85
temperature (°C)
Conditions: active mode entered executing code from flash; core voltage 1.8 V; all peripherals
enabled but not configured to run.
Fig 16.
IDD(CORE) at different temperatures (active mode)
8.2 Electrical pin characteristics
001aac984
X
X
(X)
X
X
<tbd>
X
X
X
X
X
X
X
X
X (X)
Measured on pins Pn.m; VDDIO = <tbd> V.
Fig 17. Typical LOW-level output IOLcurrent versus LOW-level output VOL
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
60 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
F
D
FT
FT
A
A
R
R
D
X
(X)
A
FT
FT
A
A
R
R
D
D
D
001aac984
X
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
X
R
A
FT
D
R
X
A
<tbd>
X
X
X
X
X
X
X
X
X (X)
Measured on pins Pn.m; VDDIO = <tbd> V.
Fig 18. Typical HIGH-level output IOH current versus HIGH-level output voltage VOH
001aac984
X
X
(X)
X
X
<tbd>
X
X
X
X
X
X
X
X
X (X)
Measured on pins Pn.m; VDDIO = <tbd> V.
Fig 19. Typical pull-up current Ipu versus input voltage Vi
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
61 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
F
D
FT
FT
A
A
R
R
D
X
(X)
A
FT
FT
A
A
R
R
D
D
D
001aac984
X
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
X
R
A
FT
D
R
X
A
<tbd>
X
X
X
X
X
X
X
X
X (X)
Measured on pins Pn.m; VDDIO = <tbd> V.
Fig 20. Typical pull-down current Ipd versus input voltage Vi
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
62 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
9. Dynamic characteristics
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
9.1 Dynamic characteristics: I/O pins, internal clock, oscillators, PLL, and
CAN
D
D
R
A
Min
Typ
Max
Unit
tTHL
HIGH-to-LOW
transition time
CL = 30 pF
4
-
13.8
ns
tTLH
LOW-to-HIGH
transition time
CL = 30 pF
4
-
13.8
ns
I/O pins
Internal clock
fclk(sys)
Tclk(sys)
system clock frequency
[2]
10
-
125
MHz
system clock period
[2]
8
-
100
ns
0.36
0.4
0.42
MHz
-
6
-
μs
10
-
100
MHz
-
500
-
μs
Low-power ring oscillator
fref(RO)
RO reference
frequency
tstartup
start-up time
at maximum frequency
fi(osc)
oscillator input
frequency
maximum frequency is
the clock input of an
external clock source
applied to the Xin pin
tstartup
start-up time
at maximum frequency
[3]
Oscillator
[3]
[4]
PLL
fi(PLL)
PLL input frequency
10
-
25
MHz
fo(PLL)
PLL output frequency
10
-
160
MHz
156
-
320
MHz
CCO; direct mode
ta(clk)
clock access time
-
-
63.4
ns
ta(A)
address access time
-
-
60.3
ns
-
0.4
1
ns
Jitter specification for CAN
tjit(cc)(p-p)
cycle to cycle jitter
(peak-to-peak value)
on CAN TXDC pin
[3]
[1]
All parameters are guaranteed over the virtual junction temperature range by design. Pre-testing is performed at Tamb = 125 °C ambient
temperature on wafer level. Cased products are tested at Tamb = 25 °C (final testing). Both pre-testing and final testing use correlated
test conditions to cover the specified temperature and power supply voltage range.
[2]
See Table 24.
[3]
This parameter is not part of production testing or final testing, hence only a typical value is stated.
[4]
Oscillator start-up time depends on the quality of the crystal. For most crystals it takes about 1000 clock pulses until the clock is fully
stable.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
63 of 81
A
Conditions
R
Parameter
D
Symbol
FT
Table 32. Dynamic characteristics
VDD(CORE) = VDD(OSC_PLL); VDD(IO) = 2.7 V to 3.6 V; VDDA(ADC3V3) = 3.0 V to 3.6 V; all voltages are measured with respect to
ground; positive currents flow into the IC; unless otherwise specified.[1]
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
A
F
FT
FT
A
A
R
R
R
D
Parameter
Conditions
Max
Unit
tr
rise time
10 % to 90 %
8.5
-
13.8
ns
tf
fall time
10 % to 90 %
7.7
-
13.7
ns
tFRFM
differential rise and fall time
matching
tr / tf
-
-
109
%
VCRS
output signal crossover voltage
1.3
-
2.0
V
tFEOPT
source SE0 interval of EOP
see Figure 21
160
-
175
ns
tFDEOP
source jitter for differential transition
to SE0 transition
see Figure 21
−2
-
+5
ns
tJR1
receiver jitter to next transition
−18.5
-
+18.5
ns
tJR2
receiver jitter for paired transitions
10 % to 90 %
−9
-
+9
ns
tEOPR1
EOP width at receiver
must reject as
EOP; see
Figure 21
[1]
40
-
-
ns
tEOPR2
EOP width at receiver
must accept as
EOP; see
Figure 21
[1]
82
-
-
ns
D
Symbol
D
Typ
FT
Min
FT
A
A
R
R
D
Table 33. Dynamic characteristics: USB pins (full-speed)
CL = 50 pF; Rpu = 1.5 kΩ on D+ to VDD(3V3), unless otherwise specified.
D
D
D
9.2 USB interface
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
R
A
FT
D
R
A
[1]
Characterized but not implemented as production test. Guaranteed by design.
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 21. Differential data-to-EOP transition skew and EOP width
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
64 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
D
FT
FT
A
A
R
R
D
Table 34. Dynamic characteristic: I2C-bus pins
VDD(CORE) = VDD(OSC_PLL); VDD(IO) = 2.7 V to 3.6 V; VDDA(ADC3V3) = 3.0 V to 3.6 V; all voltages are measured with respect to
ground; positive currents flow into the IC; unless otherwise specified[1]
F
FT
FT
A
A
R
R
D
D
D
9.3 Dynamic characteristics: I2C-bus interface
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
Max
Unit
tf(o)
output fall time
VIH to VIL
20 + 0.1 × Cb[3]
-
-
ns
tr
rise time
<tbd>
<tbd>
<tbd>
tf
fall time
<tbd>
<tbd>
<tbd>
tBUF
bus free time between a STOP and
START condition
-
<tbd>
<tbd>
<tbd>
tLOW
LOW period of the SCL clock
-
<tbd>
<tbd>
<tbd>
tHD;STA
hold time (repeated) START
condition
-
<tbd>
<tbd>
<tbd>
tHIGH
HIGH period of the SCL clock
-
<tbd>
<tbd>
<tbd>
tSU;DAT
data set-up time
-
<tbd>
<tbd>
<tbd>
tSU;STA
set-up time for a repeated START
condition
-
<tbd>
<tbd>
<tbd>
tSU;STO
set-up time for STOP condition
-
<tbd>
<tbd>
<tbd>
R
Typ[2]
A
[1]
All parameters are guaranteed over the virtual junction temperature range by design. Pre-testing is performed at Tamb = 125 °C ambient
temperature on wafer level. Cased products are tested at Tamb = 25 °C (final testing). Both pre-testing and final testing use correlated
test conditions to cover the specified temperature and power supply voltage range.
[2]
Typical ratings are not guaranteed. The values listed are at room temperature (25 °C), nominal supply voltages.
[3]
Bus capacitance Cb in pF, from 10 pF to 400 pF.
SDA
t BUF
t LOW
tf
tr
t HD;STA
SCL
P
S
t HD;STA
P
S
t HD;STA
t HIGH
t SU;DAT
t SU;STA
t SU;STO
002aad985
Fig 22. I2C-bus pins clock timing
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
D
Min
FT
Conditions
A
Parameter
R
Symbol
65 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
D
FT
FT
A
A
R
R
D
Table 35. Dynamic characteristics of SPI pins
VDD(CORE) = VDD(OSC_PLL) ; VDD(IO) = 2.7 V to 3.6 V; VDDA(ADC3V3) = 3.0 V to 3.6 V; Tvj = -40 °C to +85 °C; all voltages are
measured with respect to ground; positive currents flow into the IC; unless otherwise specified.[1]
FT
A
A
R
R
D
D
D
9.4 Dynamic characteristics: SPI
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
MHz
slave operation
1⁄
-
1⁄ f
4 clk(spi)
MHz
SPI master
TSPICYC
SPI cycle time
-
<tbd>
<tbd>
<tbd>
ns
tSPICLKH
SPICLK HIGH time
-
<tbd>
<tbd>
<tbd>
ns
tSPICLKL
SPICLK LOW time
-
<tbd>
<tbd>
<tbd>
ns
tSPIDSU
SPI data set-up time
-
<tbd>
<tbd>
<tbd>
ns
tSPIDH
SPI data hold time
-
<tbd>
<tbd>
<tbd>
ns
tSPIQV
SPI data output valid time
-
<tbd>
<tbd>
<tbd>
ns
tSPIOH
SPI output data hold time
-
<tbd>
<tbd>
<tbd>
ns
SPI slave
-
TSPICYC
SPI cycle time
-
<tbd>
<tbd>
<tbd>
ns
tSPICLKH
SPICLK HIGH time
-
<tbd>
<tbd>
<tbd>
ns
tSPICLKL
SPICLK LOW time
-
<tbd>
<tbd>
<tbd>
ns
tSPIDSU
SPI data set-up time
-
<tbd>
<tbd>
<tbd>
ns
tSPIDH
SPI data hold time
-
<tbd>
<tbd>
<tbd>
ns
tSPIQV
SPI data output valid time
-
<tbd>
<tbd>
<tbd>
ns
tSPIOH
SPI output data hold time
-
<tbd>
<tbd>
<tbd>
ns
[1]
All parameters are guaranteed over the virtual junction temperature range by design. Pre-testing is performed at Tamb = 125 °C ambient
temperature on wafer level. Cased products are tested at Tamb = 25 °C (final testing). Both pre-testing and final testing use correlated
test conditions to cover the specified temperature and power supply voltage range.
tSPICLK
tSPICLKH
tSPICLKL
SCK (CPOL = 0)
SCK (CPOL = 1)
tSPIOH
tSPIQV
MOSI
DATA VALID
DATA VALID
tSPIDSU
MISO
DATA VALID
tSPIDH
DATA VALID
002aad986
Fig 23.
SPI master timing (CPHA = 1)
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
66 of 81
A
65024fclk(spi)
R
Unit
1⁄ f
2 clk(spi)
D
Max
-
65024fclk(spi)
D
Typ
1⁄
FT
Min
master operation
A
Conditions
SPI operating frequency
R
Parameter
D
Symbol
fSPI
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
tSPICLKL
FT
FT
FT
FT
tSPICLKH
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
tSPICLK
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
SCK (CPOL = 0)
D
D
R
A
FT
D
SCK (CPOL = 1)
R
MOSI
DATA VALID
tSPIDSU
MISO
DATA VALID
A
tSPIOH
tSPIQV
DATA VALID
tSPIDH
DATA VALID
002aad987
Fig 24.
SPI master timing (CPHA = 0)
tSPICLK
tSPICLKH
tSPICLKL
tSPIDSU
tSPIDH
SCK (CPOL = 0)
SCK (CPOL = 1)
MOSI
DATA VALID
DATA VALID
tSPIOH
tSPIQV
MISO
DATA VALID
DATA VALID
002aad988
Fig 25.
SPI slave timing (CPHA = 1)
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
67 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
tSPICLKL
FT
FT
FT
FT
tSPICLKH
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
tSPICLK
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
SCK (CPOL = 0)
D
D
R
A
FT
D
SCK (CPOL = 1)
R
MOSI
DATA VALID
tSPIDH
DATA VALID
tSPIQV
MISO
DATA VALID
A
tSPIDSU
tSPIOH
DATA VALID
002aad989
Fig 26.
SPI slave timing (CPHA = 0)
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
68 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
D
FT
FT
A
A
R
R
D
Table 36. Flash characteristics
VDD(CORE) = VDD(OSC_PLL); VDD(IO) = 2.7 V to 3.6 V; VDDA(ADC3V3) = 3.0 V to 3.6 V; all voltages are measured with respect to
ground.[1]
F
FT
FT
A
A
R
R
D
D
D
9.5 Dynamic characteristics: flash memory
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
Typ
Max
Unit
10,000
<tbd>
<tbd>
cycles
tret
retention time
average Tamb = 85 °C
10
<tbd>
20
years
tprog
programming time
word
-
<tbd>
<tbd>
μs
ter
erase time
page
-
<tbd>
<tbd>
ms
global
-
<tbd>
<tbd>
ms
sector
95
100
105
ms
R
Min
number of
program/erase cycles
A
tinit
initialization time
-
-
150
μs
twr(pg)
page write time
0.95
1
1.05
ms
tfl(BIST)
flash word BIST time
-
38
70
ns
ta(clk)
clock access time
-
-
63.4
ns
ta(A)
address access time
-
-
60.3
ns
[1]
All parameters are guaranteed over the virtual junction temperature range by design. Pre-testing is performed at Tamb = 125 °C ambient
temperature on wafer level. Cased products are tested at Tamb = 25 °C (final testing). Both pre-testing and final testing use correlated
test conditions to cover the specified temperature and power supply voltage range.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
D
Conditions
endurance
FT
Parameter
A
Symbol
Nendu
69 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
9.6 Dynamic characteristics: ADC1/2
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
Table 37. ADC dynamic characteristics
VDD(CORE) = VDD(OSC_PLL); VDD(IO) = 2.7 V to 3.6 V; VDDA(ADC3V3) = 3.0 V to 3.6 V; all voltages are measured with respect to
ground.[1]
D
D
R
Max
Unit
ADC input frequency
4
-
4.5
MHz
fs(max)
maximum sampling rate
resolution 2 bit
-
-
1500
ksampl
e/s
resolution 10 bit
-
-
400
ksampl
e/s
conversion time
In number of ADC
clock cycles
3
-
11
cycles
In number of bits
2
-
10
bits
fi(ADC) = 4.5 MHz;
fs = fi(ADC)/(n + 1) with
n = resolution
[1]
All parameters are guaranteed over the virtual junction temperature range by design. Pre-testing is performed at Tamb = 125 °C ambient
temperature on wafer level. Cased products are tested at Tamb = 25 °C (final testing). Both pre-testing and final testing use correlated
test conditions to cover the specified temperature and power supply voltage range.
[2]
Duty cycle clock should be as close as possible to 50 %.
10. Application information
10.1 Operating frequency selection
002aae194
145
core
frequency
(MHz)
135
VDD(CORE) = 1.95 V
VDD(CORE) = 1.8 V
125
VDD(CORE) = 1.65 V
115
105
25
45
65
85
temperature (°C)
Fig 27. LPC29xx core operating frequency versus temperature for different core
voltages.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
70 of 81
A
Typ
R
fi(ADC)
tconv
Min
[2]
D
Conditions
FT
Parameter
A
Symbol
D
D
R
R
R
R
R
D
D
D
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
D
D
R
A
25 °C
45 °C
FT
D
R
65 °C
85 °C
A
125
FT
FT
FT
FT
core
frequency
(MHz)
135
A
A
A
A
R
R
D
D
D
002aae193
145
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
115
105
1.65
1.75
1.85
1.95
core voltage (V)
Fig 28. LPC29xx core operating frequency versus core voltage for different temperatures
10.2 Suggested USB interface solutions
VDD(IO)
USB_UP_LED
USB_CONNECT
LPC29xx
soft-connect switch
R1
1.5 kΩ
USB_VBUS
USB_D+ RS = 33 Ω
USB_D−
USB-B
connector
RS = 33 Ω
VSS(IO)
002aae149
Fig 29. LPC2921/2923/2925 USB interface on a self-powered device
LPC2921_2923_2925_0
Preliminary data sheet
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
71 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
VDD(IO)
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
D
D
R
A
FT
R
R1
1.5 kΩ
A
USB_UP_LED
D
R2
LPC29xx
USB_VBUS
USB_D+ RS = 33 Ω
USB-B
connector
USB_D− RS = 33 Ω
VSS(IO)
002aae150
Fig 30. LPC2921/2923/2925 USB interface on a bus-powered device
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
72 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
11. Package outline
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
LQFP100: plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm
SOT407-1
D
D
R
A
FT
D
R
A
c
y
X
A
51
75
50
76
ZE
e
E HE
A A2
(A 3)
A1
w M
θ
bp
Lp
pin 1 index
L
100
detail X
26
1
25
ZD
e
v M A
w M
bp
D
B
HD
v M B
0
5
10 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.15
0.05
1.45
1.35
0.25
0.27
0.17
0.20
0.09
14.1
13.9
14.1
13.9
0.5
HD
HE
16.25 16.25
15.75 15.75
L
Lp
v
w
y
1
0.75
0.45
0.2
0.08
0.08
Z D (1) Z E (1)
1.15
0.85
1.15
0.85
θ
7o
o
0
Note
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
REFERENCES
OUTLINE
VERSION
IEC
JEDEC
SOT407-1
136E20
MS-026
JEITA
EUROPEAN
PROJECTION
ISSUE DATE
00-02-01
03-02-20
Fig 31. Package outline (LQFP100)
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
73 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
12. Soldering of SMD packages
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
FT
FT
A
A
R
R
D
This text provides a very brief insight into a complex technology. A more in-depth account
of soldering ICs can be found in Application Note AN10365 “Surface mount reflow
soldering description”.
D
D
R
A
FT
D
R
12.1 Introduction to soldering
A
Soldering is one of the most common methods through which packages are attached to
Printed Circuit Boards (PCBs), to form electrical circuits. The soldered joint provides both
the mechanical and the electrical connection. There is no single soldering method that is
ideal for all IC packages. Wave soldering is often preferred when through-hole and
Surface Mount Devices (SMDs) are mixed on one printed wiring board; however, it is not
suitable for fine pitch SMDs. Reflow soldering is ideal for the small pitches and high
densities that come with increased miniaturization.
12.2 Wave and reflow soldering
Wave soldering is a joining technology in which the joints are made by solder coming from
a standing wave of liquid solder. The wave soldering process is suitable for the following:
• Through-hole components
• Leaded or leadless SMDs, which are glued to the surface of the printed circuit board
Not all SMDs can be wave soldered. Packages with solder balls, and some leadless
packages which have solder lands underneath the body, cannot be wave soldered. Also,
leaded SMDs with leads having a pitch smaller than ~0.6 mm cannot be wave soldered,
due to an increased probability of bridging.
The reflow soldering process involves applying solder paste to a board, followed by
component placement and exposure to a temperature profile. Leaded packages,
packages with solder balls, and leadless packages are all reflow solderable.
Key characteristics in both wave and reflow soldering are:
•
•
•
•
•
•
Board specifications, including the board finish, solder masks and vias
Package footprints, including solder thieves and orientation
The moisture sensitivity level of the packages
Package placement
Inspection and repair
Lead-free soldering versus SnPb soldering
12.3 Wave soldering
Key characteristics in wave soldering are:
• Process issues, such as application of adhesive and flux, clinching of leads, board
transport, the solder wave parameters, and the time during which components are
exposed to the wave
• Solder bath specifications, including temperature and impurities
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
74 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
A
A
R
R
D
Key characteristics in reflow soldering are:
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
12.4 Reflow soldering
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
FT
FT
• Lead-free versus SnPb soldering; note that a lead-free reflow process usually leads to
D
D
R
A
heated to the peak temperature) and cooling down. It is imperative that the peak
temperature is high enough for the solder to make reliable solder joints (a solder paste
characteristic). In addition, the peak temperature must be low enough that the
packages and/or boards are not damaged. The peak temperature of the package
depends on package thickness and volume and is classified in accordance with
Table 38 and 39
Table 38.
SnPb eutectic process (from J-STD-020C)
Package thickness (mm)
Package reflow temperature (°C)
Volume (mm3)
< 350
≥ 350
< 2.5
235
220
≥ 2.5
220
220
Table 39.
Lead-free process (from J-STD-020C)
Package thickness (mm)
Package reflow temperature (°C)
Volume (mm3)
< 350
350 to 2000
> 2000
< 1.6
260
260
260
1.6 to 2.5
260
250
245
> 2.5
250
245
245
Moisture sensitivity precautions, as indicated on the packing, must be respected at all
times.
Studies have shown that small packages reach higher temperatures during reflow
soldering, see Figure 32.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
75 of 81
A
• Reflow temperature profile; this profile includes preheat, reflow (in which the board is
R
window for a mix of large and small components on one board
D
• Solder paste printing issues including smearing, release, and adjusting the process
FT
higher minimum peak temperatures (see Figure 32) than a SnPb process, thus
reducing the process window
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
FT
FT
A
A
R
R
D
maximum peak temperature
= MSL limit, damage level
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
temperature
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
A
FT
minimum peak temperature
= minimum soldering temperature
D
R
A
peak
temperature
time
001aac844
MSL: Moisture Sensitivity Level
Fig 32. Temperature profiles for large and small components
For further information on temperature profiles, refer to Application Note AN10365
“Surface mount reflow soldering description”.
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
76 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
A
FT
SCU Function Select Port x,y (use without the P if there are no x,y)
SCL
Slot Control List
BEL
Buffer Entry List
CCO
Current Controlled Oscillator
D
SFSP
R
A
ARM Peripheral Bus
D
R
Device Transaction Level
APB
14. References
[1]
UM — LPC2921/2923/2925 user manual
[2]
ARM — ARM web site
[3]
ARM-SSP — ARM primecell synchronous serial port (PL022) technical reference
manual
[4]
CAN — ISO 11898-1: 2002 road vehicles - Controller Area Network (CAN) - part 1:
data link layer and physical signalling
[5]
LIN — LIN specification package, revision 2.0
LPC2921_2923_2925_0
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
F
D
DTL
Universal Asynchronous Receiver Transmitter
FT
FT
Complex Instruction Set Computers
UART
A
A
CISC
Built-In Self Test
R
R
Buffer Descriptor List
Reduced Instruction Set Computer
D
D
Buffer Control List
BDL
RISC
A
FT
FT
BCL
BIST
R
A
A
Advanced High-performance Bus
D
R
R
AHB
R
A
D
D
Description
D
R
FT
FT
A
A
R
R
D
D
D
Abbreviations list
Abbreviation
FT
FT
FT
FT
Table 40.
A
A
A
A
R
R
D
D
D
13. Abbreviations
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Preliminary data sheet
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
77 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
FT
FT
FT
FT
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
D
D
D
Preliminary data sheet
FT
<tbd>
Supersedes
A
LPC2921_2923_2925_0.
01
Change notice
R
Data sheet status
D
Release date
FT
Document ID
FT
A
A
R
R
D
Revision history
A
A
A
A
R
R
D
D
D
15. Revision history
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
Table 41.
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
R
A
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
78 of 81
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
F
D
FT
FT
A
A
R
R
D
16.1 Data sheet status
A
FT
FT
A
A
R
R
D
D
D
16. Legal information
FT
FT
FT
FT
FT
LPC2921/2923/2925
NXP Semiconductors
D
D
R
Document status[1][2]
Product status[3]
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.
Product [short] data sheet
Production
This document contains the product specification.
A
Definition
FT
D
R
A
[1]
Please consult the most recently issued document before initiating or completing a design.
[2]
The term ‘short data sheet’ is explained in section “Definitions”.
[3]
The product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple devices. The latest product status
information is available on the Internet at URL http://www.nxp.com.
16.2 Definitions
Draft — The document is a draft version only. The content is still under
internal review and subject to formal approval, which may result in
modifications or additions. NXP Semiconductors does not give any
representations or warranties as to the accuracy or completeness of
information included herein and shall have no liability for the consequences of
use of such information.
Short data sheet — A short data sheet is an extract from a full data sheet
with the same product type number(s) and title. A short data sheet is intended
for quick reference only and should not be relied upon to contain detailed and
full information. For detailed and full information see the relevant full data
sheet, which is available on request via the local NXP Semiconductors sales
office. In case of any inconsistency or conflict with the short data sheet, the
full data sheet shall prevail.
16.3 Disclaimers
General — Information in this document is believed to be accurate and
reliable. However, NXP Semiconductors does not give any representations or
warranties, expressed or implied, as to the accuracy or completeness of such
information and shall have no liability for the consequences of use of such
information.
Right to make changes — NXP Semiconductors reserves the right to make
changes to information published in this document, including without
limitation specifications and product descriptions, at any time and without
notice. This document supersedes and replaces all information supplied prior
to the publication hereof.
Suitability for use — NXP Semiconductors products are not designed,
authorized or warranted to be suitable for use in medical, military, aircraft,
space or life support equipment, nor in applications where failure or
malfunction of an NXP Semiconductors product can reasonably be expected
to result in personal injury, death or severe property or environmental
damage. NXP Semiconductors accepts no liability for inclusion and/or use of
NXP Semiconductors products in such equipment or applications and
therefore such inclusion and/or use is at the customer’s own risk.
Applications — Applications that are described herein for any of these
products are for illustrative purposes only. NXP Semiconductors makes no
representation or warranty that such applications will be suitable for the
specified use without further testing or modification.
Limiting values — Stress above one or more limiting values (as defined in
the Absolute Maximum Ratings System of IEC 60134) may cause permanent
damage to the device. Limiting values are stress ratings only and operation of
the device at these or any other conditions above those given in the
Characteristics sections of this document is not implied. Exposure to limiting
values for extended periods may affect device reliability.
Terms and conditions of sale — NXP Semiconductors products are sold
subject to the general terms and conditions of commercial sale, as published
at http://www.nxp.com/profile/terms, including those pertaining to warranty,
intellectual property rights infringement and limitation of liability, unless
explicitly otherwise agreed to in writing by NXP Semiconductors. In case of
any inconsistency or conflict between information in this document and such
terms and conditions, the latter will prevail.
No offer to sell or license — Nothing in this document may be interpreted or
construed as an offer to sell products that is open for acceptance or the grant,
conveyance or implication of any license under any copyrights, patents or
other industrial or intellectual property rights.
16.4 Trademarks
Notice: All referenced brands, product names, service names and trademarks
are the property of their respective owners.
GoodLink — is a trademark of NXP B.V.
I2C-bus — logo is a trademark of NXP B.V.
SoftConnect — is a trademark of NXP B.V.
17. Contact information
For more information, please visit: http://www.nxp.com
For sales office addresses, please send an email to: [email protected]
LPC2921_2923_2925_0
Preliminary data sheet
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
79 of 81
D
D
R
R
R
R
R
D
D
D
D
R
R
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
FT
FT
A
D
D
R
A
D
R
A
80 of 81
FT
40
© NXP B.V. 2008. All rights reserved.
Rev. 00.01 — 24 October 2008
R
R
23
23
24
24
24
25
25
25
26
26
26
27
27
28
28
28
28
29
29
29
29
29
30
30
30
31
31
31
34
34
34
35
35
36
36
37
38
38
38
39
39
39
39
39
40
40
continued >>
Preliminary data sheet
F
D
D
Peripheral subsystem clock description. . . . .
Watchdog timer . . . . . . . . . . . . . . . . . . . . . . .
Functional description . . . . . . . . . . . . . . . . . .
Clock description . . . . . . . . . . . . . . . . . . . . . .
Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
Clock description . . . . . . . . . . . . . . . . . . . . . .
UARTs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
Clock description . . . . . . . . . . . . . . . . . . . . . .
Serial peripheral interface (SPI). . . . . . . . . . .
Functional description . . . . . . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
Clock description . . . . . . . . . . . . . . . . . . . . . .
General-purpose I/O . . . . . . . . . . . . . . . . . . .
Functional description . . . . . . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
Clock description . . . . . . . . . . . . . . . . . . . . . .
Networking subsystem. . . . . . . . . . . . . . . . . .
CAN gateway . . . . . . . . . . . . . . . . . . . . . . . . .
Global acceptance filter . . . . . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
LIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
I2C-bus serial I/O controllers . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
Modulation and sampling control subsystem .
Functional description . . . . . . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
Clock description . . . . . . . . . . . . . . . . . . . . . .
Analog-to-digital converter . . . . . . . . . . . . . . .
Functional description . . . . . . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
Clock description . . . . . . . . . . . . . . . . . . . . . .
Pulse Width Modulator (PWM). . . . . . . . . . . .
Functional description . . . . . . . . . . . . . . . . . .
Synchronizing the PWM counters . . . . . . . . .
Master and slave mode . . . . . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
Clock description . . . . . . . . . . . . . . . . . . . . . .
Timers in the MSCSS. . . . . . . . . . . . . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
Clock description . . . . . . . . . . . . . . . . . . . . . .
Quadrature Encoder Interface (QEI) . . . . . . .
Pin description . . . . . . . . . . . . . . . . . . . . . . . .
Clock description . . . . . . . . . . . . . . . . . . . . . .
Power, clock, and Reset control Sub System
(PCRSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LPC2921_2923_2925_0
A
FT
FT
A
A
R
R
D
D
D
6.12.1
6.12.2
6.12.2.1
6.12.2.2
6.12.3
6.12.3.1
6.12.3.2
6.12.4
6.12.4.1
6.12.4.2
6.12.5
6.12.5.1
6.12.5.2
6.12.5.3
6.12.6
6.12.6.1
6.12.6.2
6.12.6.3
6.13
6.13.1
6.13.1.1
6.13.1.2
6.13.2
6.13.2.1
6.13.3
6.13.3.1
6.14
6.14.1
6.14.2
6.14.3
6.14.4
6.14.4.1
6.14.4.2
6.14.4.3
6.14.5
6.14.5.1
6.14.5.2
6.14.5.3
6.14.5.4
6.14.5.5
6.14.6
6.14.6.1
6.14.6.2
6.14.7
6.14.7.1
6.14.7.2
6.15
FT
FT
FT
FT
General description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Ordering information . . . . . . . . . . . . . . . . . . . . . 3
Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Pinning information . . . . . . . . . . . . . . . . . . . . . . 5
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5
General description . . . . . . . . . . . . . . . . . . . . . 5
LQFP100 pin assignment . . . . . . . . . . . . . . . . . 5
Functional description . . . . . . . . . . . . . . . . . . . 9
Architectural overview . . . . . . . . . . . . . . . . . . . 9
ARM968E-S processor . . . . . . . . . . . . . . . . . . . 9
On-chip flash memory system . . . . . . . . . . . . 10
On-chip static RAM. . . . . . . . . . . . . . . . . . . . . 10
Memory map. . . . . . . . . . . . . . . . . . . . . . . . . . 11
Reset, debug, test, and power description . . . 12
Reset and power-up behavior . . . . . . . . . . . . 12
Reset strategy . . . . . . . . . . . . . . . . . . . . . . . . 12
IEEE 1149.1 interface pins (JTAG boundary-scan
test). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6.6.3.1
ETM/ETB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6.6.4
Power supply pins . . . . . . . . . . . . . . . . . . . . . 13
6.7
Clocking strategy . . . . . . . . . . . . . . . . . . . . . . 13
6.7.1
Clock architecture . . . . . . . . . . . . . . . . . . . . . . 13
6.7.2
Base clock and branch clock relationship. . . . 14
6.8
Flash memory controller . . . . . . . . . . . . . . . . . 16
6.8.1
Functional description. . . . . . . . . . . . . . . . . . . 17
6.8.2
Flash layout . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.8.3
Flash bridge wait-states . . . . . . . . . . . . . . . . . 19
6.8.4
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 19
6.8.5
Clock description . . . . . . . . . . . . . . . . . . . . . . 19
6.8.6
EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.9
General Purpose DMA (GPDMA) controller . . 19
6.9.1
DMA support for peripherals. . . . . . . . . . . . . . 20
6.9.2
Clock description . . . . . . . . . . . . . . . . . . . . . . 20
6.10
USB interface . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.10.1
USB device controller . . . . . . . . . . . . . . . . . . . 20
6.10.2
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 21
6.10.3
Clock description . . . . . . . . . . . . . . . . . . . . . . 21
6.11
General subsystem. . . . . . . . . . . . . . . . . . . . . 22
6.11.1
General subsystem clock description . . . . . . . 22
6.11.2
Chip and feature identification . . . . . . . . . . . . 22
6.11.3
System Control Unit (SCU). . . . . . . . . . . . . . . 22
6.11.4
Event router . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6.11.4.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 23
6.12
Peripheral subsystem . . . . . . . . . . . . . . . . . . . 23
A
A
A
A
R
R
D
D
D
18. Contents
FT
FT
FT
FT
FT
ARM9 microcontroller with CAN and LIN
1
2
3
3.1
4
5
5.1
5.2
5.2.1
5.2.2
6
6.1
6.2
6.3
6.4
6.5
6.6
6.6.1
6.6.2
6.6.3
A
A
A
A
A
LPC2921/2923/2925
NXP Semiconductors
D
D
R
R
R
R
R
D
D
D
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
ARM9 microcontroller with CAN and LIN
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
6.15.1
Clock description . . . . . . . . . . . . . . . . . . . . . . 41
6.15.2
Clock Generation Unit (CGU0) . . . . . . . . . . . . 42
6.15.2.1 Functional description. . . . . . . . . . . . . . . . . . . 42
6.15.2.2 PLL functional description . . . . . . . . . . . . . . . 45
6.15.2.3 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 46
6.15.3
Clock generation for USB (CGU1) . . . . . . . . . 46
6.15.3.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 47
6.15.4
Reset Generation Unit (RGU). . . . . . . . . . . . . 47
6.15.4.1 Functional description. . . . . . . . . . . . . . . . . . . 47
6.15.4.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 48
6.15.5
Power Management Unit (PMU). . . . . . . . . . . 48
6.15.5.1 Functional description. . . . . . . . . . . . . . . . . . . 49
6.16
Vectored interrupt controller . . . . . . . . . . . . . . 51
6.16.1
Functional description. . . . . . . . . . . . . . . . . . . 51
6.16.2
Clock description . . . . . . . . . . . . . . . . . . . . . . 52
7
Limiting values. . . . . . . . . . . . . . . . . . . . . . . . . 53
8
Static characteristics. . . . . . . . . . . . . . . . . . . . 55
8.1
Power consumption . . . . . . . . . . . . . . . . . . . . 59
8.2
Electrical pin characteristics . . . . . . . . . . . . . . 60
9
Dynamic characteristics . . . . . . . . . . . . . . . . . 63
9.1
Dynamic characteristics: I/O pins, internal clock,
oscillators, PLL, and CAN. . . . . . . . . . . . . . . . 63
9.2
USB interface . . . . . . . . . . . . . . . . . . . . . . . . . 64
9.3
Dynamic characteristics: I2C-bus interface. . . 65
9.4
Dynamic characteristics: SPI . . . . . . . . . . . . . 66
9.5
Dynamic characteristics: flash memory . . . . . 69
9.6
Dynamic characteristics: ADC1/2 . . . . . . . . . 70
10
Application information. . . . . . . . . . . . . . . . . . 70
10.1
Operating frequency selection . . . . . . . . . . . . 70
10.2
Suggested USB interface solutions . . . . . . . . 71
11
Package outline . . . . . . . . . . . . . . . . . . . . . . . . 73
12
Soldering of SMD packages . . . . . . . . . . . . . . 74
12.1
Introduction to soldering . . . . . . . . . . . . . . . . . 74
12.2
Wave and reflow soldering . . . . . . . . . . . . . . . 74
12.3
Wave soldering . . . . . . . . . . . . . . . . . . . . . . . . 74
12.4
Reflow soldering . . . . . . . . . . . . . . . . . . . . . . . 75
13
Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . 77
14
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
15
Revision history . . . . . . . . . . . . . . . . . . . . . . . . 78
16
Legal information. . . . . . . . . . . . . . . . . . . . . . . 79
16.1
Data sheet status . . . . . . . . . . . . . . . . . . . . . . 79
16.2
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
16.3
Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
16.4
Trademarks. . . . . . . . . . . . . . . . . . . . . . . . . . . 79
17
Contact information. . . . . . . . . . . . . . . . . . . . . 79
18
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
FT
FT
FT
FT
LPC2921/2923/2925
FT
NXP Semiconductors
D
FT
FT
A
A
R
R
D
D
D
R
A
FT
D
R
A
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. 2008.
All rights reserved.
For more information, please visit: http://www.nxp.com
For sales office addresses, please send an email to: [email protected]
Date of release: 24 October 2008
Document identifier: LPC2921_2923_2925_0