09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>RM0090</strong> USB on-the-go full-speed (OTG_FS)<br />

Figure 358. USB peripheral-only connection<br />

1. Use a regulator to build a bus-powered device.<br />

2. VDD range between 2 V and 3.6 V.<br />

30.5.1 SRP-capable peripheral<br />

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

OTG_FS_GUSBCFG) enables the OTG_FS to support the session request protocol (SRP).<br />

In this way, it allows the remote A-device to save power by switching off VBUS while the USB<br />

session is suspended.<br />

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

request protocol section.<br />

30.5.2 Peripheral states<br />

Powered state<br />

STM32F4xx<br />

STM32F4xx<br />

OSC_IN<br />

OSC_OUT<br />

V DD<br />

PA9<br />

PA11<br />

PA12<br />

5V to V DD<br />

Volatge regulator (1)<br />

The VBUS input detects the B-Session valid voltage by which the USB peripheral is allowed<br />

to enter the powered state (see USB2.0 par9.1). The OTG_FS then automatically connects<br />

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

session request interrupt (SRQINT bit in OTG_FS_GINTSTS) to notify the powered state.<br />

The VBUS input also ensures that valid VBUS levels are supplied by the host during USB<br />

operations. If a drop in VBUS below B-session valid happens to be detected (for instance<br />

because of a power disturbance or if the host port has been switched off), the OTG_FS<br />

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

OTG_FS_GOTGINT) interrupt is generated to notify that the OTG_FS has exited the<br />

powered state.<br />

In the powered state, the OTG_FS expects to receive some reset signaling from the host.<br />

No other USB operation is possible. When a reset signaling is received the reset detected<br />

interrupt (USBRST in OTG_FS_GINTSTS) is generated. When the reset signaling is<br />

complete, the enumeration done interrupt (ENUMDNE bit in OTG_FS_GINTSTS) is<br />

generated and the OTG_FS enters the Default state.<br />

VBUS<br />

Doc ID 018909 Rev 3 1024/1416<br />

DM<br />

DP<br />

V SS<br />

USB Std-B connector<br />

MS19905V2

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

Saved successfully!

Ooh no, something went wrong!