gusbcfg
Module Instance | Base Address | Register Address |
---|---|---|
usb0 | 0xFFB00000 | 0xFFB0000C |
usb1 | 0xFFB40000 | 0xFFB4000C |
Offset: 0xC
Access: RW
Bit Fields | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
corrupttxpkt WO 0x0 |
forcedevmode RW 0x0 |
forcehstmode RW 0x0 |
txenddelay RW 0x0 |
Reserved |
ulpi RW 0x0 |
indicator RW 0x0 |
complement RW 0x0 |
termseldlpulse RW 0x0 |
ulpiextvbusindicator RW 0x0 |
ulpiextvbusdrv RW 0x0 |
ulpiclksusm RW 0x0 |
ulpiautores RW 0x0 |
Reserved |
||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Reserved |
usbtrdtim RW 0x5 |
hnpcap RW 0x0 |
srpcap RW 0x0 |
ddrsel RW 0x0 |
physel RO 0x0 |
fsintf RO 0x0 |
ulpi_utmi_sel RO 0x1 |
phyif RO 0x0 |
toutcal RW 0x0 |
gusbcfg Fields
Bit | Name | Description | Access | Reset | ||||||
---|---|---|---|---|---|---|---|---|---|---|
31 | corrupttxpkt | Mode: Host and device. This bit is for debug purposes only. Never Set this bit to 1. The application should always write 0 to this bit.
|
WO | 0x0 | ||||||
30 | forcedevmode | Mode:Host and device. Writing a 1 to this bit forces the core to device mode. After setting the force bit, the application must wait at least 25 ms before the change to take effect. When the simulation is in scale down mode, waiting for 500 micro-sec is sufficient.
|
RW | 0x0 | ||||||
29 | forcehstmode | Mode:Host and device. Writing a 1 to this bit forces the core to host mode After setting the force bit, the application must wait at least 25 ms before the change to take effect. When the simulation is in scale down mode, waiting for 500 micro-sec is sufficient.
|
RW | 0x0 | ||||||
28 | txenddelay | Mode: Device only. Set to non UTMI+.
|
RW | 0x0 | ||||||
25 | ulpi | Mode:Host only. Controls circuitry built into the PHY for protecting the ULPI interface when the link tri-states STP and data. Any pull-ups or pull-downs employed by this feature can be disabled.
|
RW | 0x0 | ||||||
24 | indicator | Mode:Host only. Controls wether the Complement Output is qualified with the Internal Vbus Valid comparator before being used in the Vbus State in the RX CMD.
|
RW | 0x0 | ||||||
23 | complement | Mode:Host only. Controls the PHY to invert the ExternalVbusIndicator inputsignal, generating the ComplementOutput. Please refer to the ULPI Spec for more detail.
|
RW | 0x0 | ||||||
22 | termseldlpulse | Mode:Device only. This bit selects utmi_termselect to drive data line pulse during SRP.
|
RW | 0x0 | ||||||
21 | ulpiextvbusindicator | Mode:Host only. This bit indicates to the ULPI PHY to use an external VBUS overcurrent indicator.
|
RW | 0x0 | ||||||
20 | ulpiextvbusdrv | Mode:Host only. This bit selects between internal or external supply to drive 5V on VBUS, in ULPI PHY.
|
RW | 0x0 | ||||||
19 | ulpiclksusm | Mode:Host and Device. This bit sets the ClockSuspendM bit in the Interface Control register on the ULPI PHY. This bit applies only in serial or carkit modes.
|
RW | 0x0 | ||||||
18 | ulpiautores | Mode:Host and Device. This bit sets the AutoResume bit in the Interface Control register on the ULPI PHY.
|
RW | 0x0 | ||||||
13:10 | usbtrdtim | Mode: Device only. Sets the turnaround time in PHY clocks. Specifies the response time for a MAC request to the Packet FIFO Controller (PFC) to fetch data from the DFIFO (SPRAM). The value is calculated for the minimum AHB frequency of 30 MHz. USB turnaround time is critical for certification where long cables and 5-Hubs are used, so If you need the AHB to run at less than 30 MHz, and If USB turnaround time is not critical, these bits can be programmed to a larger value.
|
RW | 0x5 | ||||||
9 | hnpcap | Mode:Host and Device. The application uses this bit to control the otg core's HNP capabilities.
|
RW | 0x0 | ||||||
8 | srpcap | Mode:Host and Device. The application uses this bit to control the otg core SRP capabilities. If the core operates as a non-SRP-capable B-device, it cannot request the connected A-device (host) to activate VBUS and start a session. This bit is writable only If an SRP mode was specified for Mode of Operation in coreConsultant (parameter OTG_MODE). Otherwise, reads Return 0.
|
RW | 0x0 | ||||||
7 | ddrsel | Mode:Host and Device. The application uses this bit to select a Single Data Rate (SDR) ULPI interface. DDR is not supported.
|
RW | 0x0 | ||||||
6 | physel | Mode:Host and Device. The application uses USB 2.0.
|
RO | 0x0 | ||||||
5 | fsintf | Mode:Host and Device. The application can Set this bit to select between the 3- and 6-pin interfaces, and access is Read and Write.
|
RO | 0x0 | ||||||
4 | ulpi_utmi_sel | Mode:Host and Device. The application uses ULPI Only in 8bit mode.
|
RO | 0x1 | ||||||
3 | phyif | Mode:Host and Device. This application uses a ULPI interface only. Hence only 8-bit setting is relevant. This setting should not matter since UTMI is not enabled.
|
RO | 0x0 | ||||||
2:0 | toutcal | Mode:Host and Device. The number of PHY clocks that the application programs in this field is added to the high-speed/full-speed interpacket timeout duration in the core to account for any additional delays introduced by the PHY. This can be required, because the delay introduced by the PHY in generating the linestate condition can vary from one PHY to another. The USB standard timeout value for high-speed operation is 736 to 816 (inclusive) bit times. The USB standard timeout value for full-speed operation is 16 to 18 (inclusive) bit times. The application must program this field based on the speed of enumeration. The number of bit times added per PHY clock are: High-speed operation: -One 30-MHz PHY clock = 16 bit times -One 60-MHz PHY clock = 8 bit times Full-speed operation: -One 30-MHz PHY clock = 0.4 bit times -One 60-MHz PHY clock = 0.2 bit times -One 48-MHz PHY clock = 0.25 bit times |
RW | 0x0 |