Data Sheet
ADuC7023
| Page 53 of 96
Bit
GP0PAR
GP1PAR
GP2PAR
10 to 9
R (b00)
8
R/W
7
Reserved
6 to 5
R (b00)
Reserved
4
R/W
Reserved
3
Reserved
2 to 1
R (b00)
0
R/W
R (b0)
1
When P2.0 is configured as AIN12, the internal pull-up resistor cannot be
disabled.
GP0DAT Register
Name
Address
Default Value
Access
GP0DAT
0xFFFFF420
0x000000XX
R/W
GP1DAT
0xFFFFF430
0x000000XX
R/W
GP2DAT
0xFFFFF440
0x000000XX
R/W
GPxDAT are Port x configuration and data registers. They
configure the direction of the GPIO pins of Port x, set the
output value for the pins configured as output, and store the
input value of the pins configured as input.
Table 60. GPxDAT MMR Bit Descriptions
Bit
Description
31 to 24
Direction of the data.
This bit is set to 1 by the user to configure the GPIO
pin as an output.
This bit is cleared to 0 by the user to configure the
GPIO pin as an input.
23 to 16
Port x data output.
15 to 8
Reflect the state of port x pins at reset (read only).
7 to 0
Port x data input (read only).
GP0SET Register
Name:
GP0SET
Address:
0xFFFFF424
Default value:
0x000000XX
Access:
Write
Function:
GP0SET is a data set Port x register.
GP1SET Register
Name:
GP1SET
Address:
0xFFFFF434
Default value:
0x000000XX
Access:
Write
Function:
GP1SET is a data set Port x
register.
GP2SET Register
Name:
GP2SET
Address:
0xFFFFF444
Default value:
0x000000XX
Access:
Write
Function:
GP2SET is a data set Port x
register.
Table 61. GPxSET MMR Bit Descriptions
Bit
Description
31 to 24
Reserved.
23 to 16
Data port x.
This bit is set to 1 by the user to set bit on Port x; this
bit also sets the corresponding bit in the GPxDAT
MMR.
This bit is cleared to 0 by the user; this bit does not
affect the data out.
15 to 0
Reserved.
GP0CLR Registers
Name:
GP0CLR
Address:
0xFFFFF428
Default value:
0x000000XX
Access:
Write
Function:
GP0CLR is a data clear Port x register.
GP1CLR Registers
Name:
GP1CLR
Address:
0xFFFFF438
Default value:
0x000000XX
Access:
Write
Function:
GP1CLR is a data clear Port x register.
GP2CLR Registers
Name:
GP2CLR
Address:
0xFFFFF448
Default value:
0x000000XX
Access:
Write
Function:
GP2CLR is a data clear Port x register.
Rev. E