User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 426
UG585 (v1.11) September 27, 2016
Chapter 15: USB Host, Device, and OTG Controller
Should a setup arrive after the data stage is primed, the device controller automatically clears the
prime status (usb.ENDPTSTATUS) to enforce data ordering with the setup packet.
Note: The dQH.Mult field must be set to 00 for bulk, interrupt, and control endpoints. Error
handling of data phase packets is the same as bulk packets described previously.
Status Phase
Similar to the data phase, the DCD must create a transfer descriptor (with byte length equal 0) and
prime the endpoint for the status phase. The DCD must also perform the same checks of the
usb.ENDPTSETUPSTAT as described above in the data phase.
Note: The dQH.Mult bit field must be set to 00 for bulk, interrupt, and control endpoints. Error
handling of data phase packets is the same as bulk packets described previously.
Control Endpoint Bus Response
The device controller response to packets on a control endpoint according to the device controller
state is shown in Table 15-11. The normal operating mode is shaded.
15.7 Device Endpoint Descriptor Reference
This section contains the definitions of the endpoint descriptors for the device controller. There
usages are described in other chapter sections, including section 15.5.1 Link-list Endpoint
Descriptors.
15.7.1 Endpoint Queue Head Descriptor (dQH)
15.7.2 Endpoint Transfer Descriptor (dTD)
Table 15-11: USB Device Control Endpoint Bus Response
Packet
Identifier
Stall Bit
[TXS]
Endpoint
Not Primed
Endpoint
Primed
Buffer
Underflow
Buffer
Overflow
Endpoint
Not Enabled
Setup
Lockout
Setup ACK ACK ACK N/A SYSERR BTO
IN STALL NAK Transmit BS Error N/A BTO N/A
OUT STALL NAK
Receive and
then
NYET/ACK
N/A NAK BTO N/A
Ping STALL NAK
ACK N/A N/A BTO N/A
Invalid Ignore Ignore Ignore Ignore Ignore BTO Ignore
Notes:
1. BS Error — Force Bit Stuff Error.
2. NYET/ACK — NYET unless the Transfer Descriptor has packets remaining according to the USB variable length
protocol then ACK.
3. SYSERR — System error should never occur when the latency FIFOs are correctly sized and the DCD is responsive.
4. BTO — Bus Time Out.