English
Language : 

UM10360 Datasheet, PDF (822/835 Pages) NXP Semiconductors – LPC17xx User manual
NXP Semiconductors
UM10360
Chapter 35: LPC17xx Supplementary information
12.9
12.10
12.11
12.12
12.13
12.14
13
14
14.1
14.2
14.3
15
15.1
15.2
15.3
15.4
15.4.1
15.4.2
15.4.3
15.4.4
15.4.5
15.4.6
15.4.7
15.4.8
Read Error Status (Command: 0xFB, Data: read 1
byte) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Select Endpoint (Command: 0x00 - 0x1F, Data:
read 1 byte (optional)) . . . . . . . . . . . . . . . . . 247
Select Endpoint/Clear Interrupt (Command:
0x40 - 0x5F, Data: read 1 byte) . . . . . . . . . . 248
Set Endpoint Status (Command: 0x40 - 0x55,
Data: write 1 byte (optional)). . . . . . . . . . . . . 249
Clear Buffer (Command: 0xF2, Data: read 1 byte
(optional)) . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Validate Buffer (Command: 0xFA, Data:
none) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
USB device controller initialization . . . . . . . 250
Slave mode operation . . . . . . . . . . . . . . . . . . 251
Interrupt generation . . . . . . . . . . . . . . . . . . . 251
Data transfer for OUT endpoints. . . . . . . . . . 252
Data transfer for IN endpoints. . . . . . . . . . . . 252
DMA operation . . . . . . . . . . . . . . . . . . . . . . . . 252
Transfer terminology. . . . . . . . . . . . . . . . . . . 253
USB device communication area . . . . . . . . . 253
Triggering the DMA engine. . . . . . . . . . . . . . 254
The DMA descriptor . . . . . . . . . . . . . . . . . . . 254
Next_DD_pointer . . . . . . . . . . . . . . . . . . . . . 255
DMA_mode. . . . . . . . . . . . . . . . . . . . . . . . . . 256
Next_DD_valid . . . . . . . . . . . . . . . . . . . . . . . 256
Isochronous_endpoint . . . . . . . . . . . . . . . . . 256
Max_packet_size . . . . . . . . . . . . . . . . . . . . . 256
DMA_buffer_length. . . . . . . . . . . . . . . . . . . . 256
DMA_buffer_start_addr . . . . . . . . . . . . . . . . 256
DD_retired . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Chapter 12: LPC17xx USB Host controller
1
How to read this chapter . . . . . . . . . . . . . . . . 267
2
Basic configuration . . . . . . . . . . . . . . . . . . . . 267
3
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 267
3.1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
3.2
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 268
Chapter 13: LPC17xx USB OTG controller
1
How to read this chapter . . . . . . . . . . . . . . . . 271
2
Basic configuration . . . . . . . . . . . . . . . . . . . . 271
3
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 271
4
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
5
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 272
6
Modes of operation . . . . . . . . . . . . . . . . . . . . 272
7
Pin configuration . . . . . . . . . . . . . . . . . . . . . . 273
15.4.9 DD_status . . . . . . . . . . . . . . . . . . . . . . . . . . 256
15.4.10 Packet_valid. . . . . . . . . . . . . . . . . . . . . . . . . 257
15.4.11 LS_byte_extracted . . . . . . . . . . . . . . . . . . . . 257
15.4.12 MS_byte_extracted . . . . . . . . . . . . . . . . . . . 257
15.4.13 Present_DMA_count . . . . . . . . . . . . . . . . . . 257
15.4.14
15.4.15
15.5
15.5.1
15.5.2
Message_length_position . . . . . . . . . . . . . . 257
Isochronous_packetsize_memory_address. 257
Non-isochronous endpoint operation . . . . . . 258
Setting up DMA transfers. . . . . . . . . . . . . . . 258
Finding DMA Descriptor. . . . . . . . . . . . . . . . 258
15.5.3 Transferring the data . . . . . . . . . . . . . . . . . . 258
15.5.4 Optimizing descriptor fetch . . . . . . . . . . . . . 258
15.5.5 Ending the packet transfer . . . . . . . . . . . . . . 259
15.5.6 No_Packet DD . . . . . . . . . . . . . . . . . . . . . . . 259
15.6
15.6.1
15.6.2
Isochronous endpoint operation. . . . . . . . . . 259
Setting up DMA transfers. . . . . . . . . . . . . . . 259
Finding the DMA Descriptor. . . . . . . . . . . . . 260
15.6.3 Transferring the Data . . . . . . . . . . . . . . . . . . 260
15.6.4 DMA descriptor completion . . . . . . . . . . . . . 260
15.6.5 Isochronous OUT Endpoint Operation
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
15.7
Auto Length Transfer Extraction (ATLE) mode
operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
15.7.1
15.7.2
15.7.3
Setting up the DMA transfer. . . . . . . . . . . . . 263
Finding the DMA Descriptor. . . . . . . . . . . . . 263
Transferring the Data . . . . . . . . . . . . . . . . . . 263
15.7.4 Ending the packet transfer . . . . . . . . . . . . . . 264
16
Double buffered endpoint operation . . . . . . 264
16.1
Bulk endpoints . . . . . . . . . . . . . . . . . . . . . . . 264
16.2
Isochronous endpoints . . . . . . . . . . . . . . . . . 266
4
4.1
4.1.1
4.2
4.2.1
4.2.2
Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Pin description . . . . . . . . . . . . . . . . . . . . . . . 269
USB host usage note . . . . . . . . . . . . . . . . . . 269
Software interface . . . . . . . . . . . . . . . . . . . . 269
Register map . . . . . . . . . . . . . . . . . . . . . . . . 269
USB Host Register Definitions . . . . . . . . . . . 270
7.1
Connecting the USB port to an external OTG
transceiver . . . . . . . . . . . . . . . . . . . . . . . . . . 273
7.2
Connecting USB as a host. . . . . . . . . . . . . . 274
7.3
Connecting USB as device . . . . . . . . . . . . . 274
8
Register description . . . . . . . . . . . . . . . . . . . 275
8.1
USB Interrupt Status Register (USBIntSt -
0x5000 C1C0) . . . . . . . . . . . . . . . . . . . . . . . 275
continued >>
UM10360_1
User manual
Rev. 01 — 4 January 2010
© NXP B.V. 2010. All rights reserved.
822 of 835