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 />

order to save power. The A-device is always in charge of driving V BUS regardless of the<br />

OTG_HS role (host or peripheral). The SRP A/B-device program model is described in detail<br />

in Section 31.13: OTG_HS programming model.<br />

31.5 USB functional description in peripheral mode<br />

The OTG_HS operates as an USB peripheral in the following circumstances:<br />

● OTG B-device<br />

OTG B-device default state if the B-side of USB cable is plugged in<br />

● OTG A-device<br />

OTG A-device state after the HNP switches the OTG_HS to peripheral role<br />

● B-Device<br />

If the ID line is present, functional and connected to the B-side of the USB cable, and<br />

the HNP-capable bit in the Global USB Configuration register (HNPCAP bit in<br />

OTG_HS_GUSBCFG) is cleared (see On-The-Go specification Revision 1.3 section<br />

6.8.3).<br />

● Peripheral only (see Figure 358: USB peripheral-only connection)<br />

The force peripheral mode bit in the Global USB configuration register (FDMOD in<br />

OTG_HS_GUSBCFG) is set to 1, forcing the OTG_HS core to operate in USB<br />

peripheral-only mode (see On-The-Go specification Revision 1.3 section 6.8.3). In this<br />

case, the ID line is ignored even if it is available on the USB connector.<br />

Note: To build a bus-powered device architecture in the B-Device or peripheral-only configuration,<br />

an external regulator must be added to generate the V DD supply voltage from V BUS .<br />

31.5.1 SRP-capable peripheral<br />

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

OTG_HS_GUSBCFG) configures the OTG_HS to support the session request protocol<br />

(SRP). As a result, it allows the remote A-device to save power by switching VBUS off when<br />

the USB session is suspended.<br />

The SRP peripheral mode program model is described in detail in Section : B-device<br />

session request protocol.<br />

31.5.2 Peripheral states<br />

Powered state<br />

The V BUS input detects the B-session valid voltage used to put the USB peripheral in the<br />

Powered state (see USB2.0 specification section 9.1). The OTG_HS then automatically<br />

connects the DP pull-up resistor to signal full-speed device connection to the host, and<br />

generates the session request interrupt (SRQINT bit in OTG_HS_GINTSTS) to notify the<br />

Powered state. The V BUS input also ensures that valid V BUS levels are supplied by the host<br />

during USB operations. If V BUS drops below the B-session valid voltage (for example<br />

because power disturbances occurred or the host port has been switched off), the OTG_HS<br />

automatically disconnects and the session end detected (SEDET bit in<br />

OTG_HS_GOTGINT) interrupt is generated to notify that the OTG_HS has exited the<br />

Powered state.<br />

Doc ID 018909 Rev 3 1160/1416

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

Saved successfully!

Ooh no, something went wrong!