AT32WB415
Series Reference Manual
2022.04.13
Page 351
Ver 2.00
Bit 6: 4
TSTCTL
0x0
rw
Test control
000: Test mode disabled
001: Test_J mode
010
:
Test_K mode
011: Test_SE0_NAK mode
100: Test_Packet mode
101: Test_Force_Enable
;
Others: Reserved
Bit 3
GOUTNAKSTS
0x0
ro
Global OUT NAK status
0: A handshake is sent based on the FIFO status, NAK and
STALL bit settings.
1: No data is written to the receive FIFO, irrespective of
space availability. Sends a NAK handshake on all packets
(except on SETUP transfers). Drops all synchronous OUT
packets.
Bit 2
GNPINNAKSTS
0x0
ro
Global Non-periodic IN NAK status
0: A handshake is sent based on the data status in the
transmit FIFO
1: A NAK handshake is sent on all non periodic IN
endpoints, irrespective of the data status in the transmit
FIFO.
Bit 1
SFTDISCON
0x1
rw
Software disconnect
The application uses this bit to indicate the OTGFS
controller to perform software disconnected. Once this bit
is set, the host finds the device disconnected, and the
device does not receive signals on the USB bus. The
controller stays in the disconnected state until the
application clears this bit.
0: Normal operaton. When this bit is cleared after a
software disconnect, the controller issues a device
connect event to the host. Then the USB host restarts
device enumeration.
Bit 0
RWKUPSIG
0x0
rw
Remote wakeup signaling
When this bit is set by the application, the controller
initiates a remote signal to wakeup the USB host. The
application must set this bit to indicate the controller to exit
the suspend mode. Per USB2.0 standards, the application
must clear this bit 1-15 ms after setting it.
lists the minimum duration at which the software disconnect bit must be set in various
states for the USB host to detect a device disconnect. To accommodate clock jitter, it is advised that
the application adds some extra delay to the specified minimum duration.
Table 20-5 Minimum duration for software disconnect
Operating speed
Device state
Minimum duration
Full speed
Suspend
1ms + 2.5us
Full speed
Idle
2.5us
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