Sign In
Upload
Manuals
Brands
NXP Semiconductors Manuals
Microcontrollers
LPC2923FBD100
NXP Semiconductors LPC2923FBD100 Manuals
Manuals and User Guides for NXP Semiconductors LPC2923FBD100. We have
1
NXP Semiconductors LPC2923FBD100 manual available for free PDF download: User Manual
NXP Semiconductors LPC2923FBD100 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
Introduction
359
LIN Features
359
UART Features
360
LIN Functional Description
360
LIN Master
361
LIN Sync-Break Generation
361
Registers and Mapping
362
Error Detection
362
Line-Clamped Detection Versus Bit-Error Detection
362
Wake-Up Interrupt Handling
363
Slave-Not-Responding Error and the LIN Master Time-Out Register
363
Pin Description
363
Register Overview
363
Common LIN/UART Registers
364
LIN Master-Controller Mode Register
364
LIN Master-Controller Configuration Register
365
LIN Master-Controller Command Register
366
LIN Master-Controller Fractional Baud Rate Generator Register
367
LIN Master Controller Registers
367
LIN Master-Controller Status Register
367
LIN Master-Controller Interrupt and Capture Register
370
LIN Master-Controller Interrupt Enable Register
371
LIN Master-Controller Checksum Register
372
LIN Master-Controller Time-Out Register
373
LIN/UART Registers (LIN in UART Mode)
378
Lin/Uartn Receiver Buffer Register
378
Lin/Uartn Transmit Holding Register
378
Lin/Uartn Interrupt Enable Register
378
Lin/Uartn Interrupt Identification Register 379 Lin/Uartn FIFO Control Register
381
Lin/Uartn Line Control Register
382
Lin/Uartn Line Status Register
382
Lin/Uartn Scratch Pad Register
384
Lin/Uartn Transmit Enable Register
384
Chapter 23: Lpc29Xx I2C-Interface
386
How to Read this Chapter
386
Features
386
Applications
386
Description
386
Pin Description
387
C Operating Modes
387
Master Transmitter Mode
388
Master Receiver Mode
389
Slave Receiver Mode
389
Slave Transmitter Mode
390
C Implementation and Operation
391
Input Filters and Output Stages
391
Address Registers, ADDR0 to ADDR3
392
Address Mask Registers, MASK0 to MASK3
393
Comparator
393
Shift Register DAT
393
Arbitration and Synchronization Logic
393
Serial Clock Generator
394
Timing and Control
395
Control Register CONSET and CONCLR
395
Status Decoder and Status Register
395
Register Overview
395
C Control Set Register (I2C[0/1]CONSET: 0Xe008 2000, 0Xe008 3000)
396
C Status Register (I2C[0/1]STAT - 0Xe008 2004, 0Xe008 3004)
398
C Data Register (I2C[0/1]DAT - 0Xe008 2008, 0Xe008 3008)
398
C Slave Address Register (I2C[0/1]ADR - 0Xe008 200C, 0Xe008 300C)
399
C SCL High Duty Cycle Register (I2C[0/1]SCLH - 0Xe008 2010, 0Xe008 3010)
399
I 2 C SCL Low Duty Cycle Register
399
C SCL Low Duty Cycle Register (I2C[0/1]SCLL - 0Xe008 2014, 0Xe008 3014)
399
Selecting the Appropriate I C Data Rate and Duty Cycle
399
I 2 C Control Clear Register (I2C[0/1]CONCLR: 0Xe008 2018, 0Xe008 3018)
400
C Monitor Mode Control Register (I2C[0/1]MMCTRL: 0Xe008 201C, 0Xe008 301C)
401
Interrupt in Monitor Mode
402
Loss of Arbitration in Monitor Mode
402
I 2 C Data Buffer Register (I2C[0/1]DATA_BUFFER: 0Xe008 202C, 0Xe008 302C)
402
C Slave Address Registers (I2C[0/1]ADR0 to 3: 0Xe008 20[0C, 20, 24, 28], 0Xe008 30[0C, 20, 24, 28])
403
C Mask Registers (I2C[0/1]MASK0 to 3: 0Xe008 20[30, 34, 38, 3C], 0Xe008 30[30, 34, 38, 3C])
403
Details of I C Operating Modes
404
Master Transmitter Mode
404
Master Receiver Mode
405
Slave Receiver Mode
405
Slave Transmitter Mode
410
Miscellaneous States
416
I2STAT = 0Xf8
416
I2STAT = 0X00
416
Some Special Cases
417
Simultaneous Repeated START Conditions from Two Masters
417
Data Transfer after Loss of Arbitration
417
Forced Access to the I C Bus
417
C Bus Obstructed by a LOW Level on SCL or SDA
418
Bus Error
418
C State Service Routines
419
Initialization
419
I 2 C Interrupt Service
420
The State Service Routines
420
Adapting State Services to an Application
420
Software Example
420
Initialization Routine
420
Start Master Transmit Function
420
Start Master Receive Function
420
I 2 C Interrupt Routine
421
Non Mode Specific States
421
State : 0X00
421
Master States
421
State : 0X08
421
State : 0X10
421
Master Transmitter States
422
State : 0X18
422
State : 0X20
422
State : 0X28
422
State : 0X30
422
State : 0X38
423
Master Receive States
423
State : 0X40
423
State : 0X48
423
State : 0X50
423
State : 0X58
423
Slave Receiver States
424
State : 0X60
424
State : 0X68
424
State : 0X70
424
State : 0X78
424
State : 0X80
425
State : 0X88
425
State : 0X90
425
State : 0X98
425
State : 0Xa0
425
Slave Transmitter States
426
State : 0Xa8
426
State : 0Xb0
426
State : 0Xb8
426
State : 0Xc0
426
State : 0Xc8
427
Chapter 24: Lpc29Xx Modulation and Sampling Control Subsystem (MSCSS)
428
How to Read this Chapter
428
MSCSS Functional Description
428
Synchronization and Trigger Features of the MSCSS
428
MSCSS Miscellaneous Operations
430
Continuous Level Measurement
431
Comparator Functionality
431
Dimmer Using Pwms
431
Generating Sine Waves
431
Register Overview
432
Chapter 25: Lpc29Xx Pulse Width Modulator (PWM)
433
How to Read this Chapter
433
Introduction
433
Shadow Registers and Related Update Mechanism
433
Functional Description
434
PWM Counter Synchronization
435
Delayed Register Update Triggered by Timer 0
435
Center-Aligned PWM
436
Input Capturing
436
Modulation of PWM and Timer Carrier
436
Register Overview
437
PWM Shadow Registers
440
PWM Mode Control Register
440
PWM Trap Control Register
442
PWM Capture Control Register
442
PWM Capture Source Register
443
PWM Control Register
444
PWM Period Register
444
PWM Prescale Register
445
PWM Synchronization Delay Register
445
PWM Count Register
445
PWM Match Active Registers
446
PWM Match Deactive Registers
446
PWM Capture Registers
446
PWM Mode Control Shadow Register
447
PWM Trap Control Shadow Register
447
PWM Capture Control Shadow Register
448
PWM Capture Source Shadow Register
448
PWM Control Shadow Register
449
PWM Period Shadow Register
449
PWM Prescale Shadow Register
450
PWM Synchronization Delay Shadow Register 450 PWM Match Active Shadow Registers
450
PWM Match Deactive Shadow Registers
451
PWM Interrupt Bit Description
451
Chapter 26: Lpc29Xx Analog-To-Digital Converter (ADC)
453
How to Read this Chapter
453
ADC Functional Description
453
Clock Distribution
454
Compare Conversion Results with Predefined Threshold
454
Trigger ADC Conversion with MSCSS Timer 0
454
Interrupt Handling
454
Pin Description
455
Register Overview
455
ADC Channel Configuration Register
457
ADC Channel-Compare Register
458
ADC Channel Conversion Data Register
459
Compare Status Register
459
Compare-Status Clear Register
460
ADC Configuration Register
460
ADC Control Register
462
ADC Status Register
462
ADC Interrupt Bit Description
463
Chapter 27: Lpc29Xx Quadrature Encoder Interface (QEI)
464
How to Read this Chapter
464
Introduction
464
Functional Description
466
Input Signals
466
Quadrature Input Signals
466
Digital Input Filtering
467
Position Capture
467
Velocity Capture
467
Velocity Compare
468
Pin Description
469
Register Overview
469
QEI Control (QEICON)
469
QEI Configuration (QEICONF)
470
QEI Status (QEISTAT)
470
QEI Position (QEIPOS)
470
QEI Maximum Position (QEIMAXPOS)
471
QEI Position Compare 0 (CMPOS0)
471
QEI Position Compare 1 (CMPOS1)
471
QEI Position Compare 2 (CMPOS2)
471
QEI Index Count (INXCNT)
472
QEI Index Compare (INXCMP)
472
QEI Timer Reload (QEILOAD)
472
QEI Timer (QEITIME)
472
QEI Velocity (QEIVEL)
472
QEI Velocity Capture (QEICAP)
473
QEI Velocity Compare (VELCOMP)
473
QEI Digital Filter (FILTER)
473
Interrupt Registers
473
QEI Interrupt Bit Description
473
Chapter 28: Lpc29Xx Flash/Eeprom
475
How to Read this Chapter
475
Flash Memory/Eeprom Controller Functional Description
475
Flash Memory Layout
476
Flash Memory Reading
477
Flash Memory Writing
477
Erase Sequence (for One or more Sectors)
478
Burn Sequence (for One or more
478
Flash Signature Generation
479
Flash Interrupts
479
Flash Memory Index-Sector Features
480
Index Sector Programming
481
Index Sector Customer Info
482
JTAG Security
482
Flash Memory Sector Protection
482
EEPROM Functional Description
483
Addressing
484
Initialization
484
EEPROM Operations
485
Writing
485
Programming
486
Reading
487
Error Responses
488
EEPROM Usage Note
488
EEPROM Interrupts
488
Register Overview
489
Flash Memory Control Register
490
Unprotect Sector
491
Erase Sector
491
Burn Page
491
Preset Data Latches
491
Flash Memory Program-Time Register
492
Flash Test Control Register
492
Flash Bridge Wait-States Register
492
Flash-Memory Clock Divider Register
493
Flash-Memory bist Control Registers
494
Flash-Memory bist Signature Registers
495
EEPROM Command Register
495
EEPROM Address Register
496
EEPROM Write Data Register
497
EEPROM Read Data Register
497
EEPROM Wait State Register
498
EEPROM Clock Divider Register
499
EEPROM Power-Down Register
500
EEPROM bist Start Address Register
500
EEPROM bist Stop Address Register
500
EEPROM Signature Register
501
FMC Interrupt Bit Description
501
Flash and EEPROM Programming Details
502
AHB Programming
502
Un)Protecting Sectors
503
Erasing a Single Sector
504
Erasing Multiple Sectors
504
Presetting Data Latches
505
Writing and Loading
505
Burning
505
Index Sector Programming
506
Algorithm for Signature Generation
506
Signature Generation
506
Content Verification
507
Chapter 29 : Lpc29Xx General Purpose DMA (GPDMA) Controller
509
How to Read this Chapter
509
Introduction
509
Features
509
Functional Description
510
DMA Controller Functional Description
510
AHB Slave Interface
510
Control Logic and Register Bank
510
DMA Request and Response Interface
510
Channel Logic and Channel Register Bank
511
Interrupt Request
511
AHB Master Interface
511
Bus and Transfer Widths
511
Endian Behavior
511
Error Conditions
513
Channel Hardware
514
DMA Request Priority
514
Interrupt Generation
514
DMA System Connections
514
DMA Request Signals
515
DMA Response Signals
515
Register Overview
515
DMA Interrupt Status Register (Dmacintstat - 0Xe014 0000)
517
DMA Interrupt Terminal Count Request Status Register (Dmacinttcstat - 0Xe014 0004)
517
DMA Interrupt Terminal Count Request Clear
518
Register (Dmacinttcclear - 0Xe014 0008)
518
DMA Interrupt Error Status Register (Dmacinterrstat - 0Xe014 000C)
518
DMA Interrupt Error Clear Register (Dmacinterrclr - 0Xe014 0010)
518
DMA Raw Interrupt Terminal Count Status Register (Dmacrawinttcstat - 0Xe014 0014)
519
DMA Raw Error Interrupt Status Register 6.2 (Dmacrawinterrstat - 0Xe014 0018)
519
DMA Enabled Channel Register (Dmacenbldchns - 0Xe014 001C)
519
DMA Software Burst Request Register 6.2.3 (Dmacsoftbreq - 0Xe014 0020)
520
DMA Software Single Request Register 6.3.1 (Dmacsoftsreq - 0Xe014 0024)
520
DMA Software Last Burst Request Register 6.4.1 (Dmacsoftlbreq - 0Xe014 0028)
520
DMA Software Last Single Request Register (Dmacsoftlsreq - 0Xe014 002C)
521
DMA Configuration Register (Dmacconfig - 0Xe014 0030)
521
DMA Synchronization Register (Dmacsync - 0Xe014 0034)
522
DMA Channel Registers
522
DMA Channel Source Address Registers (Dmaccxsrcaddr - 0Xe014 01X0)
522
DMA Channel Destination Address Registers (Dmaccxdestaddr - 0Xe014 01X4)
523
DMA Channel Linked List Item Registers
523
DMA Channel Control Registers (Dmaccxcontrol - 0Xe014 01Xc)
523
Protection and Access Information
524
Channel Configuration Registers (Dmaccxconfig - 0Xe014 01X0)
525
Lock Control
527
Flow Control and Transfer Type
527
Using the DMA Controller
527
Programming the DMA Controller
527
Enabling the DMA Controller
527
Disabling the DMA Controller
527
Enabling a DMA Channel
527
Disabling a DMA Channel
528
Fifo
528
Disabling the DMA Channel Without Losing Data in the FIFO
528
Setting up a New DMA Transfer
528
Halting a DMA Channel
528
Programming a DMA Channel
528
Flow Control
529
Peripheral-To-Memory or Memory-To-Peripheral DMA Flow
530
Peripheral-To-Peripheral DMA Flow
530
Memory-To-Memory DMA Flow
531
Interrupt Requests
531
Hardware Interrupt Sequence Flow
531
Address Generation
532
Word-Aligned Transfers Across a Boundary . 532 Scatter/Gather
532
Linked List Items
533
Programming the DMA Controller for Scatter/Gather DMA
533
Example of Scatter/Gather DMA
533
Chapter 30: Lpc29Xx ETM/ETB Interface
536
How to Read this Chapter
536
Features
536
Introduction
536
Description
536
ETM9 Configuration
536
ETB Configuration
537
Block Diagram
537
Register Description
538
ETM Registers
538
ETB Registers
538
Abbreviations
539
Glossary
540
References
541
Legal Information
542
Definitions
542
Disclaimers
542
Trademarks
542
Tables
543
Table of Contents
555
Chapter 31: Supplementary Information
565
Advertisement
Advertisement
Related Products
NXP Semiconductors LPC2923
NXP Semiconductors LPC2926
NXP Semiconductors LPC2921
NXP Semiconductors LPC2925
NXP Semiconductors LPC2921FBD100
NXP Semiconductors LPC2925FBD100
NXP Semiconductors LPC2926FBD144
NXP Semiconductors LPC2927FBD144
NXP Semiconductors LPC2929FBD144
NXP Semiconductors LPC2929
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