Digital In

Purpose

Read a digital input

Library

STM32

Description

../../_images/digitalin.svg

The output signal is \(1\) if the input voltage is higher than the high level input voltage threshold, \(V_\mathrm{IH}\), and \(0\) if it is lower than the low-level input voltage, \(V_\mathrm{IL}\). For other input voltages the output signal is undefined. Refer to the device data sheet for the electrical characteristics of a specific target. During an offline simulation the block behaves like a simple feedthrough.

Parameters

Port

Selects the port name of the digital input channel.

Pin number(s)

Defines the pin number of the digital input channel. For vectorized input signals a vector of input channel indices must be specified.

Input characteristic

Specifies whether an internal pull-up or pull-down resistor is connected to the digital input.