
UM10237_2
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 02 — 19 December 2008
782 of 792
NXP Semiconductors
UM10237
Chapter 36: LPC24XX Supplementary information
Select Endpoint/Clear Interrupt (Command:
0x40 - 0x5F, Data: read 1 byte) . . . . . . . . . . 369
Validate Buffer (Command: 0xFA, Data: none). . .
370
USB device controller initialization . . . . . . . 371
Slave mode operation . . . . . . . . . . . . . . . . . . 372
Interrupt generation . . . . . . . . . . . . . . . . . . . 372
Data transfer for OUT endpoints. . . . . . . . . . 372
Data transfer for IN endpoints. . . . . . . . . . . . 373
DMA operation . . . . . . . . . . . . . . . . . . . . . . . . 373
Transfer terminology. . . . . . . . . . . . . . . . . . . 373
USB device communication area . . . . . . . . . 374
Triggering the DMA engine. . . . . . . . . . . . . . 374
The DMA descriptor . . . . . . . . . . . . . . . . . . . 375
Next_DD_pointer . . . . . . . . . . . . . . . . . . . . . 376
DMA_mode. . . . . . . . . . . . . . . . . . . . . . . . . . 376
Next_DD_valid . . . . . . . . . . . . . . . . . . . . . . . 376
Isochronous_endpoint . . . . . . . . . . . . . . . . . 376
Max_packet_size . . . . . . . . . . . . . . . . . . . . . 376
DMA_buffer_length. . . . . . . . . . . . . . . . . . . . 377
DMA_buffer_start_addr . . . . . . . . . . . . . . . . 377
DD_retired . . . . . . . . . . . . . . . . . . . . . . . . . . 377
DD_status . . . . . . . . . . . . . . . . . . . . . . . . . . 377
Packet_valid. . . . . . . . . . . . . . . . . . . . . . . . . 377
LS_byte_extracted . . . . . . . . . . . . . . . . . . . . 378
MS_byte_extracted . . . . . . . . . . . . . . . . . . . 378
Present_DMA_count . . . . . . . . . . . . . . . . . . 378
Message_length_position . . . . . . . . . . . . . . 378
Isochronous_packetsize_memory_address. 378
Non-isochronous endpoint operation . . . . . . 378
Setting up DMA transfers. . . . . . . . . . . . . . . 378
Finding DMA Descriptor . . . . . . . . . . . . . . . . 378
Transferring the data . . . . . . . . . . . . . . . . . . 379
Optimizing descriptor fetch . . . . . . . . . . . . . 379
Ending the packet transfer . . . . . . . . . . . . . . 379
No_Packet DD . . . . . . . . . . . . . . . . . . . . . . . 380
Isochronous endpoint operation. . . . . . . . . . 380
Setting up DMA transfers. . . . . . . . . . . . . . . 380
Finding the DMA Descriptor. . . . . . . . . . . . . 380
Transferring the Data . . . . . . . . . . . . . . . . . . 380
OUT endpoints. . . . . . . . . . . . . . . . . . . . . . . . 381
IN endpoints. . . . . . . . . . . . . . . . . . . . . . . . . . 381
DMA descriptor completion . . . . . . . . . . . . . 381
Auto Length Transfer Extraction (ATLE) mode
operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
OUT transfers in ATLE mode. . . . . . . . . . . . . 382
IN transfers in ATLE mode. . . . . . . . . . . . . . . 384
Setting up the DMA transfer. . . . . . . . . . . . . 384
Finding the DMA Descriptor. . . . . . . . . . . . . 384
Double buffered endpoint operation . . . . . . 385
Bulk endpoints . . . . . . . . . . . . . . . . . . . . . . . 385
Isochronous endpoints . . . . . . . . . . . . . . . . . 387
Chapter 14: LPC24XX USB Host controller
Basic configuration . . . . . . . . . . . . . . . . . . . . 388
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 388
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 389
Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
Pin description . . . . . . . . . . . . . . . . . . . . . . . 389
USB host usage note . . . . . . . . . . . . . . . . . . 390
Software interface . . . . . . . . . . . . . . . . . . . . 390
Register map . . . . . . . . . . . . . . . . . . . . . . . . 390
USB Host Register Definitions . . . . . . . . . . . 392
Chapter 15: LPC24XX USB OTG controller
Basic configuration . . . . . . . . . . . . . . . . . . . . 393
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 393
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 393
Modes of operation . . . . . . . . . . . . . . . . . . . . 394
Pin configuration . . . . . . . . . . . . . . . . . . . . . . 394
Connecting USB as a two-port host . . . . . . . 398
Register description . . . . . . . . . . . . . . . . . . . 399