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.

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

OTG_FS AHB configuration register (OTG_FS_GAHBCFG)<br />

Address offset: 0x008<br />

Reset value: 0x0000 0000<br />

This register can be used to configure the core after power-on or a change in mode. This<br />

register mainly contains AHB system-related configuration parameters. Do not change this<br />

register after the initial programming. The application must program this register before<br />

starting any transactions on either the AHB or the USB.<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:20 Reserved, must be kept at reset value.<br />

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

PTXFELVL<br />

TXFELVL<br />

Reserved<br />

GINTMSK<br />

rw rw rw<br />

Bit 8 PTXFELVL: Periodic TxFIFO empty level<br />

Indicates when the periodic TxFIFO empty interrupt bit in the OTG_FS_GINTSTS register<br />

(PTXFE bit in OTG_FS_GINTSTS) is triggered.<br />

0: PTXFE (in OTG_FS_GINTSTS) interrupt indicates that the Periodic TxFIFO is half empty<br />

1: PTXFE (in OTG_FS_GINTSTS) interrupt indicates that the Periodic TxFIFO is completely<br />

empty<br />

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

Bit 7 TXFELVL: TxFIFO empty level<br />

In device mode, this bit indicates when IN endpoint Transmit FIFO empty interrupt (TXFE in<br />

OTG_FS_DIEPINTx.) is triggered.<br />

0: the TXFE (in OTG_FS_DIEPINTx) interrupt indicates that the IN Endpoint TxFIFO is half<br />

empty<br />

1: the TXFE (in OTG_FS_DIEPINTx) interrupt indicates that the IN Endpoint TxFIFO is<br />

completely empty<br />

In host mode, this bit indicates when the nonperiodic Tx FIFO empty interrupt (NPTXFE bit in<br />

OTG_FS_GINTSTS) is triggered:<br />

0: the NPTXFE (in OTG_FS_GINTSTS) interrupt indicates that the nonperiodic Tx FIFO is<br />

half empty<br />

1: the NPTXFE (in OTG_FS_GINTSTS) interrupt indicates that the nonperiodic Tx FIFO is<br />

completely empty<br />

Bits 6:1 Reserved, must be kept at reset value.<br />

Bit 0 GINTMSK: Global interrupt mask<br />

The application uses this bit to mask or unmask the interrupt line assertion to itself.<br />

Irrespective of this bit’s setting, the interrupt status registers are updated by the core.<br />

0: Mask the interrupt assertion to the application.<br />

1: Unmask the interrupt assertion to the application.<br />

Note: Accessible in both device and host modes.

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

Saved successfully!

Ooh no, something went wrong!