Nxp semiconductors – NXP Semiconductors LPC24XX UM10237 User Manual
Page 782
![background image](/manuals/190592/782/background.png)
UM10237_4
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 04 — 26 August 2009
782 of 792
NXP Semiconductors
UM10237
Chapter 36: LPC24XX Supplementary information
Slave mode. . . . . . . . . . . . . . . . . . . . . . . . . . .360
DMA mode . . . . . . . . . . . . . . . . . . . . . . . . . . .361
Set Mode (Command: 0xF3, Data:
write 1 byte) . . . . . . . . . . . . . . . . . . . . . . . . . 365
Select Endpoint/Clear Interrupt (Command:
0x40 - 0x5F, Data: read 1 byte) . . . . . . . . . . 370
USB device controller initialization . . . . . . . 372
Slave mode operation . . . . . . . . . . . . . . . . . . 373
Interrupt generation . . . . . . . . . . . . . . . . . . . 373
Data transfer for OUT endpoints. . . . . . . . . . 373
Data transfer for IN endpoints. . . . . . . . . . . . 374
DMA operation . . . . . . . . . . . . . . . . . . . . . . . . 374
Transfer terminology. . . . . . . . . . . . . . . . . . . 374
USB device communication area . . . . . . . . . 375
Triggering the DMA engine. . . . . . . . . . . . . . 375
The DMA descriptor . . . . . . . . . . . . . . . . . . . 376
Next_DD_pointer . . . . . . . . . . . . . . . . . . . . . 377
DMA_mode. . . . . . . . . . . . . . . . . . . . . . . . . . 377
Next_DD_valid . . . . . . . . . . . . . . . . . . . . . . . 377
Isochronous_endpoint . . . . . . . . . . . . . . . . . 377
Max_packet_size . . . . . . . . . . . . . . . . . . . . . 377
DMA_buffer_length . . . . . . . . . . . . . . . . . . . 378
DMA_buffer_start_addr . . . . . . . . . . . . . . . . 378
DD_retired . . . . . . . . . . . . . . . . . . . . . . . . . . 378
DD_status . . . . . . . . . . . . . . . . . . . . . . . . . . 378
Packet_valid. . . . . . . . . . . . . . . . . . . . . . . . . 378
LS_byte_extracted . . . . . . . . . . . . . . . . . . . . 379
MS_byte_extracted . . . . . . . . . . . . . . . . . . . 379
Present_DMA_count . . . . . . . . . . . . . . . . . . 379
Message_length_position . . . . . . . . . . . . . . 379
Isochronous_packetsize_memory_address. 379
Non-isochronous endpoint operation . . . . . . 379
Setting up DMA transfers. . . . . . . . . . . . . . . 379
Finding DMA Descriptor. . . . . . . . . . . . . . . . 379
Transferring the data . . . . . . . . . . . . . . . . . . 380
Optimizing descriptor fetch . . . . . . . . . . . . . 380
Ending the packet transfer . . . . . . . . . . . . . . 380
No_Packet DD . . . . . . . . . . . . . . . . . . . . . . . 381
Isochronous endpoint operation. . . . . . . . . . 381
Setting up DMA transfers. . . . . . . . . . . . . . . 381
Finding the DMA Descriptor. . . . . . . . . . . . . 381
Transferring the Data . . . . . . . . . . . . . . . . . . 381
OUT endpoints. . . . . . . . . . . . . . . . . . . . . . . . 382
IN endpoints. . . . . . . . . . . . . . . . . . . . . . . . . . 382
DMA descriptor completion . . . . . . . . . . . . . 382
Auto Length Transfer Extraction (ATLE) mode
operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
OUT transfers in ATLE mode. . . . . . . . . . . . . 383
IN transfers in ATLE mode. . . . . . . . . . . . . . . 385
Setting up the DMA transfer. . . . . . . . . . . . . 385
Finding the DMA Descriptor. . . . . . . . . . . . . 385
Double buffered endpoint operation . . . . . . 386
Bulk endpoints . . . . . . . . . . . . . . . . . . . . . . . 386
Isochronous endpoints . . . . . . . . . . . . . . . . . 388
Chapter 14: LPC24XX USB Host controller
Basic configuration . . . . . . . . . . . . . . . . . . . . 389
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 389
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 390
Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
Pin description . . . . . . . . . . . . . . . . . . . . . . . 390
USB host usage note . . . . . . . . . . . . . . . . . . 391
Software interface . . . . . . . . . . . . . . . . . . . . 391
Register map . . . . . . . . . . . . . . . . . . . . . . . . 391
USB Host Register Definitions . . . . . . . . . . . 393
Chapter 15: LPC24XX USB OTG controller
Basic configuration . . . . . . . . . . . . . . . . . . . . 394
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 394
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 394