EasyManua.ls Logo

NXP Semiconductors LPC1769 - Page 824

NXP Semiconductors LPC1769
841 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM10360 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
User manual Rev. 3 — 20 December 2013 824 of 841
continued >>
NXP Semiconductors
UM10360
Chapter 35: Supplementary information
11.12 Serial interface engine command
description . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
11.12.1 Set Address (Command: 0xD0, Data: write
1 byte). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
11.12.2 Configure Device (Command: 0xD8, Data: write
1 byte). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
11.12.3 Set Mode (Command: 0xF3, Data: write
1 byte). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
11.12.4 Read Current Frame Number (Command: 0xF5,
Data: read 1 or 2 bytes) . . . . . . . . . . . . . . . . 247
11.12.5 Read Test Register (Command: 0xFD, Data: read
2 bytes). . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
11.12.6 Set Device Status (Command: 0xFE, Data: write 1
byte) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
11.12.7 Get Device Status (Command: 0xFE, Data: read 1
byte) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
11.12.8 Get Error Code (Command: 0xFF, Data: read 1
byte) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
11.12.9 Read Error Status (Command: 0xFB, Data: read 1
byte) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
11.12.10 Select Endpoint (Command: 0x00 - 0x1F, Data:
read 1 byte (optional)) . . . . . . . . . . . . . . . . . 250
11.12.11 Select Endpoint/Clear Interrupt (Command:
0x40 - 0x5F, Data: read 1 byte) . . . . . . . . . . 251
11.12.12 Set Endpoint Status (Command: 0x40 - 0x55,
Data: write 1 byte (optional)). . . . . . . . . . . . . 252
11.12.13 Clear Buffer (Command: 0xF2, Data: read 1 byte
(optional)) . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
11.12.14 Validate Buffer (Command: 0xFA, Data:
none) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
11.13 USB device controller initialization . . . . . . . 253
11.14 Slave mode operation . . . . . . . . . . . . . . . . . . 254
11.14.1 Interrupt generation . . . . . . . . . . . . . . . . . . . 254
11.14.2 Data transfer for OUT endpoints. . . . . . . . . . 255
11.14.3 Data transfer for IN endpoints. . . . . . . . . . . . 255
11.15 DMA operation . . . . . . . . . . . . . . . . . . . . . . . . 255
11.15.1 Transfer terminology. . . . . . . . . . . . . . . . . . . 256
11.15.2 USB device communication area . . . . . . . . . 256
11.15.3 Triggering the DMA engine. . . . . . . . . . . . . . 257
11.15.4 The DMA descriptor . . . . . . . . . . . . . . . . . . . 257
11.15.4.1 Next_DD_pointer . . . . . . . . . . . . . . . . . . . . . 258
11.15.4.2 DMA_mode. . . . . . . . . . . . . . . . . . . . . . . . . . 258
11.15.4.3 Next_DD_valid . . . . . . . . . . . . . . . . . . . . . . . 258
11.15.4.4 Isochronous_endpoint . . . . . . . . . . . . . . . . . 259
11.15.4.5 Max_packet_size . . . . . . . . . . . . . . . . . . . . . 259
11.15.4.6 DMA_buffer_length . . . . . . . . . . . . . . . . . . . 259
11.15.4.7 DMA_buffer_start_addr . . . . . . . . . . . . . . . . 259
11.15.4.8 DD_retired . . . . . . . . . . . . . . . . . . . . . . . . . . 259
11.15.4.9 DD_status . . . . . . . . . . . . . . . . . . . . . . . . . . 259
11.15.4.10 Packet_valid . . . . . . . . . . . . . . . . . . . . . . . . 260
11.15.4.11 LS_byte_extracted . . . . . . . . . . . . . . . . . . . 260
11.15.4.12 MS_byte_extracted . . . . . . . . . . . . . . . . . . . 260
11.15.4.13 Present_DMA_count. . . . . . . . . . . . . . . . . . 260
11.15.4.14 Message_length_position . . . . . . . . . . . . . . 260
11.15.4.15 Isochronous_packetsize_memory_address 260
11.15.5 Non-isochronous endpoint operation. . . . . . 260
11.15.5.1 Setting up DMA transfers. . . . . . . . . . . . . . . 260
11.15.5.2 Finding DMA Descriptor. . . . . . . . . . . . . . . . 261
11.15.5.3 Transferring the data . . . . . . . . . . . . . . . . . . 261
11.15.5.4 Optimizing descriptor fetch . . . . . . . . . . . . . 261
11.15.5.5 Ending the packet transfer. . . . . . . . . . . . . . 261
11.15.5.6 No_Packet DD . . . . . . . . . . . . . . . . . . . . . . . 262
11.15.6 Isochronous endpoint operation. . . . . . . . . . 262
11.15.6.1 Setting up DMA transfers. . . . . . . . . . . . . . . 262
11.15.6.2 Finding the DMA Descriptor. . . . . . . . . . . . . 262
11.15.6.3 Transferring the Data. . . . . . . . . . . . . . . . . . 263
OUT endpoints. . . . . . . . . . . . . . . . . . . . . . . . 263
IN endpoints. . . . . . . . . . . . . . . . . . . . . . . . . . 263
11.15.6.4 DMA descriptor completion . . . . . . . . . . . . . 263
11.15.6.5 Isochronous OUT Endpoint Operation
Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
11.15.7 Auto Length Transfer Extraction (ATLE) mode
operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
OUT transfers in ATLE mode. . . . . . . . . . . . . 265
IN transfers in ATLE mode. . . . . . . . . . . . . . . 266
11.15.7.1 Setting up the DMA transfer. . . . . . . . . . . . . 266
11.15.7.2 Finding the DMA Descriptor. . . . . . . . . . . . . 266
11.15.7.3 Transferring the Data. . . . . . . . . . . . . . . . . . 266
OUT endpoints. . . . . . . . . . . . . . . . . . . . . . . . 266
IN endpoints. . . . . . . . . . . . . . . . . . . . . . . . . . 266
11.15.7.4 Ending the packet transfer. . . . . . . . . . . . . . 267
OUT endpoints. . . . . . . . . . . . . . . . . . . . . . . . 267
IN endpoints. . . . . . . . . . . . . . . . . . . . . . . . . . 267
11.16 Double buffered endpoint operation . . . . . . 267
11.16.1 Bulk endpoints . . . . . . . . . . . . . . . . . . . . . . . 267
11.16.2 Isochronous endpoints. . . . . . . . . . . . . . . . . 269
Chapter 12: LPC176x/5x USB Host controller
12.1 How to read this chapter. . . . . . . . . . . . . . . . 270
12.2 Basic configuration . . . . . . . . . . . . . . . . . . . . 270
12.3 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 270
12.3.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
12.3.2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 271
12.4 Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
12.4.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . 272
12.4.1.1 USB host usage note. . . . . . . . . . . . . . . . . . 272

Table of Contents

Related product manuals