09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

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.

USB on-the-go high-speed (OTG_HS) <strong>RM0090</strong><br />

Bit 0 CSRST: Core soft reset<br />

Resets the HCLK and PCLK domains as follows:<br />

Clears the interrupts and all the CSR register bits except for the following bits:<br />

– RSTPDMODL bit in OTG_HS_PCGCCTL<br />

– GAYEHCLK bit in OTG_HS_PCGCCTL<br />

– PWRCLMP bit in OTG_HS_PCGCCTL<br />

– STPPCLK bit in OTG_HS_PCGCCTL<br />

– FSLSPCS bit in OTG_HS_HCFG<br />

– DSPD bit in OTG_HS_DCFG<br />

All module state machines (except for the AHB slave unit) are reset to the Idle state, and all<br />

the transmit FIFOs and the receive FIFO are flushed.<br />

Any transactions on the AHB Master are terminated as soon as possible, after completing the<br />

last data phase of an AHB transfer. Any transactions on the USB are terminated immediately.<br />

The application can write to this bit any time it wants to reset the core. This is a self-clearing bit<br />

and the core clears this bit after all the necessary logic is reset in the core, which can take<br />

several clocks, depending on the current state of the core. Once this bit has been cleared, the<br />

software must wait at least 3 PHY clocks before accessing the PHY domain (synchronization<br />

delay). The software must also check that bit 31 in this register is set to 1 (AHB Master is Idle)<br />

before starting any operation.<br />

Typically, the software reset is used during software development and also when you<br />

dynamically change the PHY selection bits in the above listed USB configuration registers.<br />

When you change the PHY, the corresponding clock for the PHY is selected and used in the<br />

PHY domain. Once a new clock is selected, the PHY domain has to be reset for proper<br />

operation.<br />

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

1189/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!