EasyManua.ls Logo

ARTERY AT32F421C8T7 - GPIO Input Data Register (Gpiox_Idt) (X=A; GPIO Output Data Register (Gpiox_Odt) (X= a; GPIO Set;Clear Register (Gpiox_Scr) (X=A; GPIO Write Protection Register (Gpiox_Wpr) (X=A

Default Icon
337 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AT32F421 Series Reference Manual
2022.11.11 Page 89 Rev 2.02
6.3.5 GPIO input data register (GPIOx_IDT) (x=A…H)
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 data register (GPIOx_ODT) (x= AH)
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.
It indicates the output status of I/O port.
0: Low
1: High
6.3.7 GPIO set/clear register (GPIOx_SCR) (x=AH)
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 corresponding ODT bits
1: Clear the corresponding 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 corresponding ODT bits
1: Set the corresponding ODT bits
6.3.8 GPIO write protection register (GPIOx_WPR) (x=A…H)
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 WPEN 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

Table of Contents

Related product manuals