Configure general-purpose input/output pins as digital input
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
This block configures the general-purpose I/O (GPIO) MUX registers that control the operation of GPIO shared pins for digital input. Each I/O port has one MUX register that selects peripheral operation or digital I/O operation (the default). When a pin is configured for digital input, it becomes unavailable for digital output or peripheral operation. You can configure the Input qualification type for individual digital input pins. To configure, go to Configuration Parameters > Hardware Implementation > Target Hardware Resources and select the appropriate GPIO group.
Each processor has a different number of available GPIO pins.
Note
To avoid losing new settings, click Apply before changing the GPIO Group parameter.
Select the group of GPIO pins you want to view or configure. For a table of GPIO pins and peripherals, refer to the Texas Instruments documentation for your specific target.
Specify the time interval between output samples. To inherit
sample time from the upstream block, set this parameter to -1
.
For more information, refer to the section on Specify Sample Time (Simulink).
Specify the data type of the input. The input is read as 16-bit
integer, and then cast to the selected data type. Valid data types
are auto
, double
, single
, int8
, uint8
, int16
, uint16
, int32
,
uint32
or boolean
.