Gpio Port Bit Set/Reset Register (Gpiox_Bsrr) (X = A; (X = A - ST STM32F405 Reference Manual

Hide thumbs Also See for STM32F405:
Table of Contents

Advertisement

General-purpose I/Os (GPIO)
8.4.7
GPIO port bit set/reset register (GPIOx_BSRR) (x = A..I/J/K)
Address offset: 0x18
Reset value: 0x0000 0000
31
30
29
BR15
BR14
BR13
BR12
w
w
w
15
14
13
BS15
BS14
BS13
BS12
w
w
w
Bits 31:16 BRy: Port x reset bit y (y = 0..15)
Note: If both BSx and BRx are set, BSx has priority.
Bits 15:0 BSy: Port x set bit y (y= 0..15)
8.4.8
GPIO port configuration lock register (GPIOx_LCKR)
(x = A..I/J/K)
This register is used to lock the configuration of the port bits when a correct write sequence
is applied to bit 16 (LCKK). The value of bits [15:0] is used to lock the configuration of the
GPIO. During the write sequence, the value of LCKR[15:0] must not change. When the
LOCK sequence has been applied on a port bit, the value of this port bit can no longer be
modified until the next MCU or peripheral reset.
Note:
A specific write sequence is used to write to the GPIOx_LCKR register. Only word access
(32-bit long) is allowed during this write sequence.
Each lock bit freezes a specific configuration register (control and alternate function
registers).
Address offset: 0x1C
Reset value: 0x0000 0000
Access: 32-bit word only, read/write register
31
30
29
15
14
13
LCK15
LCK14
LCK13
LCK12
rw
rw
rw
284/1749
28
27
26
25
BR11
BR10
BR9
w
w
w
w
12
11
10
9
BS11
BS10
BS9
w
w
w
w
These bits are write-only and can be accessed in word, half-word or byte mode. A read to
these bits returns the value 0x0000.
0: No action on the corresponding ODRx bit
1: Resets the corresponding ODRx bit
These bits are write-only and can be accessed in word, half-word or byte mode. A read to
these bits returns the value 0x0000.
0: No action on the corresponding ODRx bit
1: Sets the corresponding ODRx bit
28
27
26
25
12
11
10
9
LCK11
LCK10
LCK9
rw
rw
rw
rw
24
23
22
BR8
BR7
BR6
w
w
w
8
7
6
BS8
BS7
BS6
w
w
w
24
23
22
Reserved
8
7
6
LCK8
LCK7
LCK6
rw
rw
rw
RM0090 Rev 18
21
20
19
18
BR5
BR4
BR3
BR2
w
w
w
w
5
4
3
2
BS5
BS4
BS3
BS2
w
w
w
w
21
20
19
18
5
4
3
2
LCK5
LCK4
LCK3
LCK2
rw
rw
rw
rw
RM0090
17
16
BR1
BR0
w
w
1
0
BS1
BS0
w
w
17
16
LCKK
rw
1
0
LCK1
LCK0
rw
rw

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents

Save PDF