User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 404
UG585 (v1.11) September 27, 2016
Chapter 15: USB Host, Device, and OTG Controller
15.2.6 General Purpose Timers
The two independently programmable timers can be used to generate a timeout or to measure time
related activities.The programmable timers should not be confused with the controller’s interval
timers which are used by the controller to generate frame and microframe intervals and to generate
strobes for the host controller scheduler.
A timer is controlled by its control and load registers; usb.GPTIMERxCTRL and usb.GPTIMERxLD. The
load register contains the value that is loaded into the timer when a timer reset occurs.
The control register contains timer configuration and a data field which can be queried to determine
the running count value. The timer has granularity of 1 microsecond and can be programmed to
count for a little over 16 seconds. There are two modes for this timer; one-shot and looped count.
When the timer counter value transitions to 0, an interrupt is controllable using the usb.USBSTS and
usb.USBINTR registers.
The one-shot mode, usb.GPTIMERxCTRL [GPTMODE] = 0, selects a single timer countdown where the
timer will count down to 0, generate an interrupt and stop until the counter is reset by software.
In repeat, looped countdown, the timer will count down to 0, generate an interrupt and automatically
reload the counter from the usb.GPTIMERxLD register to begin to count down again.
15.3 Programming Overview and Reference
This section includes an overview of the programming model for host and device modes. The
programming model details for each mode are separately described in other sections of the Zynq-7000 AP
SoC Technical Reference Manual (TRM).
X-Ref Target - Figure 15-9
Figure 15-9: USB Port Controller and ULPI Link Wrapper Block Diagram
UG585_c15_38_030713
Control and Status Registers
Protocol
Engine
I/O Interface
APB
Port Controller Control
Host:
* Port State Machine
ULPI
Device:
* Port State Machine
* Chirp Control
* Suspend/Resume
Slave
* Transceiver Logic
ULPI Link
Wrapper
Similar to
UTMI+