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

The HNP program model is described in detail in Section 26.15: OTG_FS programming<br />

model.<br />

26.4.3 SRP dual role device<br />

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

OTG_FS_GUSBCFG) enables the OTG_FS Core to switch off the generation of V BUS for<br />

the A-Device to save power. Note that the A-Device is always in charge of driving V BUS<br />

regardless of the host or peripheral role of the OTG_FS.<br />

the SRP A/B-Device program model is described in detail in Section 26.15: OTG_FS<br />

programming model.<br />

26.5 USB peripheral<br />

Note:<br />

This section gives the functional description of the OTG_FS in the USB peripheral mode.<br />

The OTG_FS works as an USB peripheral in the following circumstances:<br />

● OTG B-Peripheral<br />

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

● OTG A-Peripheral<br />

– OTG A-Device state after the HNP switches the OTG_FS to its peripheral role<br />

●<br />

●<br />

B-Device<br />

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

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

OTG_FS_GUSBCFG) is cleared (see On-The-Go Rev1.3 par. 6.8.3).<br />

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

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

OTG_FS_GUSBCFG) is set to 1, forcing the OTG_FS core to work as a USB<br />

peripheral-only (see On-The-Go Rev1.3 par. 6.8.3). In this case, the ID line is<br />

ignored even if present on the USB connector.<br />

To build a bus-powered device implementation in case of the B-Device or Peripheral-only<br />

configuration, an external regulator has to be added that generates the V DD chip-supply<br />

from V BUS .<br />

Doc ID 13902 Rev 9 699/995

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

Saved successfully!

Ooh no, something went wrong!