AT32F425
Series Reference Manual
2022.03.30
Page 405
Ver 2.01
Full speed
No idle or suspend
(performing transfers)
2.5us
20.6.5.3 OTGFS device status register (OTGFS_DSTS)
This register indicates the status of the controller related to OTGFS events. It must be read on interrupt
events from the device all interrupts register (OTGFS_DAINT).
Bit
Register
Reset value
Type
Description
Bit 31: 22 Reserved
0x000
resd
Kept at its default value.
Bit 21: 8
SOFFN
0x0000
ro
Frame number of the received SOF
Note: The read value of this field immediately after power-
on reset reflects a non-zero value. If a non-zero value is
returned after reading this field immediately after power-on
reset, it does not mean that the host has received a SOP.
The read value of this field is valid only when the host is
connected to the device.
Bit 7: 4
Reserved
0x1
resd
Kept at its default value.
Bit 3
ETICERR
0x0
ro
Erratic error
This error causes the controller to enter suspend mode,
and interrupt is generated with the early suspend bit of the
controller interrupt register. If the early suspend is asserted
due to an erratic error, the application can only perform a
software disconnect recover.
Bit 2: 1
ENUMSPD
0x0
ro
Enumerated speed
Indicates the speed at which the controller has determined
after speed detection through a sequence.
01: Reserved
10: Reserved
11: Full speed (PHY clock is running at 48MHz)
;
Others: Reserved
Bit 0
SUSPSTS
0x0
ro
Suspend status
In device mode, this bit is set as long as a suspend
condition is detected on the USB bus. The controller enters
the suspend state when there is no activity on the USB
bus.
The controller exits the suspend state on the following
conditions:
–
When there is an activity on the USB bus
–
When the application writes to the remote wakeup signal
bit in the device control register.
20.6.5.4 OTGFS device OTGFSIN endpoint common interrupt mask
register (OTGFS_DIEPMSK)
This register works with each of the device IN endpoint interrupt register for all endpoints to generate
an IN endpoint interrupt. The IN endpoint interrupt for a specific status in the OTGFS_DIEPINTx
register can be masked by writing to the corresponding bit in the OTGFS_DIEPMSK register. Status
bits are masked by default.
Bit
Register
Reset value
Type
Description
Bit 31: 10 Reserved
0x000000
resd
Kept at its defaut value.
Bit 9
BNAINMSK
0x0
rw
BNA interrupt mask
0: Interrupt masked
1: Interrupt unmasked
Bit 8
TXFIFOUDRMSK
0x0
rw
FIFO underrun mask
0: Interrupt masked
1: Interrupt unmasked
Bit 7
Reserved
0x0
resd
Kept at its defaut value.
Bit 6
INEPTNAKMSK
0x0
rw
IN endpoint NAK effective mask
0: Interrupt masked
1: Interrupt unmasked
Bit 5
INTKNEPTMISMSK 0x0
rw
IN token received with EP mismatch mask
0: Interrupt masked
1: Interrupt unmasked