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 high-speed (OTG_HS) <strong>RM0090</strong><br />

OTG_HS AHB configuration register (OTG_HS_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 />

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

PTXFELVL<br />

TXFELVL<br />

Reserved<br />

DMAEN<br />

HBSTLEN<br />

GINT<br />

rw rw rw rw<br />

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

Indicates when the periodic TxFIFO empty interrupt bit in the Core interrupt register (PTXFE<br />

bit in OTG_HS_GINTSTS) is triggered.<br />

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

1: PTXFE (in OTG_HS_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 peripheral mode, this bit indicates when the IN endpoint Transmit FIFO empty interrupt<br />

(TXFE in OTG_HS_DIEPINTx.) is triggered.<br />

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

empty<br />

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

completely empty<br />

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

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

Bits5 DMAEN: DMA enable<br />

0: The core operates in slave mode<br />

1: The core operates in DMA mode<br />

Bits 4:1 HBSTLEN: Burst length/type<br />

0000 Single<br />

0001 INCR<br />

0011 INCR4<br />

0101 INCR8<br />

0111 INCR16<br />

Others: Reserved<br />

Bit 0 GINT: Global interrupt mask<br />

This bit is used to mask or unmask the interrupt line assertion to the application. Irrespective<br />

of this bit 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 peripheral and host modes.

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

Saved successfully!

Ooh no, something went wrong!