6.4 GPIO registerssection นี้ให้ a detailed description ของ the GPIO registers.
สำหรับข้อมูลสรุปของ register bits, register address offsets and reset values, ดูที่ Table 23.
The peripheral registers สามารถถูกเขียนใน word, half word or byte mode.
6.4.1 GPIO port mode register (GPIOx_MODER) (x =A to K)Address offset:0x00
Reset value:
• 0xA800 0000 for port A
• 0x0000 0280 for port B
• 0x0000 0000 for other ports

Bits 31:0
MODER[15:0][1:0]: Port x configuration I/O pin y (y = 15 to 0)
บิตเหล่านี้ถูกเขียนโดย software เพื่อกำหนดค่า the I/O mode.
00: Input mode (reset state)
01: General purpose output mode
10: Alternate function mode
11: Analog mode