gintsts

This register interrupts the application for system-level events in the current mode (Device mode or Host mode). Some of the bits in this register are valid only in Host mode, while others are valid in Device mode only. This register also indicates the current mode. To clear the interrupt status bits of type R_SS_WC, the application must write 1 into the bit. The FIFO status interrupts are read only; once software reads from or writes to the FIFO while servicing these interrupts, FIFO interrupt conditions are cleared automatically. The application must clear the GINTSTS register at initialization before unmasking the interrupt bit to avoid any interrupts generated prior to initialization.
Module Instance Base Address Register Address
usb0 0xFFB00000 0xFFB00014
usb1 0xFFB40000 0xFFB40014

Offset: 0x14

Access: RO

Important: To prevent indeterminate system behavior, reserved areas of memory must not be accessed by software or hardware. Any area of the memory map that is not explicitly defined as a register space or accessible memory is considered reserved.
Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

wkupint

RO 0x0

sessreqint

RO 0x0

disconnint

RO 0x0

ConIDStsChng

RO 0x1

Reserved

ptxfemp

RO 0x1

hchint

RO 0x0

prtint

RO 0x0

resetdet

RO 0x0

fetsusp

RO 0x0

incomplp

RO 0x0

incompisoin

RO 0x0

oepint

RO 0x0

iepint

RO 0x0

epmis

RO 0x0

Reserved

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Reserved

isooutdrop

RO 0x0

enumdone

RO 0x0

usbrst

RO 0x0

usbsusp

RO 0x0

erlysusp

RO 0x0

Reserved

goutnakeff

RO 0x0

ginnakeff

RO 0x0

Reserved

rxflvl

RO 0x0

sof

RO 0x0

otgint

RO 0x0

modemis

RO 0x0

curmod

RO 0x0

gintsts Fields

Bit Name Description Access Reset
31 wkupint

Mode:Host and Device. Wakeup Interrupt during Suspend(L2) or LPM(L1) state. -During Suspend(L2): - Device Mode - This interrupt is asserted only when Host Initiated Resume is detected on USB. - Host Mode - This interrupt is asserted only when Device Initiated Remote Wakeup is detected on USB - During LPM(L1):- - Device Mode - This interrupt is asserted for either Host Initiated Resume or Device Initiated Remote Wakeup on USB. - Host Mode - This interrupt is asserted for either Host Initiated Resume or Device Initiated Remote Wakeup on USB.

Value Description
0x0 Not active
0x1 Resume Remote Wakeup Detected Interrupt
RO 0x0
30 sessreqint

Mode:Host and Device. In Host mode, this interrupt is asserted when a session request is detected from the device. In Host mode, this interrupt is asserted when a session request is detected from the device. In Device mode, this interrupt is asserted when the utmisrp_bvalid signal goes high. This bit can be set only by the core and the application should write 1 to clear.

Value Description
0x0 Not active
0x1 Session Request New Session Detected Interrupt
RO 0x0
29 disconnint

Mode:Host only. Asserted when a device disconnect is detected. This bit can be set only by the core and the application should write 1 to clear it.

Value Description
0x0 Not active
0x1 Disconnect Detected Interrupt
RO 0x0
28 ConIDStsChng

Mode:Host and Device. The core sets this bit when there is a change in connector ID status. This bit can be set only by the core and the application should write 1 to clear it.

Value Description
0x0 Not Active
0x1 Connector ID Status Change
RO 0x1
26 ptxfemp

Mode:Host only. This interrupt is asserted when the Periodic Transmit FIFO is either half or completely empty and there is space for at least one entry to be written in the Periodic Request Queue. The half or completely empty status is determined by the Periodic TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.PTxFEmpLvl).

Value Description
0x0 Not active
0x1 Periodic TxFIFO Empty
RO 0x1
25 hchint

Mode:Host only. The core sets this bit to indicate that an interrupt is pending on one of the channels of the core (in Host mode). The application must read the Host All Channels Interrupt (HAINT) register to determine the exact number of the channel on which the interrupt occurred, and Then read the corresponding Host Channel-n Interrupt (HCINTn) register to determine the exact cause of the interrupt. The application must clear the appropriate status bit in the HCINTn register to clear this bit.

Value Description
0x0 Not active
0x1 Host Channels Interrupt
RO 0x0
24 prtint

Mode:Host only. The core sets this bit to indicate a change in port status of one of the otg core ports in Host mode. The application must read the Host Port Control and Status (HPRT) register to determine the exact event that caused this interrupt. The application must clear the appropriate status bit in the Host PC Control and Status register to clear this bit.

Value Description
0x0  
0x1 Host Port Interrupt
RO 0x0
23 resetdet

Mode: Device only. In Device mode, this interrupt is asserted when a reset is detected on the USB in partial power-down mode when the device is in Suspend. In Host mode, this interrupt is not asserted.

Value Description
0x0 Not active
0x1 Reset detected Interrup
RO 0x0
22 fetsusp

Mode: Device only. This interrupt is valid only in DMA mode. This interrupt indicates that the core has stopped fetching data for IN endpoints due to the unavailability of TxFIFO space or Request Queue space. This interrupt is used by the application for an endpoint mismatch algorithm. for example, after detecting an endpoint mismatch, the application: - Sets a Global non-periodic IN NAK handshake - Disables In endpoints - Flushes the FIFO - Determines the token sequence from the IN Token Sequence Learning Queue - Re-enables the endpoints - Clears the Global non-periodic IN NAK handshake If the Global non-periodic IN NAK is cleared, the core has not yet fetched data for the IN endpoint, and the IN token is received: the core generates an IN token received when FIFO empty interrupt. The OTG Then sends the host a NAK response. To avoid this scenario, the application can check the GINTSTS.FetSusp interrupt, which ensures that the FIFO is full before clearing a Global NAK handshake. Alternatively, the application can mask the "IN token received when FIFO empty" interrupt when clearing a Global IN NAKhandshake.

Value Description
0x0 Not active
0x1 Data Fetch Suspended
RO 0x0
21 incomplp

Mode: Device only. In Host mode, the core sets this interrupt bit when there are incomplete periodic transactions still pending which arescheduled for the current microframe. Incomplete Isochronous OUT Transfer (incompISOOUT) The Device mode, the core sets this interrupt to indicate that there is at least one isochronous OUT endpoint on which the transfer is not completed in the current microframe. This interrupt is asserted along with the End of Periodic Frame Interrupt (EOPF) bit in this register. This bit can be set only by the core and the application should write 1 to clear it

Value Description
0x0 Not active
0x1 Incomplete Periodic Transfer
RO 0x0
20 incompisoin

Mode: Device only. The core sets this interrupt to indicate that there is at least isochronous IN endpoint on which the transfer is not completed in the current microframe. This interrupt is asserted along with the End of Periodic Frame Interrupt (EOPF) bit in this register. This interrupt is not asserted in Scatter/Gather DMA mode.

Value Description
0x0 Not active
0x1 Incomplete Isochronous IN Transfer
RO 0x0
19 oepint

Mode: Device only. The core sets this bit to indicate that an interrupt is pending on one of the OUT endpoints of the core (in Device mode). The application must read the Device All Endpoints Interrupt (DAINT) register to determine the exact number of the OUT endpoint on which the interrupt occurred, and Then read the corresponding Device OUT Endpoint-n Interrupt (DOEPINTn) register to determine the exact cause of the interrupt. The application must clear the appropriate status bit in the corresponding DOEPINTn register to clear this bit.

Value Description
0x0 Not active
0x1 OUT Endpoints Interrupt
RO 0x0
18 iepint

Mode: Device only. The core sets this bit to indicate that an interrupt is pending on one of the IN endpoints of the core (in Device mode). The application must read the Device All Endpoints Interrupt (DAINT) register to determine the exact number of the IN endpoint on Device IN Endpoint-n Interrupt (DIEPINTn) register to determine the exact cause of the interrupt. The application must clear the appropriate status bit in the corresponding DIEPINTn register to clear this bit.

Value Description
0x0 Not active
0x1 IN Endpoints Interrupt
RO 0x0
17 epmis

Mode: Device only. This interrupt is valid only in shared FIFO operation. Indicates that an IN token has been received for a non-periodic endpoint, but the data for another endpoint is present in the top of the Non-periodic Transmit FIFO and the IN endpoint mismatch count programmed by the application has expired.

Value Description
0x0 Not active
0x1 Endpoint Mismatch Interrup
RO 0x0
14 isooutdrop

Mode: Device only. The core sets this bit when it fails to write an isochronous OUT packet into the RxFIFO because the RxFIFO does not have enough space to accommodate a maximum packet size packet for the isochronous OUT endpoint.

Value Description
0x0 Not active
0x1 Isochronous OUT Packet Dropped Interrup
RO 0x0
13 enumdone

Mode: Device only. The core sets this bit to indicate that speed enumeration is complete. The application must read the Device Status register to obtain the enumerated speed.

Value Description
0x0 Not active
0x1 Enumeration Done
RO 0x0
12 usbrst

Mode: Device only. The core sets this bit to indicate that a reset is detected on the USB.

Value Description
0x0 Not active
0x1 USB Reset
RO 0x0
11 usbsusp

Mode: Device only. The core sets this bit to indicate that a suspend was detected on the USB. The core enters the Suspended state when there is no activity on the phy_line_state_i signal for an extended period of time.

Value Description
0x0 Not Active
0x1 USB Suspend
RO 0x0
10 erlysusp

Mode: Device only. The core sets this bit to indicate that an Idle state has been detected on the USB for 3 ms.

Value Description
0x0 No Idle
0x1 Idle state detecetd
RO 0x0
7 goutnakeff

Mode: Device only. Indicates that the Set Global OUT NAK bit in the Device Control register (DCTL.SGOUTNak), Set by the application, has taken effect in the core. This bit can be cleared by writing the Clear Global OUT NAK bit in the Device Control register (DCTL.CGOUTNak).

Value Description
0x0 No Active
0x1 Global OUT NAK Effective
RO 0x0
6 ginnakeff

Mode: Device only. Indicates that the Set Global Non-periodic IN NAK bit in the Device Control register (DCTL.SGNPInNak), Set by the application, has taken effect in the core. That is, the core has sampled the Global IN NAK bit Set by the application. This bit can be cleared by clearing the Clear Global Non-periodic IN NAK bit in the Device Control register (DCTL.CGNPInNak). This interrupt does not necessarily mean that a NAK handshake is sent out on the USB. The STALL bit takes precedence over the NAK bit.

Value Description
0x0 Not active
0x1 Set Global Non-periodic IN NAK bi
RO 0x0
4 rxflvl

Mode: Host and Device. Indicates that there is at least one packet pending to be read from the RxFIFO.

Value Description
0x0 Not Active
0x1 Rx Fifo Non Empty
RO 0x0
3 sof

Mode: Host and Device. In Host mode, the core sets this bit to indicate that an SOF (FS), micro-SOF (HS), or Keep-Alive (LS) is transmitted on the USB. The application must write a 1 to this bit to clear the interrupt. In Device mode, the core sets this bit to indicate that an SOF token has been received on the USB. The application can read the Device Status register to get the current (micro)Frame number. This interrupt is seen only when the core is operating at either HS or FS. This bit can be set only by the core and the application should write 1 to clear it. This register may return 1 if read immediately after power on reset. If the register bit reads 1 immediately after power on reset it does not indicate that an SOF has been sent (in case of host mode) or SOF has been received (in case of device mode). The read value of this interrupt is valid only after a valid connection between host and device is established. If the bit is set after power on reset the application can clear the bit.

Value Description
0x0 No sof
0x1 Start of Frame
RO 0x0
2 otgint

Mode: Host and Device. The core sets this bit to indicate an OTG protocol event. The application must read the OTG Interrupt Status (GOTGINT) register to determine the exact event that caused this interrupt. The application must clear the appropriate status bit in the GOTGINT register to clear this bit.

Value Description
0x0 No Interrupt
0x1 OTG Interrupt
RO 0x0
1 modemis

Mode: Host and Device. The core sets this bit when the application is trying to access: -A Host mode register, when the core is operating in Device mode. -A Device mode register, when the core is operating in Host mode. The register access is completed on the AHB with an OKAYresponse, but is ignored by the core internally and does not affect the operation of the core. This bit can be set only by the core and the application should write 1 to clearit

Value Description
0x0 No Mode Mismatch Interrupt
0x1 Mode Mismatch Interrupt
RO 0x0
0 curmod

Mode: Host and Device. Indicates the current mode.

Value Description
0x0 Device mode
0x1 Host mode
RO 0x0