AT32WB415
Series Reference Manual
2022.04.13
Page 334
Ver 2.00
frame number of 0.
If the application writes 1 to this bit, it may not be able to
read the value, because this bit is cleared after a few clock
cycles by the controller
Bit 1
PIUSFTRST
0x0
rw1s
Accesible in both host mode and device modes
PIU FS dedicated controller soft reset
This bit is ued to reset PIU full-speed dedicated controller
All state machines in the PIU full-speed dedicated
controller are reset to the idle state. When the PHY
remains in the receive state for more than one-frame time
due to PHY errors (such as operation interrupted or
babble), this bit can be used to reset the PIU full-speed
dedicated controller.
This is can be cleared automatically, the controller this
clear this bit after all the necessary logic is reset in the
controller.
Bit 0
CSFTRST
0x0
rw1s
Accesible in both host mode and device modes
Controller soft reset
Resets the hclk and phy_clock domain as follows:
Clears all interrupts and CSR registers except for the
following bits:
- HCFG.FSLSPCS
- DCFG.DECSPD
- DCTL.SFTDIS
Resets all state machines (except AHB slave) to the idle
state, and clears all the transmit and receive FIFOs.
All transactions on the AHB master are termindated as
soon as possible after completing the last phase of an AHB
data transfer. All transactions on the USB are terminated
immediately.
The application can write to this bit at any time to reset the
controller. This is can be cleared automatically, the
controller this clear this bit after all the necessary logic is
reset in the controller. The controller could take several
clocks to clear this bit, depending on the current state of
the controller. Once this bit is cleared, the application must
wait at least 3 PHY clocks before accessing the PHY
domain (synchronization delay).
Additionally, the application must ensure that the bit 31 in
this register is set (AHB master is in idle state) before
performing other operations.
Typically, the software set is used during software
development and also when the user dynamically changes
the PHY selection bits in the above-listed USB
configuration registers. To change the PHY, the
corresponding PHY clock is selected and used in the PHY
domain. After a new clock is selected, the PHY domain has
to be reset for normal operation.