RM0453 Rev 1 411/1461
RM0453 General-purpose I/Os (GPIO)
427
10.4.14 GPIOC output speed register (GPIOC_OSPEEDR)
Address offset: 0x0808
Reset value: 0x0000 0000
Bit 2 OT2: Port PC2 output type configuration
Bit 1 OT1: Port PC1 output type configuration
Bit 0 OT0: Port PC0 output type configuration
These bits are written by software to configure the I/O output type.
0: Output push-pull (reset state)
1: Output open-drain
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
OSPEED15[1:0] OSPEED14[1:0] OSPEED13[1:0] Res. Res. Res. Res. Res. Res. Res. Res. Res. Res.
rw rw rw rw rw rw
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Res. Res. OSPEED6[1:0] OSPEED5[1:0] OSPEED4[1:0] OSPEED3[1:0] OSPEED2[1:0] OSPEED1[1:0] OSPEED0[1:0]
rw rw rw rw rw rw rw rw rw rw rw rw rw rw
Bits 31:30 OSPEED15[1:0]: Port PC15 output speed configuration
Bits 29:28 OSPEED14[1:0]: Port PC14 output speed configuration
Bits 27:26 OSPEED13[1:0]: Port PC13 output speed configuration
Bits 25:14 Reserved, must be kept at reset value.
Bits 13:12 OSPEED6[1:0]: Port PC6 output speed configuration
Bits 11:10 OSPEED5[1:0]: Port PC5 output speed configuration
Bits 9:8 OSPEED4[1:0]: Port PC4 output speed configuration
Bits 7:6 OSPEED3[1:0]: Port PC3 output speed configuration
Bits 5:4 OSPEED2[1:0]: Port PC2 output speed configuration
Bits 3:2 OSPEED1[1:0]: Port PC1 output speed configuration
Bits 1:0 OSPEED0[1:0]: Port PC0 output speed configuration
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 device datasheet for the frequency specifications and the power supply
and load conditions for each speed.