General-purpose I/Os (GPIO)
7.4.2
GPIO port output type register (GPIOx_OTYPER) (x = A..H)
Address offset: 0x04
Reset value: 0x0000 0000
31
30
29
28
Res.
Res.
Res.
Res.
15
14
13
12
OT15
OT14
OT13
OT12
rw
rw
rw
rw
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 OTy: Port x configuration bits (y = 0..15)
7.4.3
GPIO port output speed register (GPIOx_OSPEEDR) (x = A..H)
Address offset: 0x08
Reset values:
•
0x0000 00C0 for port B
•
0x0000 0000 for other ports
31
30
29
OSPEEDR15
OSPEEDR14
[1:0]
[1:0]
rw
rw
rw
15
14
13
OSPEEDR7
OSPEEDR6
[1:0]
[1:0]
rw
rw
rw
Bits 2y:2y+1 OSPEEDRy[1:0]: Port x configuration bits (y = 0..15)
188/1328
27
26
25
Res.
Res.
Res.
11
10
9
OT11
OT10
OT9
rw
rw
rw
These bits are written by software to configure the output type of the I/O port.
0: Output push-pull (reset state)
1: Output open-drain
28
27
26
25
OSPEEDR13
OSPEEDR12
[1:0]
rw
rw
rw
rw
12
11
10
9
OSPEEDR5
OSPEEDR4
[1:0]
rw
rw
rw
rw
These bits are written by software to configure the I/O output speed.
00: Low speed
01: Medium speed
10: Fast speed
11: High speed
Note: Refer to the product datasheets for the values of OSPEEDRy bits versus V
range and external load.
24
23
22
Res.
Res.
Res.
8
7
6
OT8
OT7
OT6
rw
rw
rw
24
23
22
OSPEEDR11
[1:0]
[1:0]
rw
rw
rw
8
7
6
OSPEEDR3[
[1:0]
1:0]
rw
rw
rw
RM0390 Rev 4
21
20
19
18
Res.
Res.
Res.
Res.
5
4
3
2
OT5
OT4
OT3
OT2
rw
rw
rw
rw
21
20
19
OSPEEDR10
OSPEEDR9
[1:0]
[1:0]
rw
rw
rw
5
4
3
OSPEEDR2
OSPEEDR1
[1:0]
[1:0]
rw
rw
rw
RM0390
17
16
Res.
Res.
1
0
OT1
OT0
rw
rw
18
17
16
OSPEEDR8
[1:0]
rw
rw
rw
2
1
0
OSPEEDR0
1:0]
rw
rw
rw
DD
Need help?
Do you have a question about the STM32F446 Series and is the answer not in the manual?