EasyManua.ls Logo

GigaDevice Semiconductor GD32VF103 - Page 503

GigaDevice Semiconductor GD32VF103
536 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GD32VF103 User Manual
503
register is set by USBFS: PRST, PEDC and PCD.
This register has to be accessed by word (32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
PS[1:0]
Reserved
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
PP
PLST[1:0]
Reserved
PRST
PSP
PREM
Reserved
PEDC
PE
PCD
PCST
rw
r
rw
rs
rw
rc_w1
rc_w1
rc_w1
r
Bits
Fields
Descriptions
31:19
Reserved
Must be kept at reset value
18:17
PS[1:0]
Port speed
Report the enumerated speed of the device attached to this port.
01: Full speed
10: Low speed
Others: Reserved
16:13
Reserved
Must be kept at reset value
12
PP
Port power
This bit should be set before a port is used. Because USBFS doesn’t have power
supply ability, it only uses this bit to know whether the port is in powered state.
Software should ensure the true power supply on VBUS before setting this bit.
0: Port is powered off
1: Port is powered on
11:10
PLST[1:0]
Port line status
Report the current state of USB data lines
Bit 10: State of DP line
Bit 11: State of DM line
9
Reserved
Must be kept at reset value
8
PRST
Port reset
Application sets this bit to start a reset signal on USB port. Application should clear
this bit when it wants to stop the reset signal.
0: Port is not in reset state
1: Port is in reset state

Table of Contents