29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

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.

RM0008<br />

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

OTG_FS host channel-x interrupt register (OTG_FS_HCINTx) (x = 0..7, where<br />

x = Channel_number)<br />

Address offset: 0x508 + (Channel_number × 0x20)<br />

Reset value: 0x0000 0000<br />

This register indicates the status of a channel with respect to USB- <strong>and</strong> AHB-related events.<br />

It is shown in Figure 268. The application must read this register when the Host channels<br />

interrupt bit in the Core interrupt register (HCINT bit in OTG_FS_GINTSTS) is set. Before<br />

the application can read this register, it must first read the Host all channels interrupt<br />

(OTG_FS_HAINT) register to get the exact channel number for the Host channel-x interrupt<br />

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

corresponding bits in the OTG_FS_HAINT <strong>and</strong> OTG_FS_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 />

DTERR<br />

rc_<br />

w1<br />

FRMOR<br />

rc_<br />

w1<br />

BBERR<br />

rc_<br />

w1<br />

TXERR<br />

Reserved<br />

rc_<br />

w1<br />

ACK<br />

rc_<br />

w1<br />

NAK<br />

rc_<br />

w1<br />

STALL<br />

Reserved<br />

rc_<br />

w1<br />

CHH<br />

rc_<br />

w1<br />

XFRC<br />

rc_<br />

w1<br />

Bits 31:11 Reserved<br />

Bit 10 DTERR: Data toggle error<br />

Bit 9 FRMOR: Frame overrun<br />

Bit 8 BBERR: Babble error<br />

Bit 7 TXERR: Transaction error<br />

Indicates one of the following errors occurred on the USB.<br />

CRC check failure<br />

Timeout<br />

Bit stuff error<br />

False EOP<br />

Bit 6 Reserved<br />

Bit 5 ACK: ACK response received/transmitted interrupt<br />

Bit 4 NAK: NAK response received interrupt<br />

Bit 3 STALL: STALL response received interrupt<br />

Bit 2 Reserved<br />

Bit 1 CHH: Channel halted<br />

Indicates the transfer completed abnormally either because of any USB transaction error or in<br />

response to disable request by the application.<br />

Bit 0 XFRC: Transfer completed<br />

Transfer completed normally without any errors.<br />

Doc ID 13902 Rev 9 751/995

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

Saved successfully!

Ooh no, something went wrong!