Gpio Registers; Gpio Port Mode Register (Gpiox_Moder) (X = A..i; Table 31. Rtc_Af2 Pin - ST STM32F40 Series Reference Manual

Hide thumbs Also See for STM32F40 Series:
Table of Contents

Advertisement

RM0090
Table 31.
RTC_AF2 pin
Pin configuration and function
TAMPER1 input floating
TIMESTAMP and TAMPER1 input
floating
TIMESTAMP input floating
Standard GPIO
7.4

GPIO registers

This section gives a detailed description of the GPIO registers.
For a summary of register bits, register address offsets and reset values, refer to
The GPIO registers can be accessed by byte (8 bits), half-words (16 bits) or words (32 bits).
7.4.1

GPIO port mode register (GPIOx_MODER) (x = A..I)

Address offset: 0x00
Reset values:
0xA800 0000 for port A
0x0000 0280 for port B
0x0000 0000 for other ports
31
30
29
28
MODER15[1:0]
MODER14[1:0]
rw
rw
rw
rw
15
14
13
12
MODER7[1:0]
MODER6[1:0]
rw
rw
rw
rw
Bits 2y:2y+1 MODERy[1:0]: Port x configuration bits (y = 0..15)
Tamper
enabled
1
1
0
0
27
26
25
MODER13[1:0]
MODER12[1:0]
rw
rw
rw
11
10
9
MODER5[1:0]
MODER4[1:0]
rw
rw
rw
These bits are written by software to configure the I/O direction mode.
00: Input (reset state)
01: General purpose output mode
10: Alternate function mode
11: Analog mode
Doc ID 018909 Rev 4
Time
TAMP1INSEL
stamp
TAMPER1
enabled
pin selection
0
1
1
1
1
Don't care
0
Don't care
24
23
22
21
MODER11[1:0]
MODER10[1:0]
rw
rw
rw
rw
8
7
6
5
MODER3[1:0]
MODER2[1:0]
rw
rw
rw
rw
General-purpose I/Os (GPIO)
TSINSEL
ALARMOUTTYPE
TIMESTAMP
RTC_ALARM
pin
configuration
selection
Don't care
Don't care
1
Don't care
1
Don't care
Don't care
Don't care
Table
20
19
18
17
MODER9[1:0]
MODER8[1:0]
rw
rw
rw
rw
4
3
2
1
MODER1[1:0]
MODER0[1:0]
rw
rw
rw
rw
32.
16
rw
0
rw
198/1422

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F40 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Stm32f41 seriesStm32f42 seriesStm32f43 seriesRm0090

Table of Contents

Save PDF