Datasheet
ADuC7033
Rev. B | Page 95 of 140
GPIO Port2 Data Register
Name: GP2DAT
Address: 0xFFFF0D40
Default Value: 0x000000XX
Access: Read/write
Function: This 32-bit MMR configures the direction of the GPIO pins assigned to Port2 (see Table 58). This register also sets the
output value for GPIO pins configured as outputs and reads the status of GPIO pins configured as inputs.
Table 64. GP2DAT MMR Bit Designations
Bit Description
31 Reserved. This bit is reserved and should be written as 0 by user code.
30 Port2.6 Direction Select Bit.
Cleared to 0 by user code to configure the GPIO pin assigned to Port2.6 as an input.
Set to 1 by user code to configure the GPIO pin assigned to Port2.6 as an output.
29 Port2.5 Direction Select Bit.
Cleared to 0 by user code to configure the GPIO pin assigned to Port2.5 as an input.
Set to 1 by user code to configure the GPIO pin assigned to Port2.5 as an output. This configuration is used to support
diagnostic write capability to the high voltage I/O pins.
28 Port2.4 Direction Select Bit.
Cleared to 0 by user code to configure the GPIO pin assigned to Port2.4 as an input. This configuration is used to support
diagnostic readback capability from the high voltage I/O pins (see HVCFG1[2:0]).
Set to 1 by user code to configure the GPIO pin assigned to Port2.4 as an output.
27 to 26 Reserved. These bits are reserved and should be written as 0 by user code.
25 Port2.1 Direction Select Bit.
Cleared to 0 by user code to configure the GPIO pin assigned to Port2.1 as an input.
Set to 1 by user code to configure the GPIO pin assigned to Port2.1 as an output.
24 Port2.0 Direction Select Bit.
Cleared to 0 by user code to configure the GPIO pin assigned to Port2.0 as an input.
Set to 1 by user code to configure the GPIO pin assigned to Port2.0 as an output.
23 Reserved. This bit is reserved and should be written as 0 by user code.
22 Port2.6 Data Output. The value written to this bit appears directly on the GPIO pin assigned to Port2.6.
21 Port2.5 Data Output. The value written to this bit appears directly on the GPIO pin assigned to Port2.5.
20 to 18 Reserved. These bits are reserved and should be written as 0 by user code.
17 Port2.1 Data Output. The value written to this bit appears directly on the GPIO pin assigned to Port2.1.
16 Port2.0 Data Output. The value written to this bit appears directly on the GPIO pin assigned to Port2.0.
15 to 7 Reserved. These bits are reserved and should be written as 0 by user code.
6
Port2.6 Data Input. This bit is a read-only bit that reflects the current status of the GPIO pin assigned to Port2.6. User code
should write 0 to this bit.
5
Port2.5 Data Input. This bit is a read-only bit that reflects the current status of the GPIO pin assigned to Port2.5. User code
should write 0 to this bit.
4
Port2.4 Data Input. This bit is a read-only bit that reflects the current status of the GPIO pin assigned to Port2.4. User code
should write 0 to this bit.
3 to 2 Reserved. These bits are reserved and should be written as 0 by user code.
1
Port2.1 Data Input. This bit is a read-only bit that reflects the current status of the GPIO pin assigned to Port2.1. User code
should write 0 to this bit.
0
Port2.0 Data Input. This bit is a read-only bit that reflects the current status of the GPIO pin assigned to Port2.0. User code
should write 0 to this bit.