DocID018909 Rev 11
RM0090
USB on-the-go full-speed (OTG_FS)
1368
the 5 V V
BUS
line. The external charge pump can be driven by any GPIO output. This is
required for the OTG A-host, A-device and host-only configurations.
The V
BUS
input ensures that valid V
BUS
levels are supplied by the charge pump during USB
operations while the charge pump overcurrent output can be input to any GPIO pin
configured to generate port interrupts. The overcurrent ISR must promptly disable the V
BUS
generation.
The V
BUS
pin can be freed by disabling the V
BUS
sensing option. This is done by setting the
NOVBUSSENS bit in the OTG_FS_GCCFG register. In this case the V
BUS
is considered
internally to be always at V
BUS
valid level (5 V).
Figure 389. USB host-only connection
1. STMPS2141STR needed only if the application has to support a V
BUS
powered device. A basic power
switch can be used if 5 V are available on the application board.
2. V
DD
range is between 2 V and 3.6 V.
34.6.1 SRP-capable
host
SRP support is available through the SRP capable bit in the global USB configuration
register (SRPCAP bit in OTG_FS_GUSBCFG). With the SRP feature enabled, the host can
save power by switching off the V
BUS
power while the USB session is suspended.
The SRP host mode program model is described in detail in the
section.
34.6.2 USB
host
states
Host port power
On-chip 5 V V
BUS
generation is not supported. For this reason, a charge pump or, if 5 V are
available on the application board, a basic power switch, must be added externally to drive
the 5 V V
BUS
line. The external charge pump can be driven by any GPIO output. When the
application decides to power on V
BUS
using the chosen GPIO, it must also set the port
power bit in the host port control and status register (PPWR bit in OTG_FS_HPRT).
V
BUS
valid
When HNP or SRP is enabled the VBUS sensing pin (PA9) pin should be connected to
V
BUS
. The V
BUS
input ensures that valid V
BUS
levels are supplied by the charge pump
3$
069
3$
3$
*3,2,54
*3,2
6700&8
26&B,1
26&B287
9
''
(1
2YHUFXUUHQW
93ZU
67036675
&XUUHQWOLPLWHG
SRZHUGLVWULEXWLRQ
VZLWFK
9%86
'0
'3
9
66
86%6WG$
FRQQHFWRU