09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

31.12.2 OTG_HS global registers<br />

These registers are available in both host and peripheral modes, and do not need to be<br />

reprogrammed when switching between these modes.<br />

Bit values in the register descriptions are expressed in binary unless otherwise specified.<br />

OTG_HS control and status register (OTG_HS_GOTGCTL)<br />

Address offset: 0x000<br />

Reset value: 0x0000 0800<br />

The OTG control and status register controls the behavior and reflects the status of the OTG<br />

function of the core.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Reserved BSVLD<br />

ASVLD<br />

DBCT<br />

CIDSTS<br />

Reserved<br />

DHNPEN<br />

HSHNPEN<br />

HNPRQ<br />

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

HNGSCS<br />

Reserved SRQ<br />

r r r r rw rw rw r rw r<br />

Bits 31:20 Reserved, must be kept at reset value.<br />

Bit 19 BSVLD: B-session valid<br />

Indicates the peripheral mode transceiver status.<br />

0: B-session is not valid.<br />

1: B-session is valid.<br />

In OTG mode, you can use this bit to determine if the device is connected or disconnected.<br />

Note: Only accessible in peripheral mode.<br />

Bit 18 ASVLD: A-session valid<br />

Indicates the host mode transceiver status.<br />

0: A-session is not valid<br />

1: A-session is valid<br />

Note: Only accessible in host mode.<br />

Bit 17 DBCT: Long/short debounce time<br />

Indicates the debounce time of a detected connection.<br />

0: Long debounce time, used for physical connections (100 ms + 2.5 µs)<br />

1: Short debounce time, used for soft connections (2.5 µs)<br />

Note: Only accessible in host mode.<br />

Bit 16 CIDSTS: Connector ID status<br />

Indicates the connector ID status on a connect event.<br />

0: The OTG_HS controller is in A-device mode<br />

1: The OTG_HS controller is in B-device mode<br />

Note: Accessible in both peripheral and host modes.<br />

Bits 15:12 Reserved, must be kept at reset value.<br />

Bit 11 DHNPEN: Device HNP enabled<br />

The application sets this bit when it successfully receives a SetFeature.SetHNPEnable<br />

command from the connected USB host.<br />

0: HNP is not enabled in the application<br />

1: HNP is enabled in the application<br />

Note: Only accessible in peripheral mode.<br />

SRQSCS

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

Saved successfully!

Ooh no, something went wrong!