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 reset register (OTG_HS_GRSTCTL)<br />

Address offset: 0x010<br />

Reset value: 0x2000 0000<br />

The application uses this register to reset various hardware features inside the core.<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 />

AHBIDL<br />

DMAREQ<br />

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

Reserved<br />

TXFNUM<br />

r r rw rs rs rs rs rs<br />

Bit 31 AHBIDL: AHB master idle<br />

Indicates that the AHB master state machine is in the Idle condition.<br />

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

Bit 30 DMAREQ: DMA request signal<br />

This bit indicates that the DMA request is in progress. Used for debug.<br />

Bits 29:11 Reserved, must be kept at reset value.<br />

Bits 10:6 TXFNUM: TxFIFO number<br />

This is the FIFO number that must be flushed using the TxFIFO Flush bit. This field must not<br />

be changed until the core clears the TxFIFO Flush bit.<br />

● 00000:<br />

– Nonperiodic TxFIFO flush in host mode<br />

– Tx FIFO 0 flush in peripheral mode<br />

● 00001:<br />

– Periodic TxFIFO flush in host mode<br />

– TXFIFO 1 flush in peripheral mode<br />

● 00010: TXFIFO 2 flush in peripheral mode<br />

...<br />

● 00101: TXFIFO 15 flush in peripheral mode<br />

● 10000: Flush all the transmit FIFOs in peripheral or host mode.<br />

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

Bit 5 TXFFLSH: TxFIFO flush<br />

This bit selectively flushes a single or all transmit FIFOs, but cannot do so if the core is in the<br />

midst of a transaction.<br />

The application must write this bit only after checking that the core is neither writing to the<br />

TxFIFO nor reading from the TxFIFO. Verify using these registers:<br />

– Read: the NAK effective interrupt ensures the core is not reading from the FIFO<br />

– Write: the AHBIDL bit in OTG_HS_GRSTCTL ensures that the core is not writing<br />

anything to the FIFO<br />

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

TXFFLSH<br />

RXFFLSH<br />

Reserved<br />

FCRST<br />

HSRST<br />

CSRST

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

Saved successfully!

Ooh no, something went wrong!