29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

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 full-speed (OTG_FS)<br />

RM0008<br />

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

V DD<br />

(2)<br />

5V to V DD<br />

Volatge regulator (1)<br />

<strong>STM32F105xx</strong><br />

STM32F107xx<br />

OSC_IN<br />

OSC_OUT<br />

PA9<br />

PA11<br />

PA12<br />

VBUS<br />

DM<br />

DP<br />

V SS<br />

USB Std-B connector<br />

ai17116<br />

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

2. V DD range between 2 V <strong>and</strong> 3.6 V.<br />

26.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 V BUS 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 />

26.5.2 Peripheral states<br />

Powered state<br />

The V BUS 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 <strong>and</strong> generates the<br />

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

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

operations. If a drop in V BUS 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 <strong>and</strong> 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 <strong>and</strong> the OTG_FS enters the Default state.<br />

700/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!