
AT32F413
Series Reference Manual
2022.06.27
Page 88
Rev 2.00
6.3.5
GPIO set/clear register (GPIOx_SCR) (x=A..F)
Bit
Register
Reset value
Type
Description
Bit 31: 16 IOCB
0x0000
wo
GPIOx clear bit
The corresponding ODT register bits are cleared by writing
“1” to these bits. Writing 0 has no effect on the ODT register
bits, which is equivalent to ODT register bit operations.
0: No action to the corresponding ODT bits
1: Clear the correspoinding ODT bits
Bit 15: 0
IOSB
0x0000
wo
GPIOx set bit
The corresponding ODT register bits are set by writing “1”
to these bits.Writing 0 has no effect on the ODT register
bits, which is equivalent to ODT register bit operations.
If both IOCB and IOSB are set, the IOSB has priority.
0: No action to the correspoinding ODT bits
1: Set the correspoinding ODT bits
6.3.6
GPIO clear register (GPIOx_CLR) (x=A..F)
Bit
Register
Reset value
Type
Description
Bit 31: 16 Reserved
0x0000
resd
Kept at its default value.
Bit 15: 0
IOCB
0x0000
wo
GPIOx clear bit
The corresponding ODT register bits are cleared by writing
“1” to these bits. Writing o has no effect on the ODT register
bit remains unchanged, which is equivalent to ODT
register bit operations.
0: No action to the correspoinding ODT bits
1: Clear the correspoinding ODT bits
6.3.7
GPIO write protection register (GPIOx_WPR) (x=A..F)
Bit
Register
Reset value
Type
Description
Bit 31: 17 Reserved
0x0000
resd
Kept at its default value.
Bit 16
WPSEQ
0x0
rw
Write protect sequence
Write protect enable sequence bit and WPEN bit must be
enabled at the same time to achieve write protection for
some I/O bits.
Write protect enable bit is executed four times in the order
below: write “1” -> write “0” -> write “1” -> read. Note that
the value of WPSEL bit cannot be modified during this
period.
Bit 15: 0
WPEN
0x0000
rw
Write protect enable
Each bit corresponds to an I/O port.
0: No effect.
1: Write protect