Digital General Purpose I/O Control; Gpio Data Registers - Texas Instruments Concerto F28M35 Series Technical Reference Manual

Table of Contents

Advertisement

C28 General-Purpose Input/Output (GPIO)

4.2.4 Digital General Purpose I/O Control

For pins that are configured as GPIO you can change the values on the pins by using the registers in
Table
4-39.
Name
GPADAT
GPASET
GPACLEAR
GPATOGGLE
GPBDAT
GPBSET
GPBCLEAR
GPBTOGGLE
GPCDAT
GPCSET
GPCCLEAR
GPCTOGGLE
GPEDAT
GPESET
GPECLEAR
GPETOGGLE
AIODAT
AIOSET
AIOCLEAR
AIOTOGGLE
GPxDAT/AIODAT Registers
Each I/O port has one data register. Each bit in the data register corresponds to one GPIO pin. No
matter how the pin is configured (GPIO or peripheral function), the corresponding bit in the data
register reflects the current state of the pin after qualification (This does not apply to AIOx pins).
Writing to the GPxDAT/AIODAT register clears or sets the corresponding output latch and if the pin is
enabled as a general purpose output (GPIO output) the pin will also be driven either low or high. If the
pin is not configured as a GPIO output then the value will be latched, but the pin will not be driven.
Only if the pin is later configured as a GPIO output, will the latched value be driven onto the pin.
When using the GPxDAT register to change the level of an output pin, you should be cautious not to
378
General-Purpose Input/Output (GPIO)
Table 4-39. GPIO Data Registers
Address
0x5FC0
0x5FC2
0x5FC4
0x5FC6
0x5FC8
0x5FCA
0x5FCC
0x5FCE
0x5FD0
0x5FD2
0x5FD4
0x5FD6
0x6FC0
0x6FC2
0x6FC4
0x6FC6
0x6FD8
0x6FDA
0x6FDC
0x6FDE
Copyright © 2012–2019, Texas Instruments Incorporated
Size (x16)
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
SPRUH22I – April 2012 – Revised November 2019
www.ti.com
Register Description
GPIO A Data Register (GPIO0
- GPIO31)
GPIO A Set Register (GPIO0 -
GPIO31)
GPIO A Clear Register (GPIO0
- GPIO31)
GPIO A Toggle Register
(GPIO0 - GPIO31)
GPIO B Data Register
(GPIO32 - GPIO63)
GPIO B Set Register (GPIO32
- GPIO63)
GPIO B Clear Register
(GPIO32 - GPIO63)
GPIO B Toggle Register
(GPIO32 - GPIO63)
GPIO C Data Register
(GPIO68 - GPIO71)
GPIO C Set Register (GPIO68
- GPIO71)
GPIO C Clear Register
(GPIO68 - GPIO71)
GPIO C Toggle Register
(GPIO68 - GPIO71)
GPIO E Data Register
(GPIO128 - GPIO135)
GPIO E Set Register
(GPIO128 - GPIO135)
GPIO E Clear Register
(GPIO128 - GPIO135)
GPIO E Toggle Register
(GPIO128 - GPIO135)
Analog IO Data Register (AIO0
- AIO31)
Analog IO Set Register (AIO0 -
AIO31)
Analog IO Clear Register
(AIO0 - AIO31)
Analog IO Toggle Register
(AIO0 - AIO31)
Submit Documentation Feedback

Advertisement

Table of Contents
loading

Table of Contents