AT32F425
Series Reference Manual
2022.03.30
Page 389
Ver 2.01
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.
20.6.3.6 OTGFS interrupt register (OTGFS_GINTSTS)
This register interrupts the application due to system-level events in the current mode (device or host
mode), as shown in
Some of the bits in this register are valid only in host mode, while others are valid in device mode only.
Besides, this register indicates the current mode.
The FIFO status interrupts are read-only. The FIFO interrupt conditions are cleared automatically as
soon as the software reads from or writes to the FIFO while processing these interrupts.
The application must clear the GINTSTS register at initialization before enabling an interrupt bit to avoid
any interrupt generation prior to initialization.
Bit
Register
Reset value
Type
Description
Bit 31
WKUPINT
0x0
rw1c
Accesible in both host mode and device modes
Resume/Remote wakeup detected interrupt)
In device mode, this interrupt is generated only when a
resume signal (triggered by host) is detected on the USB
bus.
In host mode, this interrupt is generated only when a
remote wakeup signal (triggered by device) is detected on
the USB bus.
Bit 30
Reserved
0x0
resd
Kept at its default value.
Bit 29
DISCONINT
0x0
rw1c
Accesible in host mode only
Disconnect detected interrupt
The interrupt is generated when a device disconnect is
detected.
Bit 28
CONIDSCHG
0x0
rw1c
Accesible in both host mode and device modes
Connector ID status change
This bit is set by the controller when there is a change in
connector ID status.
Bit 27
Reserved
0x0
resd
Kept at its default value.
Bit 26
PTXFEMP
0x1
ro
Accesible in host mode only
Periodic TxFIFO Empty
The interrupt is generated when the Periodic Transmit
FIFO is either half or completely empty and there is space
for a request to be written in the perioid request queue. The
half or completely empty status depends on the periodic
transmit FIFO empty level bit in the AHB configuration
register.
Bit 25
HCHINT
0x0
ro
Host channel interrupt
The controller sets this bit to indicate that an interrupt is
pending on one of the channels in the controller (in host
mode). The application must read the Host All Channels
Interrupt register to determine the exact number of the
channel on which the interrupt occurred, and then read the
Host Channel-n Interrupt register to determine the interrupt
event source.
The application must clear the corresponding status bit in
the HCINTn (Host All Channels Interrupt) register to clear
this bit.
Bit 24
PRTINT
0x0
ro
Host port interrupt
The controller sets this bit to indicate a change in port
status one of the ports. The application must read the Host
Port Control and Status register to determine the exact
event source. The application must clear the Host Port