29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

RM0008<br />

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

Figure 280. A-Device SRP<br />

DRV_VBUS<br />

VBUS_VALID<br />

Suspend<br />

1<br />

2 5<br />

6<br />

A_VALID<br />

V BUS pulsing<br />

D+<br />

3<br />

4 7<br />

Data line pulsing<br />

Connect<br />

D-<br />

Low<br />

1. DRV_VBUS = V BUS drive signal to the PHY<br />

VBUS_VALID = V BUS valid signal from PHY<br />

A_VALID = A-peripheral V BUS level signal to PHY<br />

D+ = Data plus line<br />

D- = Data minus line<br />

1. To save power, the application suspends <strong>and</strong> turns off port power when the bus is idle<br />

by writing the port suspend <strong>and</strong> port power bits in the Host port control <strong>and</strong> status<br />

register.<br />

2. PHY indicates port power off by deasserting the VBUS_VALID signal.<br />

3. The device must detect SE0 for at least 2 ms to start SRP when V BUS power is off.<br />

4. To initiate SRP, the device turns on its data line pull-up resistor for 5 to 10 ms. The<br />

OTG_FS controller detects data-line pulsing.<br />

5. The device drives V BUS above the A-device session valid (2.0 V minimum) for V BUS<br />

pulsing.<br />

The OTG_FS controller interrupts the application on detecting SRP. The Session<br />

request detected bit is set in Global interrupt status register (SRQINT set in<br />

OTG_FS_GINTSTS).<br />

6. The application must service the Session request detected interrupt <strong>and</strong> turn on the<br />

port power bit by writing the port power bit in the Host port control <strong>and</strong> status register.<br />

The PHY indicates port power-on by asserting the VBUS_VALID signal.<br />

7. When the USB is powered, the device connects, completing the SRP process.<br />

B-device session request protocol<br />

ai15681<br />

The application must set the SRP-capable bit in the Core USB configuration register. This<br />

enables the OTG_FS controller to initiate SRP as a B-device. SRP is a means by which the<br />

OTG_FS controller can request a new session from the host.<br />

Doc ID 13902 Rev 9 831/995

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

Saved successfully!

Ooh no, something went wrong!