09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

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

OTG_FS core interrupt register (OTG_FS_GINTSTS)<br />

Address offset: 0x014<br />

Reset value: 0x0400 0020<br />

This register interrupts the application for system-level events in the current mode (device<br />

mode or host mode).<br />

Some of the bits in this register are valid only in host mode, while others are valid in device<br />

mode only. This register also indicates the current mode. To clear the interrupt status bits of<br />

the rc_w1 type, the application must write 1 into the bit.<br />

The FIFO status interrupts are read-only; once software reads from or writes to the FIFO<br />

while servicing these interrupts, FIFO interrupt conditions are cleared automatically.<br />

The application must clear the OTG_FS_GINTSTS register at initialization before<br />

unmasking the interrupt bit to avoid any interrupts generated prior to initialization.<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 />

WKUINT<br />

SRQINT<br />

DISCINT<br />

CIDSCHG<br />

Reserved<br />

PTXFE<br />

HCINT<br />

HPRTINT<br />

Reserved<br />

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

IPXFR/INCOMPISOOUT<br />

IISOIXFR<br />

OEPINT<br />

IEPINT<br />

rc_w1 r r r Res. rc_w1 r r rc_w1 r r r r<br />

Reserved<br />

EOPF<br />

ISOODRP<br />

Bit 31 WKUPINT: Resume/remote wakeup detected interrupt<br />

In device mode, this interrupt is asserted when a resume is detected on the USB. In host<br />

mode, this interrupt is asserted when a remote wakeup is detected on the USB.<br />

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

Bit 30 SRQINT: Session request/new session detected interrupt<br />

In host mode, this interrupt is asserted when a session request is detected from the device.<br />

In device mode, this interrupt is asserted when V BUS is in the valid range for a B-peripheral<br />

device. Accessible in both device and host modes.<br />

Bit 29 DISCINT: Disconnect detected interrupt<br />

Asserted when a device disconnect is detected.<br />

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

Bit 28 CIDSCHG: Connector ID status change<br />

The core sets this bit when there is a change in connector ID status.<br />

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

Bit 27 Reserved, must be kept at reset value.<br />

Bit 26 PTXFE: Periodic TxFIFO empty<br />

Asserted when the periodic transmit FIFO is either half or completely empty and there is<br />

space for at least one entry to be written in the periodic request queue. The half or<br />

completely empty status is determined by the periodic TxFIFO empty level bit in the<br />

OTG_FS_GAHBCFG register (PTXFELVL bit in OTG_FS_GAHBCFG).<br />

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

ENUMDNE<br />

USBRST<br />

USBSUSP<br />

ESUSP<br />

Reserved<br />

GOUTNAKEFF<br />

GINAKEFF<br />

NPTXFE<br />

RXFLVL<br />

SOF<br />

rc_w1<br />

OTGINT<br />

r<br />

MMIS<br />

rc_w1<br />

CMOD<br />

r

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

Saved successfully!

Ooh no, something went wrong!