F28M35x/F28M36x GPIO Digital Input
Read the logical value of a GPIO pin configured as input
Embedded Coder Support Package for Texas Instruments C2000 Processors / F28M35x/ M3
Embedded Coder Support Package for Texas Instruments C2000 Processors / F28M36x/ M3
Read the logical value of a configured GPIO pin.
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, you cannot use the same pin for digital output or peripheral operation. You can configure the pull-up and the open-drain options for the individual digital input pins. To configure, go to Configuration Parameters > Hardware Implementation > Target Hardware Resources and select the appropriate GPIO group.
Pin # — GPIO pin status
scalar | vector
The port outputs the status of the digital pin you select in the Pin number parameter.
GPIO port — Port to read GPIO pin status
GPIOA (default) |
Select one of GPIO ports to get the GPIO pin status.
Pin number — GPIO pin whose status you want to read
Pin 0 (default) |
Pin 1 |
Pin 2 |
Select the pin number of the GPIO pin whose status you want to read.
Sample time — Frequency at which block reads input pin values
-1 (default) |
Specify how often the block receives message, in seconds. When you specify this parameter as -1, Simulink determines the best sample time for the block based on the block context within the model.
Introduced in R2016a