UG-498
ADuCM320 Hardware Reference Manual
Rev. C | Page 94 of 196
DIGITAL PORT MULTIPLEX
This block provides control over the GPIO functionality of specified pins because some of the pins offer the choice to work as a GPIO or
to have other specific functions.
Table 121. GPIO Multiplex Table
GPIO
Configuration Modes
00
01
10
11
GP0—GP0CON Controls These Bits
P0.0
GPIO
(GP0CON[1:0] = 0x0)
SPI0 SCLK
(GP0CON[1:0] = 0x1)
PLAI[0]
(GP0CON[1:0] = 0x3)
P0.1
GPIO
(GP0CON[3:2] = 0x0)
SPI0 MISO
(GP0CON[3:2] = 0x1)
PLAI[1]
(GP0CON[3:2] = 0x3)
P0.2
GPIO
(GP0CON[5:4] = 0x0)
SPI0 MOSI
(GP0CON[5:4] = 0x1)
PLAI[2]
(GP0CON[5:4] = 0x3)
P0.3
GPIO/IRQ0
(GP0CON[7:6] = 0x0)
SPI0 CS
(GP0CON[7:6] = 0x1)
PLACLK0
(GP0CON[7:6] = 0x2)
PLAI[3]
(GP0CON[7:6] = 0x3)
P0.4
GPIO
(GP0CON[9:8] = 0x0)
I2C0 SCL
(GP0CON[9:8] = 0x1)
PLAO[2]
(GP0CON[9:8] = 0x3)
P0.5
GPIO
(GP0CON[11:10] = 0x0)
I2C0 SDA
(GP0CON[11:10] = 0x1)
PLAO[3]
(GP0CON[11:10] = 0x1)
P0.6
GPIO
(GP0CON[13:12] = 0x0)
I2C1 SCL
(GP0CON[13:12] = 0x1)
PLAO[4]
(GP0CON[13:12] = 0x3)
P0.7
GPIO
(GP0CON[15:14] = 0x0)
I2C1 SDA
(GP0CON[15:14] = 0x1)
PLAO[5]
(GP0CON[15:14] = 0x3)
GP1—GP1CON Controls These Bits
P1.0
GPIO
(GP1CON[1:0] = 0x0)
UART SIN
(GP1CON[1:0] = 0x1)
ECLKIN
(GP1CON[1:0] = 0x2)
PLAI[4]
(GP1CON[1:0] = 0x3)
P1.1
GPI0
(GP1CON[3:2] = 0x0)
UART SOUT
(GP1CON[3:2] = 0x1)
PLACLK1
(GP1CON[3:2] = 0x2)
PLAI[5]
(GP1CON[3:2] = 0x3)
P1.2
GPIO
(GP1CON[5:4] = 0x0)
PWM0
(GP1CON[5:4] = 0x1)
PLAI[6]
(GP1CON[5:4] = 0x3)
P1.3
GPIO
(GP1CON[7:6] = 0x0)
PWM1
(GP1CON[7:6] = 0x1)
PLAI[7]
(GP1CON[7:6] = 0x3)
P1.4
GPIO
(GP1CON[9:8] = 0x0)
PWM2
(GP1CON[9:8] = 0x1)
SPI1 SCLK
(GP1CON[9:8] = 0x2)
PLAO[10]
(GP1CON[9:8] = 0x3)
P1.5
GPIO
(GP1CON[11:10] = 0x0)
PWM3
(GP1CON[11:10] = 0x1)
SPI1 MISO
(GP1CON[11:10] = 0x2)
PLAO[11]
(GP1CON[11:10] = 0x3)
P1.6
GPIO
(GP1CON[13:12] = 0x0)
PWM4
(GP1CON[13:12] = 0x1)
SPI1 MOSI
(GP1CON[13:12] = 0x2)
PLAO[12]
(GP1CON[13:12] = 0x3)
P1.7
GPIO/IRQ1
(GP1CON[15:14] = 0x0)
PWM5
(GP1CON[15:14] = 0x1)
SPI1 CS
(GP1CON[15:14] = 0x2)
PLAO[13]
(GP1CON[15:14] = 0x3)
GP2—GP2CON Controls These Bits
P2.0
GPIO/IRQ2
(GP2CON[1:0] = 0x0)
PWMTRIP
(GP2CON[1:0] = 0x1)
PLACLK2
(GP2CON[1:0] = 0x2)
PLAI[8]
(GP2CON[1:0] = 0x3)
P2.1
P2.2
GPIO/IRQ4
(GP2CON[5:4] = 0x0)
PORB
(GP2CON[5:4] = 0x1)
CLKOUT
(GP2CON[5:4] = 0x2)
PLAI[10]
(GP2CON[5:4] = 0x3)
P2.3
GPIO/BM
(GP2CON[7:6] = 0x0)
P2.4
GPIO/IRQ5
(GP2CON[9:8] = 0x0)
ADCCONV
(GP2CON[9:8] = 0x1)
PWM6
(GP2CON[9:8] = 0x2)
PLAO[18]
GP2CON[9:8] = 0x3)