Figure 284. B-Device Hnp - ST STM32F101xx Reference Manual

Arm-based 32-bit mcus
Hide thumbs Also See for STM32F101xx:
Table of Contents

Advertisement

OTG_FS programming model

Figure 284. B-device HNP

OTG core
D+
D-
D+PULLDOWN
D-PULLDOWN
1. D+PULLDOWN = signal from core to PHY to enable/disable the pull-down on the D+ line inside the PHY.
D-PULLDOWN = signal from core to PHY to enable/disable the pull-down on the D- line inside the PHY.
1.
The A-device sends the SetFeature b_hnp_enable descriptor to enable HNP support.
The OTG_FS controller's ACK response indicates that it supports HNP. The application
must set the Device HNP enable bit in the OTG Control and status register to indicate
HNP support.
The application sets the HNP request bit in the OTG Control and status register to
indicate to the OTG_FS controller to initiate HNP.
2.
When it has finished using the bus, the A-device suspends by writing the Port suspend
bit in the Host port control and status register.
The OTG_FS controller sets the Early suspend bit in the Core interrupt register after 3
ms of bus idleness. Following this, the OTG_FS controller sets the USB suspend bit in
the Core interrupt register.
The OTG_FS controller disconnects and the A-device detects SE0 on the bus,
indicating HNP. The OTG_FS controller asserts the DP pull down and DM pull down in
the PHY to indicate its assumption of the host role.
The A-device responds by activating its OTG_FS_DP pull-up resistor within 3 ms of
detecting SE0. The OTG_FS controller detects this as a connect.
The OTG_FS controller sets the Host negotiation success status change interrupt in
the OTG Interrupt status register, indicating the HNP status. The application must read
the Host negotiation success bit in the OTG Control and status register to determine
812/813
1
Device
Suspend 2
4
3
Host
6
5
Reset
Traffic
Traffic
RM0034
Device
8
Connect
7
ai15684

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Stm32f102xxStm32f103xxStm32f105xxStm32f107xx

Table of Contents

Save PDF