User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 470
UG585 (v1.11) September 27, 2016
Chapter 15: USB Host, Device, and OTG Controller
15.14.1 Hardware Assistance Features
The hardware assist mechanisms provide automated response and sequencing that might not be
possible using software due to significant interrupt latency response times. The use of this additional
circuitry is optional and can be used to assist the three sequences below.
Auto-Reset [HAAR]: Reset after a connect event.
Data-Pulse [HADP]: Generates a 7 ms pulse on the DP signal.
B-Disconnect to A-Connect Event [HABA].
Auto-Reset Option
When the usb.OTGSC [HAAR] bit is set to 1, the host controller will automatically start a reset after a
connect event. This shortcuts the normal process where the software is notified of the connect event
and starts the reset. The software will still receive notification of the connect event but should not
write the reset bit when the [HAAR] bit is set = 1. The software will be notified again after the reset
is complete via the enable change bit in the PORTSC1 register which cause a port change interrupt.
This hardware assistance feature will ensure the OTG parameter TB_ACON_BSE0_MAX = 1 ms is met.
Data-Pulse
Writing a 1 to usb.OTGSC [HADP] bit will start a data pulse of approximately 7 ms in duration and
then automatically cease the data pulsing. During the data pulse, the DP signal will be set and then
cleared. This automation relieves the software from accurately controlling the data-pulse duration.
During the data pulse, the HCD can poll to see that the [HADP] and [DP] bits have returned low to
recognize the completion or simply launch the data pulse and wait to see if a VBUS Valid interrupt
occurs when the A-side supplies bus power.
This hardware assistance feature will ensure data pulsing meets the OTG requirement of > 5 ms and
< 10 ms.
B-Disconnect to A-Connect
During HNP, the B-Disconnect occurs from the OTG A_suspend state and within 3 ms, the A-device
must enable the pull-up on the DP signal in the A-peripheral state. When usb.OTGSC [HABA] is set =
1, the Host Controller port is in suspend mode, and the device disconnects, then this hardware assist
begins.
1. Reset the OTG controller.
2. Set the OTG controller into device mode.
3. Write the device run bit to a 1 and enable necessary interrupts including:
4. USB Reset Enable [URE]; enables interrupt on USB bus reset to device
5. Sleep Enable [SLE]; enables interrupt on device suspend
6. Port Change Detect Enable [PCE]; enables interrupt on device connect