Digital Input
From OpenMBD
< HANcoder | STM32 | Blocks
Revision as of 09:23, 5 April 2017 by Jasonvankolfschoten (talk | contribs)
Supported Targets: Olimexino, E407, P405
General information about Digital Input
A 'Digital Input' block reads the input level of the selected pin. If the input level is high, '1' is the output, otherwise '0'.
Block
Mask
Parameter | Description |
---|---|
Input pin | The input pin to be used for the digital input. Select one from the list. A warning will appear when the pin is already in use in another block. |
Configuration | The configuration to be used. There are three options: - Floating, the pin will not connected in any way to ground or 3.3V |
Sample time | Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. |