![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 499](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630499.webp)
www.geehy.com Page 498
High-speed OTG reset control register (OTG_HS1_GRSTCTRL)
Offset address: 0x010
Reset value: 0x2000 0000
Field
Name
R/W
Description
0
CSRST
R/S
Core Soft Reset
This bit controls HCLK and PCLK reset.
Clear each interrupt and all CSR register bits to 0 except the
followings:
GCLK bit in OTG_HS1_PCGCTRL
PCLKSTOP bit in OTG_HS1_PCGCTRL
PHYCLKSEL bit in OTG_HS1_HCFG
DSPDSEL bit in OTG_HS1_DCFG
Reset the AHB slave to the idle state and clear TXFIFO and
RXFIFO. When the AHB transmission ends, all transactions of AHB
shall be terminated as soon as possible and all transactions on
USB shall be terminated immediately.
Software reset is used generally in either of the following situations:
Software development period.
After the user dynamically changes the PHY selection bit in
the USB configuration register listed above. When the user
changes the PHY, the corresponding clock will be selected for
the PHY and used in the PHY domain. Once a new clock is
selected, the PHY domain must be reset so as to ensure
normal operation
1
HSRST
R/S
HCLK Soft Reset
This bit is used to refresh the control logic of AHB clock domain.
When clearing this interrupt, the corresponding mask interrupt state
control bit shall be cleared; when the interrupt state bit is not
cleared to zero, the event state after this bit is set to 1 can be read.
2
HFCNTRST
R/S
Host Frame Counter Reset
Reset the frame counter in the host by writing this bit, and the SOF
frame number transmitted subsequently is 0.
Note: It can be accessed only in master mode.
3
Reserved
4
RXFFLU
R/S
Flush RXFIFO
This bit is used to refresh the whole RXFIFO. Before writing to this
bit, it is required to ensure that the module does not perform read
and write operation to RXFIFO.
Only after this bit is cleared to 0, can other operations be
performed (usually need to wait for 8 clock cycles).
5
TXFFLU
R/S
Flush TXFIFO
This bit is used to refresh one or the whole TXFIFO. Before writing
to this bit, it is required to ensure that the module does not perform
read and write operation to TXFIFO.