![Texas Instruments Concerto F28M36 Series Скачать руководство пользователя страница 385](http://html1.mh-extra.com/html/texas-instruments/concerto-f28m36-series/concerto-f28m36-series_technical-reference-manual_1095461385.webp)
C28 General-Purpose Input/Output (GPIO)
385
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
General-Purpose Input/Output (GPIO)
Table 4-36. GPIO Control Registers (continued)
Name
(1)
Address
Size (x16)
Register Description
GPGPUD
0x6F8C
2
GPIO G Pull Up Disable Register (GPIO192 -
GPIO199)
AIOMUX1
0x6FB6
2
Analog IO MUX 1 Register (AIO0 to AIO15)
AIOMUX2
0x6FB8
2
Analog IO MUX 2 Register (AIO16 to AIO31)
AIODIR
0x6FBA
2
Analog IO Direction Register (AIO0 AIO31)
(1)
In Master Receive mode, a STOP condition should be generated only after a Data Negative Acknowledge executed by the
master or an Address Negative Acknowledge executed by the slave.
Table 4-37. GPIO Trip Input Select Registers
Name
(1)
Address
Size (x16)
Description
GPTRIP1SEL
0x5FE0
1
GPTRIP1 (TZ1n) Input Select Register (GPIO0 -
GPIO63)
GPTRIP2SEL
0x5FE1
1
GPTRIP2 (TZ2n, ADCEXTTRIG) Input Select
Register (GPIO0 - GPIO63)
GPTRIP3SEL
0x5FE2
1
GPTRIP3 (TZ3n) Input Select Register (GPIO0 -
GPIO63)
GPTRIP4SEL
0x5FE3
1
GPTRIP4 (XINT1) Input Select Register (GPIO0 -
GPIO63)
GPTRIP5SEL
0x5FE4
1
GPTRIP5 (XINT2) Input Select Register (GPIO0 -
GPIO63)
GPTRIP6SEL
0x5FE5
1
GPTRIP6 (XINT3) Input Select Register (GPIO0 -
GPIO63)
GPTRIP7SEL
0x5FE6
1
GPTRIP7 (ECAP1) Input Select Register (GPIO0 -
GPIO63)
GPTRIP8SEL
0x5FE7
1
GPTRIP8 (ECAP2) Input Select Register (GPIO0 -
GPIO63)
GPIOLPMSEL1
0x5FE8
2
LPM GPIO Select 1 Register (GPIO0 - GPIO31)
GPIOLPMSEL2
0x5FEA
2
LPM GPIO Select 2 Register (GPIO32 - GPIO63)
GPTRIP9SEL
0x5FF0
1
GPTRIP9 (ECAP3) Input Select Register (GPIO0 -
GPIO63)
GPTRIP10SEL
0x5FF1
1
GPTRIP10 (ECAP4) Input Select Register (GPIO0
- GPIO63)
GPTRIP11SEL
0x5FF2
1
GPTRIP11 (ECAP5) Input Select Register (GPIO0
- GPIO63)
GPTRIP12SEL
0x5FF3
1
GPTRIP12 (ECAP6) Input Select Register (GPIO0
- GPIO63)
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.
Select if the GPIO will be C28 core controlled:
If the pin will be used as a C28 GPIO or peripheral, the correct bits must be set in the GPIOCSEL
register. This register is located in the M3 GPIO register space.
3.
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
(GPIOPUR) register. This register is located in the M3 GPIO register space. All GPIO-capable pins
have the pullup disabled by default. The AIOx pins do not have internal pull-up resistors.
4.
Select input qualification: