AT32F425
Series Reference Manual
2022.03.30
Page 92
Ver 2.01
6.3.5
GPIO input register (GPIOx_IDH) (x=A/B/C/D/F)
Bit
Register
Reset value
Type
Description
Bit 31: 16 Reserved
0x0000
resd
Always 0.
Bit 15: 0
IDT
0xXXXX
ro
GPIOx input data
Indicates the input status of I/O port. Each bit corresponds
to an I/O.
6.3.6
GPIO output register (GPIOx_IDH) (x= A/B/C/D/F)
Bit
Register
Reset value
Type
Description
Bit 31: 16 Reserved
0x0000
resd
Always 0.
Bit 15: 0
ODT
0x0000
rw
GPIOx output data
Each bit represents an I/O port.
As output: it indicates the output status of I/O port.
0: Low
1: High
As input: it indicates the pull-up/pull-down status of I/O
port.
0: Pull-down
1: Pull-up
6.3.7
GPIO set/clear register (GPIOx_SCR) (x=A/B/C/D/F)
Bit
Register
Reset value
Type
Description
Bit 31: 16 IOCB
0x0000
wo
GPIOx clear bit
The corresponding ODT register bit is cleared by writing
“1” to these bits. Otherwise, the corresponding ODT
register bit remains unchanged, which acts as ODT
register bit operations.
0: No action to the correspoinding ODT bits
1: Clear the correspoinding ODT bits
Bit 15: 0
IOSB
0x0000
wo
GPIOx set bit
The corresponding ODT register bit is set by writing “1” to
these bits. Otherwise, the corresponding ODT register bit
remains unchanged, which acts as ODT register bit
operations.
0: No action to the correspoinding ODT bits
1: Set the correspoinding ODT bits
6.3.8
GPIO write protection register (GPIOx_WPR)
(x=A/B/C/D/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