General-purpose I/O pins for digital input
Embedded Coder® Support Package for Texas Instruments™ C2000™ Processors/ C281x
Embedded Coder Support Package for Texas Instruments C2000 Processors/ F28004x
This block configures the general-purpose I/O (GPIO) registers that control the GPIO shared pins for digital input. Each I/O port has one MUX register, which is used to select peripheral operation or digital I/O operation.
To avoid losing new settings, click Apply before changing the IO Port parameter.
Select the input/output port to use:
GPIOPG and select the I/O Port bits to enable for digital
input. (There is no GPIOPC port on the C281x.) If you
select multiple bits, vector input is expected. Cleared bits are available for
peripheral functionality. Multiple GPIO DI blocks cannot share the same I/O
The input function of the digital I/O and the input path to the related peripheral are enabled on the board. If you configure a pin as digital I/O, the corresponding peripheral function cannot be used.
The following tables show the shared pins.
GPIO A MUX
GPIO B MUX
Time interval, in seconds, between consecutive input from the pins.
Data type of the data to obtain from the GPIO pins. The data is read as 16-bit
integer data and then cast to the selected data type. Valid data types are
The width of the vectorized data output by this block is determined by the number of bits selected in the Block Parameters dialog box.