09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>RM0090</strong> USB on-the-go high-speed (OTG_HS)<br />

Bits 13:10 TRDT: USB turnaround time<br />

Sets the turnaround time in PHY clocks.<br />

The formula below gives the value of TRDT:<br />

TRDT = 4 × AHB clock frequency+ 1 PHY clock frequency.<br />

For example:<br />

If AHB clock frequency = 72 MHz (PHY Clock frequency = 48 MHz), the TRDT must be set to<br />

9.<br />

If AHB clock frequency = 48 Mhz (PHY Clock frequency = 48 MHz), the TRDT must be set to<br />

5.<br />

Note: Only accessible in peripheral mode.<br />

Bit 9 HNPCAP: HNP-capable<br />

The application uses this bit to control the OTG_HS controller’s HNP capabilities.<br />

0: HNP capability is not enabled<br />

1: HNP capability is enabled<br />

Note: Accessible in both peripheral and host modes.<br />

Bit 8 SRPCAP: SRP-capable<br />

The application uses this bit to control the OTG_HS controller’s SRP capabilities. If the core<br />

operates as a nonSRP-capable B-device, it cannot request the connected A-device (host) to<br />

activate V BUS and start a session.<br />

0: SRP capability is not enabled<br />

1: SRP capability is enabled<br />

Note: Accessible in both peripheral and host modes.<br />

Bit 7 Reserved, must be kept at reset value.<br />

Bit 6 PHSEL: USB 2.0 high-speed ULPI PHY or USB 1.1 full-speed serial transceiver select<br />

0: USB 2.0 high-speed ULPI PHY<br />

1: USB 1.1 full-speed serial transceiver<br />

Bits 5:3 Reserved, must be kept at reset value.<br />

Bits 2:0 TOCAL: FS timeout calibration<br />

The number of PHY clocks that the application programs in this field is added to the fullspeed<br />

interpacket timeout duration in the core to account for any additional delays introduced<br />

by the PHY. This can be required, because the delay introduced by the PHY in generating the<br />

line state condition can vary from one PHY to another.<br />

The USB standard timeout value for full-speed operation is 16 to 18 (inclusive) bit times. The<br />

application must program this field based on the speed of enumeration. The number of bit<br />

times added per PHY clock is 0.25 bit times.<br />

Doc ID 018909 Rev 3 1186/1416

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!