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.

<strong>RM0090</strong> USB on-the-go high-speed (OTG_HS)<br />

and status register to indicate to the OTG_HS controller that the B-device supports<br />

HNP.<br />

2. When it has finished using the bus, the application suspends by writing the Port<br />

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

3. When the B-device observes a USB suspend, it disconnects, indicating the initial<br />

condition for HNP. The B-device initiates HNP only when it must switch to the host role;<br />

otherwise, the bus continues to be suspended.<br />

The OTG_HS controller sets the host negotiation detected interrupt in the OTG<br />

interrupt status register, indicating the start of HNP.<br />

The OTG_HS controller deasserts the DM pull down and DM pull down in the PHY to<br />

indicate a device role. The PHY enables the OTG_HS_DP pull-up resistor to indicate a<br />

connect for B-device.<br />

The application must read the current mode bit in the OTG Control and status register<br />

to determine peripheral mode operation.<br />

4. The B-device detects the connection, issues a USB reset, and enumerates the<br />

OTG_HS controller for data traffic.<br />

5. The B-device continues the host role, initiating traffic, and suspends the bus when<br />

done.<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 />

6. In Negotiated mode, the OTG_HS controller detects the suspend, disconnects, and<br />

switches back to the host role. The OTG_HS controller asserts the DM pull down and<br />

DM pull down in the PHY to indicate its assumption of the host role.<br />

7. The OTG_HS controller sets the Connector ID status change interrupt in the OTG<br />

Interrupt Status register. The application must read the connector ID status in the OTG<br />

Control and Status register to determine the OTG_HS controller operation as an Adevice.<br />

This indicates the completion of HNP to the application. The application must<br />

read the Current mode bit in the OTG control and status register to determine host<br />

mode operation.<br />

8. The B-device connects, completing the HNP process.<br />

B-device host negotiation protocol<br />

HNP switches the USB host role from B-device to A-device. The application must set the<br />

HNP-capable bit in the Core USB configuration register to enable the OTG_HS controller to<br />

perform HNP as a B-device.<br />

Doc ID 018909 Rev 3 1310/1416

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

Saved successfully!

Ooh no, something went wrong!