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

Bit 4 RXFFLSH: RxFIFO flush<br />

The application can flush the entire RxFIFO using this bit, but must first ensure that the core<br />

is not in the middle of a transaction.<br />

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

the RxFIFO nor writing to the RxFIFO.<br />

The application must wait until the bit is cleared before performing any other operation. This<br />

bit requires 8 clocks (slowest of PHY or AHB clock) to be cleared.<br />

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

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

Bit 2 FCRST: Host frame counter reset<br />

The application writes this bit to reset the frame number counter inside the core. When the<br />

frame counter is reset, the subsequent SOF sent out by the core has a frame number of 0.<br />

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

Bit 1 HSRST: HCLK soft reset<br />

The application uses this bit to flush the control logic in the AHB Clock domain. Only AHB<br />

Clock Domain pipelines are reset.<br />

FIFOs are not flushed with this bit.<br />

All state machines in the AHB clock domain are reset to the Idle state after terminating the<br />

transactions on the AHB, following the protocol.<br />

CSR control bits used by the AHB clock domain state machines are cleared.<br />

To clear this interrupt, status mask bits that control the interrupt status and are generated by<br />

the AHB clock domain state machine are cleared.<br />

Because interrupt status bits are not cleared, the application can get the status of any core<br />

events that occurred after it set this bit.<br />

This is a self-clearing bit that the core clears after all necessary logic is reset in the core. This<br />

can take several clocks, depending on the core’s current state.<br />

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

Doc ID 018909 Rev 3 1188/1416

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

Saved successfully!

Ooh no, something went wrong!