![ARTERY AT32F435 Series Скачать руководство пользователя страница 465](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592465.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 465
Rev 2.03
bit, but must first ensure that the controller is not in the
process of a transaction. The application must only write
to this bit after checking that the controller is neither
reading from nor writing to the RxFIFO.
The application must wait until the controller clears this
bit, before performing other operations. It takes 8 clocks
to clear this bit (slowest of PHY or AHB)
Bit 3
Reserved
0x0
resd
Kept at its default value.
Bit 2
FRMCNTRST
0x0
rw1s
Accessible in both host mode and device modes
Host frame counter reset
The application uses this bit to reset the frame number
counter inside the controller. After the frame counter is
reset, the subsequent SOS sent out by the controller has
a 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
Accessible in both host mode and device modes
PIU FS dedicated controller soft reset
This bit is used 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
Accessible 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 terminated 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.