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 />

OTG_HS device endpoint-x interrupt register (OTG_HS_DIEPINTx) (x = 0..7,<br />

where x = Endpoint_number)<br />

Address offset: 0x908 + (Endpoint_number × 0x20)<br />

Reset value: 0x0000 0080<br />

This register indicates the status of an endpoint with respect to USB- and AHB-related<br />

events. It is shown in Figure 382. The application must read this register when the IN<br />

endpoints interrupt bit of the Core interrupt register (IEPINT in OTG_HS_GINTSTS) is set.<br />

Before the application can read this register, it must first read the device all endpoints<br />

interrupt (OTG_HS_DAINT) register to get the exact endpoint number for the device<br />

endpoint-x interrupt register. The application must clear the appropriate bit in this register to<br />

clear the corresponding bits in the OTG_HS_DAINT and OTG_HS_GINTSTS registers.<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<br />

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

Bit 13 NAK: NAK interrupt<br />

The core generates this interrupt when a NAK is transmitted or received by the device. In<br />

case of isochronous IN endpoints the interrupt gets generated when a zero length packet is<br />

transmitted due to unavailability of data in the Tx FIFO.<br />

Bit 12 BERR: Babble error interrupt<br />

Bit 11 PKTDRPSTS: Packet dropped status<br />

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit<br />

does not have an associated mask bit and does not generate an interrupt.<br />

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

Bit 9 BNA: Buffer not available interrupt<br />

The core generates this interrupt when the descriptor accessed is not ready for the Core to<br />

process, such as host busy or DMA done.<br />

Bit 8 TXFIFOUDRN: Transmit Fifo Underrun (TxfifoUndrn) The core generates this interrupt when it<br />

detects a transmit FIFO underrun condition for this endpoint.<br />

Dependency: This interrupt is valid only when Thresholding is enabled<br />

Bit 7 TXFE: Transmit FIFO empty<br />

This interrupt is asserted when the TxFIFO for this endpoint is either half or completely<br />

empty. The half or completely empty status is determined by the TxFIFO empty level bit in<br />

the Core AHB configuration register (TXFELVL bit in OTG_HS_GAHBCFG).<br />

NAK<br />

BERR<br />

PKTDRPSTS<br />

Reserved<br />

BNA<br />

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

TXFIFOUDRN<br />

TXFE<br />

r<br />

INEPNE<br />

rc_<br />

w1<br />

/rw<br />

Reserved<br />

ITTXFE<br />

rc_<br />

w1<br />

TOC<br />

rc_<br />

w1<br />

Reserved<br />

EPDISD<br />

rc_<br />

w1<br />

XFRC<br />

rc_<br />

w1

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

Saved successfully!

Ooh no, something went wrong!