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.

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

RM0008<br />

configured to generate port interrupts. The overcurrent ISR must promptly disable the V BUS<br />

generation.<br />

Figure 263. USB host only connection<br />

V DD<br />

(2)<br />

GPIO+IRQ<br />

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

STM32F107xx<br />

PA9<br />

OSC_IN<br />

OSC_OUT<br />

GPIO<br />

PA11<br />

PA12<br />

EN<br />

Overcurrent<br />

ST20x2<br />

Current limited<br />

power distribution<br />

switch (1)<br />

5V Pwr<br />

VBUS<br />

DM<br />

DP<br />

V SS<br />

USB Std-A connector<br />

ai17117<br />

1. ST20x2 only needed if the application has to support a V BUS powered device. A basic power switch can be<br />

used if 5 V are available on the application board.<br />

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

26.6.1 SRP-capable host<br />

SRP support is available through the SRP capable bit in the global USB configuration<br />

register (SRPCAP bit in OTG_FS_GUSBCFG). With the SRP feature enabled, the Host can<br />

save power by switching off the V BUS power while the USB session is suspended.<br />

The SRP host mode program model is described in detail in the A-device session request<br />

protocol) section.<br />

26.6.2 USB host states<br />

Host port power<br />

On-chip 5 V V BUS generation is not supported. For this reason, a charge pump or, if 5 V are<br />

available on the application board, a basic power switch, must be added externally to drive<br />

the 5 V V BUS line. The external charge pump can be driven by any GPIO output. When the<br />

application decides to power on V BUS using the chosen GPIO, it must also set the port<br />

power bit in the host port control <strong>and</strong> status register (PPWR bit in OTG_FS_HPRT).<br />

V BUS valid<br />

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

operations.<br />

Any unforeseen V BUS voltage drop below the V BUS valid threshold (4.25 V) leads to an OTG<br />

interrupt triggered by the session end detected bit (SEDET bit in OTG_FS_GOTGINT). The<br />

application is then required to remove the V BUS power <strong>and</strong> clear the port power bit. The<br />

charge pump overcurrent flag can also be used to prevent electrical damage. Connect the<br />

overcurrent flag output from the charge pump to any GPIO input <strong>and</strong> configure it to generate<br />

a port interrupt on the active level. The overcurrent ISR must promptly disable the V BUS<br />

generation <strong>and</strong> clear the port power bit.<br />

704/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!