Sign In
Upload
Manuals
Brands
NXP Semiconductors Manuals
Microcontrollers
LPC2919/01
NXP Semiconductors LPC2919/01 Manuals
Manuals and User Guides for NXP Semiconductors LPC2919/01. We have
2
NXP Semiconductors LPC2919/01 manuals available for free PDF download: User Manual
NXP Semiconductors LPC2919/01 User Manual (566 pages)
Brand:
NXP Semiconductors
| Category:
Microcontrollers
| Size: 3 MB
Table of Contents
Chapter 1: Lpc29Xx Introductory Information
3
Introduction
3
About this User Manual
3
General Features
3
Ordering Information
5
Ordering Options
6
Comparison with LPC2917/19 Devices
6
Lpc29Xx USB Options
7
Block Diagram
8
Functional Blocks
13
Architectural Overview
14
ARM968E-S Processor
14
On-Chip Flash Memory System
15
On-Chip Static RAM
15
Chapter 2: Lpc29Xx Memory Mapping
16
How to Read this Chapter
16
Memory-Map View of the AHB
16
Memory-Map Regions
17
Region 0: Tcm/Shadow Area
19
Region 1: Embedded Flash Area
20
Region 2: External Static Memory Area
20
Region 3: External Static Memory Controller Area
20
Region 4: Internal SRAM Area
20
Regions 5 and 6
21
Region 7: Bus-Peripherals Area
21
Memory-Map Operating Concepts
21
Chapter 3: Lpc29Xx Clock Generation Unit (CGU)
24
How to Read this Chapter
24
Introduction
24
CGU0 Functional Description
25
Controlling the XO50M Oscillator (External Oscillator)
28
Controlling the PL160M PLL
28
Controlling the Frequency Dividers
30
Controlling the Clock Output
30
Reading the Control Settings
30
Frequency Monitor
30
Clock Detection
31
Bus Disable
31
Clock-Path Programming
31
CGU1 Functional Description
31
Register Overview
32
Frequency Monitor Register
35
Clock Detection Register
36
Crystal-Oscillator Status Register (CGU0)
38
Crystal Oscillator Control Register (CGU0)
38
PLL Status Register (CGU0 and CGU1)
39
PLL Control Register (CGU0 and CGU1)
39
Post-Divider Ratio Programming
39
Feedback-Divider Ratio Programming
39
Frequency Selection, Mode 1 (Normal Mode)
40
Frequency Selection, Mode 2 (Direct CCO Mode)
40
Frequency Divider Status Register
42
Frequency Divider Configuration Register
42
Output-Clock Status Register for BASE_SAFE_CLK and BASE_PCR_CLK
43
Output-Clock Configuration Register for BASE_SAFE_CLK and BASE_PCR_CLK
43
Output-Clock Status Register for CGU0 Clocks
44
Output-Clock Configuration Register for CGU0 Clocks
44
Output-Clock Status Register for CGU1 Clocks
45
Output-Clock Configuration Register for CGU1 Clocks
46
Bus Disable Register
46
CGU0 Interrupt Bit Description
47
Chapter 4 : Lpc29Xx Reset Generation Unit (RGU)
48
How to Read this Chapter
48
Introduction
48
RGU Functional Description
48
Reset Hierarchy
49
Register Overview
50
RGU Reset Control Register
51
RGU Reset Status Register
52
RGU Reset Active Status Register
58
RGU Reset Source Registers
59
POR Reset
59
RGU Reset
59
PCR Reset
59
Cold Reset
60
Peripherals Activated by Cold Reset
60
Peripherals Activated by Warm Reset
60
RGU Bus-Disable Register
61
Chapter 5: Lpc29Xx Power Management Unit (PMU)
62
How to Read this Chapter
62
Introduction
62
PMU Functional Description
62
PMU Clock-Branch Run Mode
64
PMU Clock Branch Overview
65
Register Overview
65
Power Mode Register (PM)
70
Base-Clock Status Register
70
PMU Clock Configuration Register for Output Branches
71
Status Register for Output Branch Clock
71
Chapter 6: Lpc29Xx System Control Unit (SCU)
73
How to Read this Chapter
73
Introduction
73
Register Overview
73
SCU Port Function Select Registers
74
Functional Description
78
JTAG Security Registers
79
Shadow Memory Mapping Registers
79
AHB Master Priority Registers
80
Chapter 7: Lpc29Xx Chip Feature ID (CFID)
81
Introduction
81
Register Overview
81
Chapter 8: Lpc29Xx Event Router
83
How to Read this Chapter
83
Event Router Functional Description
83
Event Router Pin Connections
84
Register Overview
85
Event Status Register
85
Event-Status Clear Register
86
Event-Status Set Register
86
Event Enable Register
86
Event-Enable Clear Register
87
Event-Enable Set Register
87
Activation Polarity Register
88
Activation Type Register
88
Raw Status Register
88
Chapter 9: Lpc29Xx Vectored Interrupt Controller (VIC)
90
How to Read this Chapter
90
VIC Functional Description
90
Non-Nested Interrupt Service Routine
92
Nested Interrupt Service Routine
92
VIC Programming Example
92
Register Overview
93
Interrupt Priority Mask Register
95
Interrupt Vector Register
96
Interrupt-Pending Register 1
97
Interrupt-Pending Register 2
98
Interrupt Controller Features Register
98
Interrupt Request Register
99
Chapter 10: Lpc29Xx General System Control
103
How to Read this Chapter
103
Introduction
103
Power Modes
103
Reset and Power-Up Behavior
104
Functional Description of the Interrupt and Wake-Up Structure
104
Interrupt Device Architecture
105
Interrupt Registers
106
Interrupt Clear-Enable Register
107
Interrupt Set-Enable Register
107
Interrupt Status Register
107
Interrupt Enable Register
107
Interrupt Clear-Status Register
107
Interrupt Set-Status Register
108
ISR Functional Description
108
ESR Functional Description
108
Wake-Up
109
Chapter 11 : Lpc29Xx Pin Configuration
111
How to Read this Chapter
111
LPC2917/19/01 Pinning Information
111
LPC2921/23/25 Pin Configuration
118
LPC2927/29 Pin Configuration
122
LPC2930/30 Pin Configuration
129
LPC2930 Boot Control
137
Chapter 12: Lpc29Xx External Static Memory Controller (SMC)
140
How to Read this Chapter
140
SMC Functional Description
140
External Memory Interface
141
Register Overview
146
Bank Idle-Cycle Control Registers
148
Bank Wait-State 1 Control Registers
149
Bank Wait-State 2 Control Registers
149
Bank Output Enable Assertion-Delay Control Register
150
Bank Write-Enable Assertion-Delay Control Register 151 Bank Configuration Register
151
Bank Status Register
153
Chapter 13: Lpc29Xx USB Device
154
How to Read this Chapter
154
Introduction
154
Features
155
Fixed Endpoint Configuration
155
Functional Description
156
Analog Transceiver
157
Serial Interface Engine (SIE)
157
Endpoint RAM (EP_RAM)
157
EP_RAM Access Control
157
DMA Engine and Bus Master Interface
157
Register Interface
157
Softconnect
157
Goodlink
158
Operational Overview
158
Pin Description
158
Clocking and Power Management
159
Power Requirements
159
Clocks
159
Power Management Support
159
Remote Wake-Up
160
Register Overview
160
Clock Control Registers
162
USB Clock Control Register (Usbclkctrl - 0Xe010 0FF4)
162
USB Clock Status Register (Usbclkst - 0Xe010 0FF8)
162
Device Interrupt Registers
163
USB Device Interrupt Status Register (Usbdevintst - 0Xe010 0200)
163
USB Device Interrupt Enable Register (Usbdevinten - 0Xe010 0204)
164
USB Device Interrupt Clear Register (Usbdevintclr - 0Xe010 0208)
164
USB Device Interrupt Set Register (Usbdevintset - 0Xe010 020C)
165
USB Device Interrupt Priority Register (Usbdevintpri - 0Xe010 022C)
165
Endpoint Interrupt Registers
166
USB Endpoint Interrupt Status Register (Usbepintst - 0Xe010 0230)
166
USB Endpoint Interrupt Enable Register (Usbepinten - 0Xe010 0234)
167
USB Endpoint Interrupt Clear Register (Usbepintclr - 0Xe010 0238)
168
USB Endpoint Interrupt Set Register (Usbepintset - 0Xe010 023C)
169
USB Endpoint Interrupt Priority Register (Usbepintpri - 0Xe010 0240)
169
Endpoint Realization Registers
170
EP RAM Requirements
170
USB Realize Endpoint Register (Usbreep - 0Xe010 0244)
170
USB Endpoint Index Register (Usbepin - 0Xe010 0248)
172
USB Maxpacketsize Register (Usbmaxpsize - 0Xe010 024C)
172
USB Transfer Registers
172
USB Receive Data Register (Usbrxdata - 0Xe010 0218)
173
USB Receive Packet Length Register (Usbrxplen - 0Xe010 0220)
173
USB Transmit Data Register (Usbtxdata - 0Xe010 021C)
173
USB Transmit Packet Length Register (Usbtxplen - 0Xe010 0224)
174
USB Control Register (Usbctrl - 0Xe010 0228)
174
SIE Command Code Registers
175
USB Command Code Register (Usbcmdcode - 0Xe010 0210)
175
USB Command Data Register (Usbcmddata - 0Xe010 0214)
175
DMA Registers
176
USB DMA Request Status Register (Usbdmarst - 0Xe010 0250)
176
USB DMA Request Clear Register (Usbdmarclr - 0Xe010 0254)
176
USB DMA Request Set Register (Usbdmarset - 0Xe010 0258)
177
USB UDCA Head Register (USBUDCAH - 0Xe010 0280)
178
USB EP DMA Status Register (Usbepdmast - 0Xe010 0284)
178
USB EP DMA Enable Register (Usbepdmaen - 0Xe010 0288)
178
USB EP DMA Disable Register (Usbepdmadis - 0Xe010 028C)
179
USB DMA Interrupt Status Register (Usbdmaintst - 0Xe010 0290)
179
USB DMA Interrupt Enable Register (Usbdmainten - 0Xe010 0294)
179
USB End of Transfer Interrupt Status Register (Usbeotintst - 0Xe010 02A0)
180
USB End of Transfer Interrupt Clear Register (Usbeotintclr - 0Xe010 02A4)
180
USB End of Transfer Interrupt Set Register (Usbeotintset - 0Xe010 02A8)
181
USB New DD Request Interrupt Status Register (Usbnddrintst - 0Xe010 02AC)
181
USB New DD Request Interrupt Clear Register (Usbnddrintclr - 0Xe010 02B0)
181
USB New DD Request Interrupt Set Register (Usbnddrintset - 0Xe010 02B4)
181
USB System Error Interrupt Status Register (Usbsyserrintst - 0Xe010 02B8)
182
USB System Error Interrupt Clear Register (Usbsyserrintclr - 0Xe010 02BC)
182
USB System Error Interrupt Set Register (Usbsyserrintset - 0Xe010 02C0)
182
Interrupt Handling
183
Slave Mode
183
DMA Mode
183
Serial Interface Engine Command Description
186
Set Address (Command: 0Xd0, Data: Write 1 Byte)
187
Configure Device (Command: 0Xd8, Data: Write 1 Byte)
187
Set Mode (Command: 0Xf3, Data: Write 1 Byte)
188
Read Current Frame Number (Command: 0Xf5, 14.6.3 Data: Read 1 or 2 Bytes)
189
Read Test Register (Command: 0Xfd, Data: Read 2 Bytes)
189
Set Device Status (Command: 0Xfe, Data: Write 1 Byte)
189
Get Device Status (Command: 0Xfe, Data: Read 1 Byte)
191
Get Error Code (Command: 0Xff, Data: Read 1 Byte)
191
Read Error Status (Command: 0Xfb, Data: Read 1 Byte)
191
Select Endpoint (Command: 0X00 - 0X1F, Data: Read 1 Byte (Optional))
192
Select Endpoint/Clear Interrupt (Command: 0X40 - 0X5F, Data: Read 1 Byte)
193
Set Endpoint Status (Command: 0X40 - 0X55, Data: Write 1 Byte (Optional))
193
Clear Buffer (Command: 0Xf2, Data: Read 1 Byte (Optional))
194
Validate Buffer (Command: 0Xfa, Data: None)
195
USB Device Controller Initialization
195
Slave Mode Operation
196
Interrupt Generation
196
Data Transfer for out Endpoints
197
Data Transfer for in Endpoints
197
DMA Operation
197
Transfer Terminology
197
USB Device Communication Area
198
Triggering the DMA Engine
199
The DMA Descriptor
199
Next_Dd_Pointer
200
Dma_Mode
200
Next_Dd_Valid
200
Isochronous_Endpoint
201
Max_Packet_Size
201
Dma_Buffer_Length
201
Dma_Buffer_Start_Addr
201
Dd_Retired
201
Dd_Status
201
Packet_Valid
202
Ls_Byte_Extracted
202
Ms_Byte_Extracted
202
Present_Dma_Count
202
Message_Length_Position
202
Isochronous_Packetsize_Memory_Address
202
Non-Isochronous Endpoint Operation
202
Setting up DMA Transfers
202
Finding DMA Descriptor
203
Transferring the Data
203
Optimizing Descriptor Fetch
203
Ending the Packet Transfer
203
Packet DD
204
Isochronous Endpoint Operation
204
Setting up DMA Transfers
204
Finding the DMA Descriptor
204
Transferring the Data
205
OUT Endpoints
205
IN Endpoints
205
DMA Descriptor Completion
205
Isochronous out Endpoint Operation Example
205
Auto Length Transfer Extraction (ATLE) Mode Operation
206
OUT Transfers in ATLE Mode
207
IN Transfers in ATLE Mode
208
Setting up the DMA Transfer
208
Finding the DMA Descriptor
208
Transferring the Data
208
OUT Endpoints
208
IN Endpoints
208
Ending the Packet Transfer
209
OUT Endpoints
209
IN Endpoints
209
Double Buffered Endpoint Operation
209
Bulk Endpoints
209
Isochronous Endpoints
211
Chapter 14: Lpc29Xx USB Host Controller
212
How to Read this Chapter
212
Introduction
212
Features
212
Architecture
213
Interfaces
213
Pin Description
213
USB Host Usage Note
214
Software Interface
214
Register Overview
214
USB Host Register Definitions
215
Chapter 15: Lpc29Xx USB OTG Interface
216
How to Read this Chapter
216
Introduction
216
Features
216
Architecture
216
Pin Configuration
217
Suggested USB Interface Solutions
219
Register Overview
221
OTG Interrupt Status Register
221
OTG Interrupt Enable Register
221
0Xe01F 0100)
222
0Xe010 0104)
222
OTG Interrupt Set Register (Otgintset - 0Xe010 C20C)
222
OTG Interrupt Clear Register (Otgintclr - 0Xe010 010C)
223
OTG Status and Control Register (Otgstctrl - 0Xe010 0110)
223
OTG Timer Register (Otgtmr - 0Xe010 0114)
224
OTG Clock Control Register (Otgclkctrl - 0Xe010 0FF4)
224
OTG Clock Status Register (Otgclkst - 0Xe010 0FF8)
225
I2C Receive Register (I2C_RX - 0Xe010 0300)
225
I2C Transmit Register (I2C_TX - 0Xe010 0300)
226
I2C Control Register (I2C_CTL - 0Xe010 0308) . 228 I2C Clock High Register (I2C_CLKHI - 0Xe010 030C)
229
I2C Clock Low Register (I2C_CLKLO - 0Xe010 0310)
229
Interrupt Handling
230
HNP Support
230
B-Device: Peripheral to Host Switching
231
Remove D+ Pull-Up
233
Add D+ Pull-Up
234
A-Device: Host to Peripheral HNP Switching
234
Set BDIS_ACON_EN in External OTG Transceiver
237
Ceiver
237
Discharge VBUS
237
Load and Enable OTG Timer
238
Stop OTG Timer
238
Suspend Host on Port 1
238
Clocking and Power Management
239
Device Clock Request Signals
240
Host Clock Request Signals
240
Power-Down Mode Support
240
USB OTG Controller Initialization
241
Chapter 16: Lpc29Xx General Purpose Input/Output (GPIO)
242
How to Read this Chapter
242
GPIO Functional Description
242
Register Overview
243
GPIO Port Input Register
243
GPIO Port Output Register
244
GPIO Port Direction Register
244
Chapter 17: Lpc29Xx Timer 0/1/2/3
245
How to Read this Chapter
245
Timer Functional Description
245
Timer Counter and Interrupt Timing
246
Timer Match Functionality
247
Timer Capture Functionality
247
Timer Interrupt Handling
247
Register Overview
248
Timer Control Register (TCR)
248
Timer Counter
249
Timer Prescale Register
249
Timer Match-Control Register
250
Timer External-Match Register
251
Timer Match Register
252
Timer Capture-Control Register
252
Timer Capture Register
253
Timer Interrupt Bit Description
254
Chapter 18: Lpc29Xx SPI0/1/2
255
How to Read this Chapter
255
Introduction
255
SPI Functional Description
255
Modes of Operation
255
Slave Mode
257
Register Overview
258
SPI Configuration Register
258
SPI Slave-Enable Register
260
SPI Transmit-FIFO Flush Register
261
SPI FIFO Data Register
261
SPI Receive FIFO POP Register
262
SPI Receive-FIFO Read-Mode Register
262
SPI DMA Settings Register
263
SPI Status Register (Status)
264
SPI Slave-Settings 1 Register
265
SPI Slave-Settings 2 Register
266
SPI FIFO Interrupt Threshold Register
267
SPI Interrupt Bit Description
268
Chapter 19: Lpc29Xx Universal Asynchronous Receiver/Transmitter (UART)
269
How to Read this Chapter
269
Features
269
Pin Description
269
Register Overview
271
Uartn Receiver Buffer Register
271
Uartn Transmit Holding Register
272
Uartn Divisor Latch Registers
272
Uartn Interrupt Enable Register
273
Uartn Interrupt Identification Register
273
Uartn FIFO Control Register
275
Uartn Line Control Register
276
UART0/1 Modem Control Register
277
Auto-Flow Control
278
Auto-RTS
278
Auto-CTS
279
Uartn Line Status Register
280
UART0/1 Modem Status Register
281
Uartn Scratch Pad Register
282
Uartn Auto-Baud Control Register
282
Auto-Baud
283
Auto-Baud Modes
284
Uartn Fractional Divider Register
285
Baudrate Calculation
286
Example 1: BASE_UART_CLK = 14.7456 Mhz, BR = 9600
288
Example 2: BASE_UART_CLK = 12 Mhz, BR = 115200
288
Uartn Transmit Enable Register
288
Uartn RS485 Control Register
289
Uartn RS485 Address Match Register
290
Uartn RS-485 Delay Value Register
290
Modes of Operation
290
Normal Multidrop Mode (NMM)
290
Auto Address Detection (AAD) Mode 290 RS-485/EIA-485 Auto Direction Control
291
RS485/EIA-485 Driver Delay Time
291
RS485/EIA-485 Output Inversion
291
Architecture
291
Chapter 20: Lpc29Xx Watchdog Timer (WDT)
294
How to Read this Chapter
294
Introduction
294
Watchdog Programming Example
294
Register Overview
295
Watchdog Timer-Control Register
295
Watchdog Timer Counter
296
Watchdog Prescale Register
296
Watchdog Timer Key Register
297
Watchdog Time-Out Register
297
Watchdog Debug Register
297
Watchdog Interrupt Bit Description
298
Chapter 21: Lpc29Xx CAN 0/1
299
How to Read this Chapter
299
CAN Functional Description
299
CAN Controller 0
299
CAN Bus Timing
300
Baud-Rate Prescaler
300
Synchronization Jump Width
300
Time Segments 1 and 2
300
CAN Transmit Buffers
301
Transmit Buffer Layout
301
Automatic Transmit-Priority Protection
302
CAN Receive Buffer
302
Receive Buffer Layout
302
CAN Controller Self-Test
303
Global Self-Test
303
Local Self-Test
303
CAN Global Acceptance Filter
304
Standard Frame-Format Fullcan Identifier Section
305
Standard Frame-Format Explicit Identifier Section
307
Standard Frame-Format Group Identifier Section
308
Extended Frame-Format Explicit Identifier Section
308
Extended Frame-Format Group Identifier Section
309
CAN Acceptance Filter Registers
309
CAN Acceptance-Filter Mode Register
309
Section Start-Registers of the ID Look-Up Table Memory
310
CAN ID Look-Up Table Memory
310
CAN Acceptance-Filter Search Algorithm
311
CAN Central Status Registers
312
Register Overview
312
CAN Controller Mode Register
314
CAN Controller Command Register
315
CAN Controller Global Status Register
317
CAN Controller Interrupt and Capture Register
319
CAN Controller Interrupt-Enable Register
323
CAN Controller Bus Timing Register
324
CAN Controller Error-Warning Limit Register
325
CAN Controller Status Register
326
CAN Controller Receive-Buffer Message Info Register
328
CAN Controller Receive Buffer Identifier Register
329
CAN Controller Receive Buffer Data a Register
330
CAN Controller Receive-Buffer Data B Register
330
CAN Controller Transmit-Buffer Message Info Registers
331
CAN Controller Transmit-Buffer Identifier Registers
332
CAN Controller Transmit-Buffer Data a Registers
332
CAN Controller Transmit-Buffer Data B Registers
333
CAN Acceptance-Filter Register Overview
334
CAN Acceptance-Filter Mode Register
334
CAN Acceptance-Filter Standard-Frame Explicit Start-Address Register
335
CAN Acceptance-Filter Standard-Frame Group Start-Address Register
335
CAN Acceptance-Filter Extended-Frame Explicit Start-Address Register
336
CAN Acceptance-Filter Extended-Frame Group Start-Address Register
337
CAN Acceptance-Filter End of Look-Up Table Address Register
338
CAN Acceptance Filter Look-Up Table Error Address Register
338
CAN Acceptance-Filter Look-Up Table Error Register
339
Global Fullcaninterrupt Enable Register
339
Fullcan Interrupt and Capture Registers
339
CAN Controller Central Transmit-Status Register
340
CAN Controller Central Receive-Status Register
341
CAN Controller Central Miscellaneous-Status Register
341
Fullcan Mode
342
Fullcan Message Layout
343
Fullcan Interrupts
346
Fullcan Message Interrupt Enable Bit
346
Message Lost Bit and CAN Channel Number
347
Setting the Interrupt Pending Bits (Intpnd 63 to 0)
348
Clearing the Interrupt Pending Bits (Intpnd 63 to 0)
348
Setting the Message Lost Bit of a Fullcan Message Object (Msglost 63 to 0)
348
Clearing the Message Lost Bit of a Fullcan Message Object (Msglost 63 to 0)
348
Set and Clear Mechanism of the Fullcan Interrupt
348
Scenario 1: Normal Case, no Message Lost
348
Scenario 2: Message Lost
349
Scenario 3: Message Gets Overwritten Indicated by Semaphore Bits
350
Scenario 3.1: Message Gets Overwritten Indicated by Semaphore Bits and Message Lost
350
Scenario 3.2: Message Gets Overwritten Indicated by Message Lost
351
Scenario 4: Clearing Message Lost Bit
352
CAN Configuration Example 1
353
Explicit Standard-Frame Format Identifier Section (11-Bit CAN ID)
353
Group of Standard Frame-Format Identifier Section (11-Bit CAN ID)
354
Explicit Standard Frame-Format Identifier Section (29-Bit CAN ID)
354
Group of Extended Frame-Format Identifier Section (29-Bit CAN ID)
354
CAN Configuration Example 2
355
Fullcan Explicit Standard Frame-Format Section (11-Bit CAN ID)
356
Explicit Standard Frame-Format Section (11-Bit CAN ID)
356
Fullcan Message-Object Data Section
356
CAN Look-Up Table Programming Guidelines
357
Chapter 22 : Lpc29Xx LIN/UART 0/1
359
How to Read this Chapter
359
Advertisement
NXP Semiconductors LPC2919/01 User Manual (571 pages)
ARM9 microcontroller with CAN and LIN
Brand:
NXP Semiconductors
| Category:
Microcontrollers
| Size: 3 MB
Table of Contents
Chapter 1: Lpc29Xx Introductory Information
3
Chapter 32 : Lpc29Xx Supplementary Information
3
Introduction
3
About this User Manual
3
General Features
3
Ordering Information
5
Ordering Options
6
Comparison with LPC2917/19 Devices
6
Chapter 2: Lpc29Xx Memory Mapping
15
How to Read this Chapter
15
Memory-Map View of the AHB
16
Memory-Map Regions
16
Region 0: Tcm/Shadow Area
18
Region 1: Embedded Flash Area
19
Region 2: External Static Memory Area
19
Chapter 3 : Lpc29Xx General System Control
23
How to Read this Chapter
23
Introduction
23
Chapter 4: Lpc29Xx Clock Generation Unit (CGU)
24
CGU0 Functional Description
24
Controlling the XO50M Oscillator (External Oscillator)
27
Controlling the PL160M PLL
27
Controlling the Frequency Dividers
29
Controlling the Clock Output
29
Reading the Control Settings
29
Frequency Monitor
29
Clock Detection
30
Bus Disable
30
Clock-Path Programming
30
Interrupt Set-Enable Register
33
Interrupt Status Register
33
Interrupt Enable Register
33
Interrupt Clear-Status Register
33
Frequency Monitor Register
34
Clock Detection Register
34
Crystal Oscillator Control Register (CGU0)
37
PLL Status Register (CGU0 and CGU1)
38
PLL Control Register (CGU0 and CGU1)
38
Post-Divider Ratio Programming
38
Feedback-Divider Ratio Programming
39
Frequency Selection, Mode 1 (Normal Mode)
39
Frequency Selection, Mode 2 (Direct CCO Mode)
39
Frequency Divider Status Register
41
Frequency Divider Configuration Register
41
BASE_SAFE_CLK and BASE_PCR_CLK
43
Output-Clock Configuration Register for
43
Output-Clock Status Register for CGU0 Clocks
43
Chapter 5: Lpc29Xx Reset Generation Unit (RGU)
47
How to Read this Chapter
47
RGU Functional Description
47
Reset Hierarchy
48
RGU Register Overview
49
RGU Reset Control Register
50
RGU Reset Status Register
51
RGU Reset Active Status Register
57
Chapter 6: Lpc29Xx Power Management Unit (PMU)
61
How to Read this Chapter
61
Introduction
61
PMU Functional Description
61
PMU Clock-Branch Run Mode
63
PMU Clock Branch Overview
64
PMU Register Overview
64
Power Mode Register (PM)
69
PMU Clock Configuration Register for Output
70
Chapter 7 : Lpc29Xx System Control Unit (SCU)
81
Chapter 8 : Lpc29Xx Chip Feature ID (CFID)
81
Configuration Register 1
81
Configuration Register 2
81
Configuration Register 3
81
Chapter 9 : Lpc29Xx Event Router
85
Event-Status Clear Register
85
Event-Status Set Register
85
Event Enable Register
85
Event-Enable Clear Register
87
Event-Enable Set Register
87
Activation Polarity Register
88
Activation Type Register
88
Chapter 10: Lpc29Xx Vectored Interrupt Controller (VIC)
90
How to Read this Chapter
90
VIC Functional Description
90
Non-Nested Interrupt Service Routine
92
Nested Interrupt Service Routine
92
VIC Programming Example
92
VIC Register Overview
93
Chapter 11: Lpc29Xx Pin Configuration
111
How to Read this Chapter
111
LPC2917/19/01 Pinning Information
111
LPC2921/23/25 Pin Configuration
118
Chapter 12: Lpc29Xx External Static Memory Controller (SMC)
138
How to Read this Chapter
138
SMC Functional Description
138
External Memory Interface
139
External SMC Register Overview
144
Bank Wait-State 1 Control Registers
147
Bank Wait-State 2 Control Registers
147
Chapter 13: Lpc29Xx USB Device
152
How to Read this Chapter
152
Introduction
152
Features
153
Fixed Endpoint Configuration
153
Functional Description
154
Analog Transceiver
155
Serial Interface Engine (SIE)
155
Endpoint RAM (EP_RAM)
155
EP_RAM Access Control
155
DMA Engine and Bus Master Interface
155
Register Interface
155
Softconnect
155
Goodlink
156
Operational Overview
156
Pin Description
156
Clocking and Power Management
157
Power Requirements
157
Clocks
157
Power Management Support
157
Remote Wake-Up
158
Register Description
158
Clock Control Registers
158
USB Clock Control Register (Usbclkctrl - 0Xe010 CFF4)
160
USB Clock Status Register (Usbclkst - 0Xe010 CFF8)
160
Device Interrupt Registers
161
USB Interrupt Status Register (Usbintst - 0Xe01F C1C0)
161
USB Device Interrupt Status Register (Usbdevintst - 0Xe010 C200)
161
USB Device Interrupt Enable Register (Usbdevinten - 0Xe010 C204)
162
USB Device Interrupt Clear Register (Usbdevintclr - 0Xe010 C208)
163
USB Device Interrupt Set Register (Usbdevintset - 0Xe010 C20C)
163
USB Device Interrupt Priority Register (Usbdevintpri - 0Xe010 C22C)
164
Endpoint Interrupt Registers
164
USB Endpoint Interrupt Status Register (Usbepintst - 0Xe010 C230)
164
USB Endpoint Interrupt Enable Register (Usbepinten - 0Xe010 C234)
166
USB Endpoint Interrupt Clear Register (Usbepintclr - 0Xe010 C238)
166
USB Endpoint Interrupt Set Register (Usbepintset - 0Xe010 C23C)
167
USB Endpoint Interrupt Priority Register
168
USB Realize Endpoint Register (Usbreep - 0Xe010 C244)
169
USB Endpoint Index Register (Usbepin - 0Xe010 9.7.16 C248)
170
USB Maxpacketsize Register (Usbmaxpsize - 0Xe010 C24C)
171
USB Transfer Registers
171
USB Receive Data Register (Usbrxdata - 0Xe010 C218)
171
USB Receive Packet Length Register (Usbrxplen - 0Xe010 C220)
172
USB Transmit Data Register (Usbtxdata - 0Xe010 C21C)
172
USB Transmit Packet Length Register (Usbtxplen - 0Xe010 C224)
172
USB Control Register (Usbctrl - 0Xe010 C228)
173
SIE Command Code Registers
173
USB Command Code Register (Usbcmdcode - 0Xe010 C210)
174
USB Command Data Register (Usbcmddata - 0Xe010 C214)
174
C280)
176
USB DMA Interrupt Status Register (Usbdmaintst - 0Xe010 C290)
178
USB DMA Interrupt Enable Register (Usbdmainten - 0Xe010 C294)
178
USB End of Transfer Interrupt Status Register (Usbeotintst - 0Xe010 C2A0)
179
USB End of Transfer Interrupt Clear Register (Usbeotintclr - 0Xe010 C2A4)
179
USB End of Transfer Interrupt Set Register (Usbeotintset - 0Xe010 C2A8)
179
USB New DD Request Interrupt Status Register (Usbnddrintst - 0Xe010 C2AC)
180
USB New DD Request Interrupt Clear Register (Usbnddrintclr - 0Xe010 C2B0)
180
USB New DD Request Interrupt Set Register (Usbnddrintset - 0Xe010 C2B4)
180
USB System Error Interrupt Status Register (Usbsyserrintst - 0Xe010 C2B8)
181
USB System Error Interrupt Clear Register (Usbsyserrintclr - 0Xe010 C2BC)
181
USB System Error Interrupt Set Register (Usbsyserrintset - 0Xe010 C2C0)
181
Interrupt Handling
181
Slave Mode
182
DMA Mode
182
Serial Interface Engine Command Description
184
Set Address (Command: 0Xd0, Data: Write 1 Byte)
185
Configure Device
185
Set Mode (Command: 0Xf3, Data: Write 1 Byte)
186
Read Current Frame Number
187
Read Test Register (Command: 0Xfd, Data: Read 2 Bytes)
187
Set Device Status (Command: 0Xfe, Data: Write 1 Byte)
187
Get Device Status (Command: 0Xfe, Data: Read 1 Byte)
188
Get Error Code (Command: 0Xff, Data: Read 1 Byte)
188
Read Error Status (Command: 0Xfb, Data: Read 1 Byte)
189
Select Endpoint (Command: 0X00 - 0X1F, Data: Read 1 Byte (Optional))
190
Select Endpoint/Clear Interrupt
191
Set Endpoint Status (Command: 0X40 - 0X55, Data: Write 1 Byte (Optional))
191
Clear Buffer (Command: 0Xf2, Data: Read 1 Byte (Optional))
192
Validate Buffer (Command: 0Xfa, Data: None)
192
USB Device Controller Initialization
193
Slave Mode Operation
194
Interrupt Generation
194
Data Transfer for out Endpoints
194
Data Transfer for in Endpoints
195
DMA Operation
195
Transfer Terminology
195
USB Device Communication Area
195
Triggering the DMA Engine
196
The DMA Descriptor
196
Next_Dd_Pointer
197
Dma_Mode
197
Isochronous_Endpoint
197
Max_Packet_Size
197
Dma_Buffer_Length
197
Dma_Buffer_Start_Addr
197
Dd_Retired
199
Dd_Status
199
Packet_Valid
199
Ls_Byte_Extracted
200
Ms_Byte_Extracted
200
Present_Dma_Count
200
Message_Length_Position
200
Isochronous_Packetsize_Memory_Address
200
Setting up DMA Transfers
200
Finding DMA Descriptor
200
Transferring the Data
201
Optimizing Descriptor Fetch
201
Ending the Packet Transfer
201
Setting up DMA Transfers
202
Finding the DMA Descriptor
202
Transferring the Data
202
OUT Endpoints
203
IN Endpoints
203
DMA Descriptor Completion
203
Isochronous out Endpoint Operation Example
203
OUT Transfers in ATLE Mode
204
IN Transfers in ATLE Mode
206
Setting up the DMA Transfer
206
Finding the DMA Descriptor
206
Transferring the Data
206
OUT Endpoints
206
IN Endpoints
206
Ending the Packet Transfer
207
OUT Endpoints
207
IN Endpoints
207
Double Buffered Endpoint Operation
207
Bulk Endpoints
207
Isochronous Endpoints
209
Chapter 14 : Lpc29Xx USB Host Controller
211
Pin Description
211
USB Host Usage Note
212
Software Interface
212
Register Map
212
USB Host Register Definitions
213
Chapter 15 : Lpc29Xx USB OTG Interface
220
USB Interrupt Status Register (Usbintst - <Tbd>)
220
OTG Interrupt Status Register (Otgintst - 0Xe01F C100)
220
OTG Interrupt Enable Register (Otginten - 0Xe010 C104)
221
OTG Interrupt Set Register (Otgintset - 0Xe010 C20C)
221
OTG Interrupt Clear Register (Otgintclr - 0Xe010 C10C)
221
OTG Status and Control Register (Otgstctrl - 0Xe010 C110)
221
OTG Timer Register (Otgtmr - 0Xe010 C114)
222
OTG Clock Control Register
223
OTG Clock Status Register
224
I2C Transmit Register (I2C_TX - 0Xe010 C300)
224
I2C Status Register (I2C_STS - 0Xe010 C304)
225
I2C Control Register (I2C_CTL - 0Xe010 C308)
226
I2C Clock High Register (I2C_CLKHI - 0Xe010 C30C)
227
Chapter 16: Lpc29Xx General Purpose Input/Output (GPIO)
243
GPIO Register Overview
243
Chapter 17: Lpc29Xx Timer 0/1/2/3
246
How to Read this Chapter
246
Timer Functional Description
246
Timer Counter and Interrupt Timing
247
Timer Match Functionality
248
Timer Capture Functionality
248
Timer Interrupt Handling
248
Timer Register Overview
249
Timer Control Register (TCR)
250
Chapter 18: Lpc29Xx SPI0/1/2
256
How to Read this Chapter
256
Introduction
256
SPI Functional Description
256
Modes of Operation
256
Slave Mode
256
SPI Register Overview
258
SPI Configuration Register
260
SPI Slave-Enable Register
261
SPI Receive-FIFO Read-Mode Register
263
SPI DMA Settings Register
264
SPI Status Register (Status)
265
SPI Slave-Settings 1 Register
266
SPI Slave-Settings 2 Register
267
SPI FIFO Interrupt Threshold Register
268
Chapter 19: Lpc29Xx Universal Asynchronous Receiver/Transmitter (UART)
270
How to Read this Chapter
270
Features
270
Pin Description
270
Register Description
271
Uartn Receiver Buffer Register
274
Uartn Transmit Holding Register
274
Uartn Divisor Latch LSB Register
274
Uartn Interrupt Enable Register
275
Uartn Interrupt Identification Register
275
Uartn FIFO Control Register
278
Uartn Line Control Register
278
UART0/1 Modem Control Register
279
Auto-Flow Control
280
Auto-RTS
280
Auto-CTS
281
Uartn Line Status Register
282
UART0/1 Modem Status Register
283
Uartn Scratch Pad Register
284
Uartn Auto-Baud Control Register
284
Chapter 20: Lpc29Xx Watchdog Timer (WDT)
296
How to Read this Chapter
296
Introduction
296
Watchdog Programming Example
296
Watchdog Register Overview
297
Watchdog Timer-Control Register
298
Watchdog Timer Counter
299
Chapter 21: Lpc29Xx CAN 0/1
302
How to Read this Chapter
302
CAN Functional Description
302
CAN Controller 0
302
CAN Bus Timing
303
Baud-Rate Prescaler
303
Synchronization Jump Width
303
Time Segments 1 and 2
303
CAN Transmit Buffers
304
Transmit Buffer Layout
304
Automatic Transmit-Priority Protection
305
CAN Receive Buffer
305
Receive Buffer Layout
305
CAN Controller Self-Test
306
Global Self-Test
306
Local Self-Test
306
CAN Global Acceptance Filter
307
Standard Frame-Format Fullcan Identifier Section
307
Standard Frame-Format Explicit Identifier Section
307
Standard Frame-Format Group Identifier Section
307
Extended Frame-Format Explicit Identifier Section
307
Extended Frame-Format Group Identifier Section
307
CAN Acceptance Filter Registers
312
CAN Acceptance-Filter Mode Register
312
Section Start-Registers of the ID Look-Up Table Memory
313
CAN ID Look-Up Table Memory
313
CAN Controller Command Register
319
CAN Controller Global Status Register
320
CAN Controller Interrupt and Capture Register
322
CAN Controller Interrupt-Enable Register
326
CAN Controller Bus Timing Register
327
CAN Controller Error-Warning Limit Register
328
CAN Controller Status Register
329
CAN Controller Receive-Buffer Message Info Register
331
CAN Controller Receive Buffer Identifier Register
332
CAN Controller Receive Buffer Data a Register
333
CAN Controller Receive-Buffer Data B Register
333
CAN Controller Transmit-Buffer Message Info Registers
334
CAN Controller Transmit-Buffer Identifier Registers
335
CAN Controller Transmit-Buffer Data a Registers
335
CAN Controller Transmit-Buffer Data B Registers
335
CAN Acceptance-Filter Register Overview
337
CAN Acceptance-Filter Mode Register
337
CAN Acceptance-Filter Standard-Frame Explicit 12.1 Start-Address Register
338
CAN Acceptance-Filter Extended-Frame Explicit 12.3 Start-Address Register
339
CAN Acceptance-Filter Extended-Frame Group Start-Address Register
340
CAN Acceptance-Filter End of Look-Up Table Address Register
341
CAN Acceptance Filter Look-Up Table Error Address Register
341
CAN Acceptance-Filter Look-Up Table Error Register ID)
341
Global Fullcaninterrupt Enable Register
342
Fullcan Interrupt and Capture Registers
342
Chapter 22: Lpc29Xx LIN
342
CAN Controller Central Transmit-Status Register
343
CAN Controller Central Receive-Status Register
344
CAN Controller Central Miscellaneous-Status Register
344
Fullcan Mode
345
Fullcan Message Layout
346
Fullcan Interrupts
349
Fullcan Message Interrupt Enable Bit
349
Message Lost Bit and CAN Channel Number
350
Setting the Interrupt Pending Bits (Intpnd 63 to 0)
351
Clearing the Interrupt Pending Bits (Intpnd 63 to 0)
351
Setting the Message Lost Bit of a Fullcan Message Object (Msglost 63 to 0)
351
Clearing the Message Lost Bit of a Fullcan Message Object (Msglost 63 to 0)
351
Set and Clear Mechanism of the Fullcan Interrupt
351
Scenario 1: Normal Case, no Message Lost
351
Scenario 2: Message Lost
352
Scenario 3: Message Gets Overwritten Indicated by Semaphore Bits
353
Scenario 3.1: Message Gets Overwritten Indicated by Semaphore Bits and Message Lost
353
Scenario 3.2: Message Gets Overwritten Indicated by Message Lost
354
Scenario 4: Clearing Message Lost Bit
355
Advertisement
Related Products
NXP Semiconductors LPC2917/01
NXP Semiconductors LPC2917FBD144/01
NXP Semiconductors LPC2919FBD144/01
NXP Semiconductors LPC29 Series
NXP Semiconductors LPC2927
NXP Semiconductors LPC2929
NXP Semiconductors LPC2939
NXP Semiconductors LPC2921FBD100
NXP Semiconductors LPC2923FBD100
NXP Semiconductors LPC2925FBD100
NXP Semiconductors Categories
Motherboard
Microcontrollers
Computer Hardware
Control Unit
Controller
More NXP Semiconductors Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL