Datasheet
ADuC7033
Rev. B | Page 90 of 140
GPIO Port0 Control Register
Name: GP0CON
Address: 0xFFFF0D00
Default Value: 0x11100000
Access: Read/write
Function: The 32-bit MMR selects the pin function for each Port0 pin.
Table 59. GP0CON MMR Bit Designations
Bit Description
31 to 29 Reserved. These bits are reserved and should be written as 0 by user code.
28 Reserved. This bit is reserved and should be written as 1 by user code.
27 to 25 Reserved. These bits are reserved and should be written as 0 by user code.
24
Internal P0.6 Enable Bit. This bit must be set to 1 by user software to enable the high voltage serial interface before
using the HVCON and HVDAT registered high voltage interface.
23 to 21 Reserved. These bits are reserved and should be written as 0 by user code.
20
Internal P0.5 Enable Bit. This bit must be set to 1 by user software to enable the high voltage serial interface before
using the HVCON and HVDAT registered high voltage interface.
19 to 17 Reserved. These bits are reserved and should be written as 0 by user code.
16 GPIO_4 Function Select Bit.
Cleared by user code to 0 to configure the GPIO_4 pin as a general-purpose I/O (GPIO) pin.
Set to 1 by user code to configure the GPIO_4 pin as ECLK enabling a 2.56 MHz clock output on this pin.
15 to 13 Reserved. These bits are reserved and should be written as 0 by user code.
12 GPIO_3 Function Select Bit.
Cleared by user code to 0 to configure the GPIO_3 pin as a general-purpose I/O (GPIO) pin.
Set to 1 by user code to configure the GPIO_3 pin as MOSI, master output, and slave input data for the SPI port.
11 to 9 Reserved. These bits are reserved and should be written as 0 by user code.
8 GPIO_2 Function Select Bit.
Cleared to 0 by user code to configure the GPIO_2 pin as a general-purpose I/O (GPIO) pin.
Set to 1 by user code to configure the GPIO_2 pin as MISO, master input, and slave output data for the SPI port.
7 to 5 Reserved. These bits are reserved and should be written as 0 by user code.
4 GPIO_1 Function Select Bit.
Cleared to 0 by user code to configure the GPIO_1 pin as a general-purpose I/O (GPIO) pin.
Set to 1 by user code to configure the GPIO_1 pin as SCLK, serial clock I/O for the SPI port.
3 to 1 Reserved. These bits are reserved and should be written as 0 by user code.
0 GPIO_0 Function Select Bit.
Cleared to 0 by user code to configure the GPIO_0 pin as a general-purpose I/O (GPIO) pin.
Set to 1 by user code to configure the GPIO_0 pin as SS
, slave select I/O for the SPI port.