Datasheet
ADuC7033
Rev. B | Page 93 of 140
GPIO Port0 Data Register
Name: GP0DAT
Address: 0xFFFF0D20
Default Value: 0x000000XX
Access: Read/write
Function: This 32-bit MMR configures the direction of the GPIO pins assigned to Port0 (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 62. GP0DAT MMR Bit Designations
Bit Description
31 to 29 Reserved. These bits are reserved and should be written as 0 by user code.
28 Port0.4 Direction Select Bit.
Cleared to 0 by user code to configure the GPIO pin assigned to Port0.4 as an input.
Set to 1 by user code to configure the GPIO pin assigned to Port0.4 as an output.
27 Port0.3 Direction Select Bit.
Cleared to 0 by user code to configure the GPIO pin assigned to Port0.3 as an input.
Set to 1 by user code to configure the GPIO pin assigned to Port0.3 as an output.
26 Port0.2 Direction Select Bit.
Cleared to 0 by user code to configure the GPIO pin assigned to Port0.2 as an input.
Set to 1 by user code to configure the GPIO pin assigned to Port0.2 as an output.
25 Port0.1 Direction Select Bit.
Cleared to 0 by user code to configure the GPIO pin assigned to Port0.1 as an input.
Set to 1 by user code to configure the GPIO pin assigned to Port0.1 as an output.
24 Port0.0 Direction Select Bit.
Cleared to 0 by user code to configure the GPIO pin assigned to Port0.0 as an input.
Set to 1 by user code to configure the GPIO pin assigned to Port0.0 as an output.
23 to 21 Reserved. These bits are reserved and should be written as 0 by user code.
20 Port0.4 Data Output. The value written to this bit appears directly on the GPIO pin assigned to Port0.4.
19 Port0.3 Data Output. The value written to this bit appears directly on the GPIO pin assigned to Port0.3.
18 Port0.2 Data Output. The value written to this bit appears directly on the GPIO pin assigned to Port0.2.
17 Port0.1 Data Output. The value written to this bit appears directly on the GPIO pin assigned to Port0.1.
16 Port0.0 Data Output. The value written to this bit appears directly on the GPIO pin assigned to Port0.0.
15 to 5 Reserved. These bits are reserved and should be written as 0 by user code.
4
Port0.4 Data Input. This bit is a read-only bit that reflects the current status of the GPIO pin assigned to Port0.4. User code should
write 0 to this bit.
3
Port0.3 Data Input. This bit is a read-only bit that reflects the current status of the GPIO pin assigned to Port0.3. User code should
write 0 to this bit.
2
Port0.2 Data Input. This bit is a read-only bit that reflects the current status of the GPIO pin assigned to Port0.2. User code should
write 0 to this bit.
1
Port0.1 Data Input. This bit is a read-only bit that reflects the current status of the GPIO pin assigned to Port0.1. User code should
write 0 to this bit.
0
Port0.0 Data Input. This bit is a read-only bit that reflects the current status of the GPIO pin assigned to Port0.0. User code should
write 0 to this bit.