09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

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 high-speed (OTG_HS) <strong>RM0090</strong><br />

Figure 401. B-device HNP<br />

OTG core<br />

DP<br />

DM<br />

1<br />

DPPULLDOWN<br />

DMPULLDOWN<br />

Device Host<br />

Device<br />

Suspend 2<br />

1. DPPULLDOWN = signal from core to PHY to enable/disable the pull-down on the DP line inside the PHY.<br />

DMPULLDOWN = signal from core to PHY to enable/disable the pull-down on the DM line inside the PHY.<br />

1. The A-device sends the SetFeature b_hnp_enable descriptor to enable HNP support.<br />

The OTG_HS controller’s ACK response indicates that it supports HNP. The application<br />

must set the Device HNP enable bit in the OTG Control and status register to indicate<br />

HNP support.<br />

The application sets the HNP request bit in the OTG Control and status register to<br />

indicate to the OTG_HS controller to initiate HNP.<br />

2. When it has finished using the bus, the A-device suspends by writing the Port suspend<br />

bit in the host port control and status register.<br />

The OTG_HS controller sets the Early suspend bit in the Core interrupt register after 3<br />

ms of bus idleness. Following this, the OTG_HS controller sets the USB suspend bit in<br />

the Core interrupt register.<br />

The OTG_HS controller disconnects and the A-device detects SE0 on the bus,<br />

indicating HNP. The OTG_HS controller asserts the DP pull down and DM pull down in<br />

the PHY to indicate its assumption of the host role.<br />

The A-device responds by activating its OTG_HS_DP pull-up resistor within 3 ms of<br />

detecting SE0. The OTG_HS controller detects this as a connect.<br />

The OTG_HS controller sets the host negotiation success status change interrupt in<br />

the OTG Interrupt status register, indicating the HNP status. The application must read<br />

the host negotiation success bit in the OTG Control and status register to determine<br />

1311/1416 Doc ID 018909 Rev 3<br />

3<br />

4 5<br />

Reset<br />

6<br />

Traffic 7<br />

Traffic<br />

8<br />

Connect<br />

ai15684b

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

Saved successfully!

Ooh no, something went wrong!