Digital Input Block¶
How this block appears in a Simulink model?¶
What can be configured?¶
|Configuration Parameter||Selectable Option/Value||Description|
|Settings interface||Basic--Advanced||Allow user to adjust the level of control over the specified pins.|
|Select input pins||Pino 0 to Pin 39||Select the output pins to be configured.|
|Pin mode||None (floating)--Pull-up--Pull-down--Pull-up and Pull-down||Only pins that support both input & output have integrated pull-up and pull-down resistors. Input-only GPIOs 34-39 do not.|
|Pin hold||Enable--Disable||The GPIO pad hold function works in both input and output modes but must be output capable GPIOs. If pad hold enabled: in output mode: the output level of the pad will be force locked and cannot be changed. in input mode: the input value read will not change, regardless the changes of input signal.
The state of digital GPIO cannot be held during Deep-sleep, and it will resume the hold function when the chip wakes up from Deep-sleep. If the digital GPIO also needs to be held during Deep sleep, gpio_deep_sleep_hold_en should also be called.
|Deep sleep pin hold||Enable--Disable||Enable/Disable deep sleep pin.|
|Sample time (sec)||-1 (inherited) or specify||Specify sample time of the block|
When to use this block?¶
This block implements Digital Input Module to generate digital input logic from MCU pin.
How does this block work?¶
Each block is used to configure pins of a specified block.
You can have as many Digital Input Blocks as you need in a model, to configure different pins of the MCU.