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 full-speed (OTG_FS)<br />

Bit 8 HNGSCS: Host negotiation success<br />

The core sets this bit when host negotiation is successful. The core clears this bit when the<br />

HNP Request (HNPRQ) bit in this register is set.<br />

0: Host negotiation failure<br />

1: Host negotiation success<br />

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

Bits 7:2 Reserved, must be kept at reset value.<br />

Bit 1 SRQ: Session request<br />

The application sets this bit to initiate a session request on the USB. The application can<br />

clear this bit by writing a 0 when the host negotiation success status change bit in the<br />

OTG_FS_GOTGINT register (HNSSCHG bit in OTG_FS_GOTGINT) is set. The core clears<br />

this bit when the HNSSCHG bit is cleared.<br />

If you use the USB 1.1 full-speed serial transceiver interface to initiate the session request,<br />

the application must wait until V BUS discharges to 0.2 V, after the B-Session Valid bit in this<br />

register (BSVLD bit in OTG_FS_GOTGCTL) is cleared. This discharge time varies between<br />

different PHYs and can be obtained from the PHY vendor.<br />

0: No session request<br />

1: Session request<br />

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

Bit 0 SRQSCS: Session request success<br />

The core sets this bit when a session request initiation is successful.<br />

0: Session request failure<br />

1: Session request success<br />

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

OTG_FS interrupt register (OTG_FS_GOTGINT)<br />

Address offset: 0x04<br />

Reset value: 0x0000 0000<br />

The application reads this register whenever there is an OTG interrupt and clears the bits in<br />

this register to clear the OTG interrupt.<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 DBCDNE<br />

rc_<br />

w1<br />

ADTOCHG<br />

rc_<br />

w1<br />

HNGDET<br />

rc_<br />

w1<br />

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

Reserved<br />

HNSSCHG<br />

rc_<br />

w1<br />

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

SRSSCHG<br />

rc_<br />

w1<br />

Reserved SEDET<br />

Bit 19 DBCDNE: Debounce done<br />

The core sets this bit when the debounce is completed after the device connect. The<br />

application can start driving USB reset after seeing this interrupt. This bit is only valid when<br />

the HNP Capable or SRP Capable bit is set in the OTG_FS_GUSBCFG register (HNPCAP<br />

bit or SRPCAP bit in OTG_FS_GUSBCFG, respectively).<br />

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

rc_<br />

w1<br />

Res.

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

Saved successfully!

Ooh no, something went wrong!