C280x/C2802x/C2803x/C2805x/C2806x/C2833x/C2834x/F28M3x/F2807x/F2837xD/F2837xS/F2838x/F2838x-M4/F28004x GPIO Digital Output

Configure general-purpose input/output pins as digital output

Library

Embedded Coder® Support Package for Texas Instruments™ C2000™ Processors/ C2802x

Embedded Coder Support Package for Texas Instruments C2000 Processors/ C2803x

Embedded Coder Support Package for Texas Instruments C2000 Processors/ C2805x

Embedded Coder Support Package for Texas Instruments C2000 Processors/ C2806x

Embedded Coder Support Package for Texas Instruments C2000 Processors/ C280x

Embedded Coder Support Package for Texas Instruments C2000 Processors/ C2833x

Embedded Coder Support Package for Texas Instruments C2000 Processors/ C2834x

Embedded Coder Support Package for Texas Instruments C2000 Processors/ F2807x

Embedded Coder Support Package for Texas Instruments C2000 Processors/ F2837xD

Embedded Coder Support Package for Texas Instruments C2000 Processors/ F2837xS

Embedded Coder Support Package for Texas Instruments C2000 Processors/ F2838x/ C28x

Embedded Coder Support Package for Texas Instruments C2000 Processors/ F2838x/M4

Embedded Coder Support Package for Texas Instruments C2000 Processors/ F28004x

Embedded Coder Support Package for Texas Instruments C2000 F28M3x Concerto™ Processors/ F28M35x/ C28x

Embedded Coder Support Package for Texas Instruments C2000 F28M3x Concerto Processors/ F28M36x/ C28x

Description

Configure individual general-purpose input/output (GPIO) pins to operate as digital outputs. When a pin is configured for digital output, it cannot operate as a digital input or connect to peripheral I/O signals. When you select a pin for digital output, the user interface presents a Toggle option that inverts the output signal on the pin.

Each processor has a different number of available GPIO pins.

Note

To avoid losing new settings, click Apply before changing the GPIO Group parameter.

Ports

Input

expand all

The input port to set the GPIO pin status.

Parameters

GPIO Group

Select the group of GPIO pins you want to view or configure.

GPIO pins for output

To configure a GPIO pin for digital output, select the checkbox next to it. Refer to the block for a table of all available peripherals for each pin.

A value of True at the input of the block drives the selected GPIO pin high. A value of False at the input of the block grounds the selected GPIO pin.

Toggle GPIO[bit#]

For each pin selected for output, you can elect to toggle the signal of that pin. In Toggle mode, a value of True at the input of the block switches the GPIO pin output level. Thus, if the GPIO pin was driven high, in Toggle mode, with the value of True at the input, the pin output level is driven low. If the GPIO pin was driven low, in Toggle mode, with the value of True at the input of the block, the same pin output level is driven high. If the input of the block is False, the GPIO pin output level is unaffected.

Note

The outputs of this block can be vectorized.