29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RM0008<br />

USB on-the-go full-speed (OTG_FS)<br />

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

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

The OTG_FS 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 <strong>and</strong> status register to determine<br />

host negotiation success. The application must read the current Mode bit in the Core<br />

interrupt register (OTG_FS_GINTSTS) to determine Host mode operation.<br />

3. The application sets the reset bit (PRST in OTG_FS_HPRT) <strong>and</strong> the OTG_FS<br />

controller issues a USB reset <strong>and</strong> enumerates the A-device for data traffic.<br />

4. The OTG_FS controller continues the host role of initiating traffic, <strong>and</strong> when done,<br />

suspends the bus by writing the Port suspend bit in the Host port control <strong>and</strong> status<br />

register.<br />

5. In Negotiated mode, when the A-device detects a suspend, it disconnects <strong>and</strong> switches<br />

back to the host role. The OTG_FS controller deasserts the DP pull down <strong>and</strong> DM pull<br />

down in the PHY to indicate the assumption of the device role.<br />

6. The application must read the current mode bit in the Core interrupt<br />

(OTG_FS_GINTSTS) register to determine the Host mode operation.<br />

7. The OTG_FS controller connects, completing the HNP process.<br />

Doc ID 13902 Rev 9 835/995

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

Saved successfully!

Ooh no, something went wrong!