RM0430
33.15.12 OTG general core configuration register (OTG_GCCFG)
Address offset: 0x038
Reset value: 0x0000 XXX0
31
30
29
Res.
Res.
Res.
Res.
15
14
13
Res.
Res.
Res.
Res.
Bits 31:22 Reserved, must be kept at reset value.
Bit 21 VBDEN: USB V
Enables V
host and device operation. If HNP and/or SRP support is enabled, V
automatically enabled independently of VBDEN value.
0 = V
1 = V
Bit 20 SDEN: Secondary detection (SD) mode enable
This bit is set by the software to put the BCD into SD mode. Only one detection mode (DCD,
PD, SD or OFF) should be selected to work correctly
Bit 19 PDEN: Primary detection (PD) mode enable
This bit is set by the software to put the BCD into PD mode. Only one detection mode (DCD,
PD, SD or OFF) should be selected to work correctly.
Bit 18 DCDEN: Data contact detection (DCD) mode enable
This bit is set by the software to put the BCD into DCD mode. Only one detection mode
(DCD, PD, SD or OFF) should be selected to work correctly.
Bit 17 BCDEN: Battery charging detector (BCD) enable
This bit is set by the software to enable the BCD support within the USB device. When
enabled, the USB PHY is fully controlled by BCD and cannot be used for normal
communication. Once the BCD discovery is finished, the BCD should be placed in OFF
mode by clearing this bit to '0' in order to allow the normal USB operation.
Bit 16 PWRDWN: Power down control
Used to activate the transceiver in transmission/reception. When reset, the transceiver is
kept in power-down. When set, the BCD function must be off (BCDEN=0).
0 = USB FS transceiver disabled
1 = USB FS transceiver enabled
Bits 15:4 Reserved, must be kept at reset value.
28
27
26
25
Res.
Res.
Res.
12
11
10
9
Res.
Res.
Res.
detection enable
BUS
sensing comparators to detect V
BUS
Detection Disabled
BUS
Detection Enabled
BUS
DocID029473 Rev 3
USB on-the-go full-speed (OTG_FS)
24
23
22
21
Res.
Res.
Res.
VBDEN SDEN
rw
8
7
6
5
Res.
Res.
Res.
Res.
valid levels on the V
BUS
20
19
18
17
DCD
PDEN
BCDEN
EN
rw
rw
rw
rw
4
3
2
1
PS2
Res.
SDET
PDET
DET
r
r
r
PAD for USB
BUS
comparators are
BUS
16
PWR
DWN
rw
0
DCDET
r
1145/1284
1245
Need help?
Do you have a question about the STM32F413 and is the answer not in the manual?
Questions and answers