Skip to Main Content Skip to Search
Product Documentation

C280x/C2802x/C2803x/C28x3x/c2834x GPIO Digital Input - Configure general-purpose input pins

Library

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ C2802x

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ C2803x

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ C280x

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ C28x3x

Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C2000/ C2834x

Description

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 do so, use the Peripheral tab of the Target Preferences block for your processor type.

Each processor has a different number of available GPIO pins:

Dialog Box

The dialog boxes for the C2802x and C28x3x processors are similar to that of the C280x, shown in the preceding figure.

GPIO Group

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.

Sample time

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 How to Specify the Sample Time in the Simulink documentation.

Data type

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.

See Also

C280x/C2802x/C2803x/C28x3x/c2834x GPIO Digital Output

GPIO

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS