<< Click to Display Table of Contents >> Digital Input |
|
Configuration item |
Selectable option/ Value |
Description |
Port |
A | B | C | D | E | F |
Select GPIO port for specify pins |
Speed (MHz) |
2 | 10 | 50 |
Select GPIO clock speed for specify pins |
Type (Pull-Up/Pull-Down) |
None | Pull Up | Pull Down |
Pin type for specify pins |
Use pin 0, ..., 15 |
Checked | Unchecked |
Select pin number for specify GPIO port. |
Sample Time (Sec) |
(sampletime) |
Specify block sample time. |
This block implements Digital Output Module to generate digital output logic from MCU pin.
Input port accepts any native kind of Simulink data type.
MCU will generate output from logic pins based on the following logic.
if (input port == "Low")
Output value 0
else
Output value 1
end
Available ports and pins shown depend on selected MCU (in the Target Setup Block).