1.4.2 Configuration Overview
The pin function assignments, input qualification, and the external interrupt sources are all controlled by the
GPIO configuration control registers. In addition, you can assign pins to wake the device from the HALT and
STANDBY low power modes and enable/disable internal pullup resistors.
registers that are used to configure the GPIO pins to match the system requirements.
Table 1-56. GPIO Control Registers
Address
Size (x16)
Register Description
Bit Description
GPACTRL
0x6F80
2
GPIO A Control Register (GPIO0-GPIO31)
GPAQSEL1
0x6F82
2
GPIO A Qualifier Select 1 Register (GPIO0-GPIO15)
GPAQSEL2
0x6F84
2
GPIO A Qualifier Select 2 Register (GPIO16-GPIO31)
GPAMUX1
0x6F86
2
GPIO A MUX 1 Register (GPIO0-GPIO15)
GPAMUX2
0x6F88
2
GPIO A MUX 2 Register (GPIO16-GPIO31)
GPADIR
0x6F8A
2
GPIO A Direction Register (GPIO0-GPIO31)
GPAPUD
0x6F8C
2
GPIO A Pull Up Disable Register (GPIO0-GPIO31)
GPACTRL2
0x6F8E
2
USB I/O Control
GPBCTRL
0x6F90
2
GPIO B Control Register (GPIO32-GPIO58)
GPBQSEL1
0x6F92
2
GPIO B Qualifier Select 1 Register (GPIO32-GPIO44)
GPBQSEL2
0x6F94
2
GPIO B Qualifier Select 2 Register (GPIO50-GPIO58)
GPBMUX1
0x6F96
2
GPIO B MUX 1 Register (GPIO32-GPIO44)
GPBMUX2
0x6F98
2
GPIO B MUX2 Register (GPIO50-GPIO58)
GPBDIR
0x6F9A
2
GPIO B Direction Register (GPIO32-GPIO58)
GPBPUD
0x6F9C
2
GPIO B Pull Up Disable Register (GPIO32-GPIO58)
AIOMUX1
0x6FB6
2
Analog, I/O MUX 1 register (AIO0 - AIO15)
AIODIR
0x6FBA
2
Analog, I/O Direction Register (AIO0 - AIO15)
(1)
The registers in this table are EALLOW protected. See
Table 1-57. GPIO Interrupt and Low Power Mode Select Registers
Address
Size (x16) Register Description
Bit Description
GPIOXINT1SEL
0x6FE0
1
XINT1 Source Select Register (GPIO0-GPIO31)
GPIOXINT2SEL
0x6FE1
1
XINT2 Source Select Register (GPIO0-GPIO31)
GPIOXINT3SEL
0x6FE2
1
XINT3 Source Select Register (GPIO0 - GPIO31)
GPIOLPMSEL
0x6FE8
1
LPM wakeup Source Select Register (GPIO0-GPIO31)
(1)
The registers in this table are EALLOW protected. See
To plan configuration of the GPIO module, consider the following steps:
1.
Plan the device pin-out:
Through a pin multiplexing scheme, a lot of flexibility is provided for assigning functionality to the GPIO-
capable pins. Before getting started, look at the peripheral options available for each pin, and plan pin-out
for your specific system. Will the pin be used as a general purpose input or output (GPIO) or as one of up
to three available peripheral functions? Knowing this information will help determine how to further configure
the pin.
2.
Enable or disable internal pull-up resistors:
To enable or disable the internal pullup resistors, write to the respective bits in the GPIO pullup disable
(GPAPUD and GPBPUD) registers. For pins that can function as ePWM output pins, the internal pullup
resistors are disabled by default. All other GPIO-capable pins have the pullup enabled by default. The AIOx
pins do not have internal pull-up resistors.
System Control and Interrupts
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
113
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......