Figure 514. A-Device Srp - ST STM32L4x6 Reference Manual

Table of Contents

Advertisement

RM0351
DRV_VBUS
VBUS_VALID
A_VALID
D+
D-
1. DRV_VBUS = V
VBUS_VALID = V
A_VALID = A-peripheral V
D+ = Data plus line
D- = Data minus line
1.
To save power, the application suspends and turns off port power when the bus is idle
by writing the port suspend and port power bits in the host port control and status
register.
2.
PHY indicates port power off by deasserting the VBUS_VALID signal.
3.
The device must detect SE0 for at least 2 ms to start SRP when V
4.
To initiate SRP, the device turns on its data line pull-up resistor for 5 to 10 ms. The
OTG_FS controller detects data-line pulsing.
5.
The device drives V
pulsing.
The OTG_FS controller interrupts the application on detecting SRP. The Session
request detected bit is set in Global interrupt status register (SRQINT set in
OTG_GINTSTS).
6.
The application must service the Session request detected interrupt and turn on the
port power bit by writing the port power bit in the host port control and status register.
The PHY indicates port power-on by asserting the VBUS_VALID signal.
7.
When the USB is powered, the device connects, completing the SRP process.
B-device session request protocol
The application must set the SRP-capable bit in the Core USB configuration register. This
enables the OTG_FS controller to initiate SRP as a B-device. SRP is a means by which the
OTG_FS controller can request a new session from the host.

Figure 514. A-device SRP

Suspend
1
2
3
Low
drive signal to the PHY
BUS
valid signal from PHY
BUS
level signal to PHY
BUS
above the A-device session valid (2.0 V minimum) for V
BUS
DocID024597 Rev 3
USB on-the-go full-speed (OTG_FS)
6
V
BUS
4
Data line pulsing
5
pulsing
7
Connect
ai15681
power is off.
BUS
BUS
1639/1693
1644

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32L4x6 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF