User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 416
UG585 (v1.11) September 27, 2016
Chapter 15: USB Host, Device, and OTG Controller
Endpoint Configuration Registers
15.5.4 Endpoint Initialization
After hardware reset, all endpoints except endpoint 0 are uninitialized and disabled. The DCD must
configure and enable each endpoint by writing to the configuration register usb.ENDPTCTRLx. Each
32-bit usb.ENDPTCTRLx is split into an upper and lower half. The lower half of usb.ENDPTCTRLx
register is used to configure the receive or OUT endpoint and the upper half is likewise used to
configure the corresponding transmit or IN endpoint. Control endpoints must be configured the
same in both the upper and lower half of the usb.ENDPTCTRLx register otherwise the behavior is
undefined. Table 15-6 shows how to construct a configuration word for endpoint initialization.
Table 15-5: USB Device Endpoint Configuration Register Summary
Register Name
Description and Register Bit Field
Type
Tx Rx
ENDPTCTRL0
Software can control the STALL behavior for Rx and Tx
transactions to the control endpoint. Software can read the
control endpoint configuration.
(see below)
[TXS], 16 [RXS], 0 Read-write.
Others: always enabled, Tx and Rx capable. Read-only.
ENDPTCTRL {11:0}
Software configuration and control bits for each endpoint.
Refer to Table 15-6, page 416.
Read-write.
Force controller to send Stall responses.
[TXS], 16 [RXS], 0
Always set = 0 (datapath includes FIFOs).
[TXS], 17 [RXS], 1
Select endpoint type (Control, ISO, Bulk, Interrupt).
[TXS], 19:18 [RXS], 3:2
Always set = 0 (test mode to ignore data toggling).
[TXS], 21 [RXS], 5
Data toggle reset (write 1 to synchronize data PIDs).
Write-one.
[TXS], 22 [RXS], 6
Endpoint enable.
Read-write.
[TXS], 23 [RXS], 7
Table 15-6: USB Device Endpoint Initialization
Field Value Meaning
Data Toggle Reset, usb.ENDPTCTRLx [TXR] 1 Restart transfers with DATA0 PID.
Date Toggle Inhibit, usb.ENDPTCTRLx [TXI] 0 Toggle between DATA0 and DATA1 PIDs.