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.

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

DP/DM. Pull-up and pull-down resistors are dynamically switched when the peripheral<br />

role is changed via the host negotiation protocol (HNP).<br />

● Pull-up/pull-down resistor ECN circuit<br />

The DP pull-up consists of 2 resistors controlled separately from the OTG_HS as per<br />

the resistor Engineering Change Notice applied to USB Rev2.0. The dynamic trimming<br />

of the DP pull-up strength allows to achieve a better noise rejection and Tx/Rx signal<br />

quality.<br />

● VBUS sensing comparators with hysteresis used to detect VBUS_VALID, A-B Session<br />

Valid and session-end voltage thresholds. They are used to drive the session request<br />

protocol (SRP), detect valid startup and end-of-session conditions, and constantly<br />

monitor the VBUS supply during USB operations.<br />

● VBUS pulsing method circuit used to charge/discharge VBUS through resistors during<br />

the SRP (weak drive).<br />

Caution: To guarantee a correct operation for the USB OTG HS peripheral, the AHB frequency<br />

should be higher than 30 MHz.<br />

31.4 OTG dual-role device<br />

31.4.1 ID line detection<br />

The host or peripheral (the default) role depends on the level of the ID input line. It is<br />

determined when the USB cable is plugged in and depends on which side of the USB cable<br />

is connected to the micro-AB receptacle:<br />

● If the B-side of the USB cable is connected with a floating ID wire, the integrated pull-up<br />

resistor detects a high ID level and the default peripheral role is confirmed. In this<br />

configuration the OTG_HS conforms to the FSM standard described in<br />

section 6.8.2. On-The-Go B-device of the USB On-The-Go Supplement, Revision 1.3.<br />

● If the A-side of the USB cable is connected with a grounded ID, the OTG_HS issues an<br />

ID line status change interrupt (CIDSCHG bit in the OTG_HS_GINTSTS register) for<br />

host software initialization, and automatically switches to host role. In this configuration<br />

the OTG_HS conforms to the FSM standard described by section 6.8.1: On-The-Go A-<br />

Device of the USB On-The-Go Supplement, Revision 1.3.<br />

31.4.2 HNP dual role device<br />

The HNP capable bit in the Global USB configuration register (HNPCAP bit in the OTG_HS_<br />

GUSBCFG register) configures the OTG_HS core to dynamically change from A-host to Adevice<br />

role and vice-versa, or from B-device to B-host role and vice-versa, according to the<br />

host negotiation protocol (HNP). The current device status is defined by the combination of<br />

the Connector ID Status bit in the Global OTG control and status register (CIDSTS bit in<br />

OTG_HS_GOTGCTL) and the current mode of operation bit in the global interrupt and<br />

status register (CMOD bit in OTG_HS_GINTSTS).<br />

The HNP programming model is described in detail in Section 31.13: OTG_HS<br />

programming model.<br />

31.4.3 SRP dual-role device<br />

The SRP capable bit in the global USB configuration register (SRPCAP bit in<br />

OTG_HS_GUSBCFG) configures the OTG_HS core to switch V BUS off for the A-device in<br />

1159/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!