
GD32L23x User Manual
630
27.7.3.
USBD status register (USBD_STAT)
Address offset: 0x48
Reset value: 0x0XXX where X is undefined
This register can be accessed by half-word (16-bit) or word (32-bit)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RX_DP
RX_DM
LOCK
SOFLN[1:0]
FCNT[10:0]
r
r
r
r
r
Bits
Fields
Descriptions
15
RX_DP
Receive data + line status
Represent the status on the DP line
14
RX_DM
Receive data - line status
Represent the status on the DM line
13
LOCK
Locked the USB
Set by the hardware indicate that at the least two consecutive SOF have been
received
12:11
SOFLN[1:0]
SOF lost number
Increment every ESOFIF happens by hardware
Cleared once the reception of SOF
10:0
FCNT[10:0]
Frame number counter
The Frame number counter incremented every SOF received.
27.7.4.
USBD device address register (USBD_DADDR)
Address offset: 0x4C
Reset value: 0x0000
This register can be accessed by half-word (16-bit) or word (32-bit)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
USBEN
USBDAR[6:0]
rw
rw
Bits
Fields
Descriptions
15:8
Reserved
Must be kept at reset value.
7
USBEN
USB device enable
Set by software to enable the USB device
0: The USB device disabled. No transactions handled.
1: The USB device enabled.