
RM0008
USB on-the-go full-speed (OTG_FS)
Doc ID 13902 Rev 12
833/1096
OTG_FS interrupt register (OTG_FS_GOTGINT)
Address offset: 0x04
Reset value: 0x0000 0000
The application reads this register whenever there is an OTG interrupt and clears the bits in
this register to clear the OTG interrupt.
Bit 8
HNGSCS:
Host negotiation success
The core sets this bit when host negotiation is successful. The core clears this bit when the
HNP Request (HNPRQ) bit in this register is set.
0: Host negotiation failure
1: Host negotiation success
Note: Only accessible in device mode.
Bits 7:2 Reserved
Bit 1
SRQ:
Session request
The application sets this bit to initiate a session request on the USB. The application can clear
this bit by writing a 0 when the host negotiation success status change bit in the
OTG_FS_GOTGINT register (HNSSCHG bit in OTG_FS_GOTGINT) is set. The core clears
this bit when the HNSSCHG bit is cleared.
If you use the USB 1.1 full-speed serial transceiver interface to initiate the session request, the
application must wait until V
BUS
discharges to 0.2 V, after the B-Session Valid bit in this register
(BSVLD bit in OTG_FS_GOTGCTL) is cleared. This discharge time varies between different
PHYs and can be obtained from the PHY vendor.
0: No session request
1: Session request
Note: Only accessible in device mode.
Bit 0
SRQSCS:
Session request success
The core sets this bit when a session request initiation is successful.
0: Session request failure
1: Session request success
Note: Only accessible in device mode.
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
Reserved
DBCDNE
ADT
O
CHG
HNGDET
Reserved
HNSS
C
H
G
SRS
S
CHG
Reserved
SE
DET
Res.
rc_
w1
rc_
w1
rc_
w1
rc_
w1
rc_
w1
rc_
w1
Bits 31:20 Reserved.
Bit 19
DBCDNE:
Debounce done
The core sets this bit when the debounce is completed after the device connect. The
application can start driving USB reset after seeing this interrupt. This bit is only valid when the
HNP Capable or SRP Capable bit is set in the OTG_FS_GUSBCFG register (HNPCAP bit or
SRPCAP bit in OTG_FS_GUSBCFG, respectively).
Note: Only accessible in host mode.