Simple n-bit analog to digital converter
Modelica Standard Library
The A/D Converter (or AD Converter) component is a simple analog to digital converter with a resolution of N bits.
The input voltage is converted to an N-vector of type Logic.
The input resistance between positive and negative pin is given by Rin.
The input signal range Vref,low,Vref,high is divided into 2N−1 equally spaced stages of length Vlsb=Vref,high−Vref,low2N−1.
The output signal is the binary code of k as long as the input voltage takes values in the k-th stage, namely in the range from Vlsb⁢k−12 to Vlsb⁢k+12 .
The output only changes its value when the trigger signal trig of type Logic changes to 1 (forced or weak).
The output vector is little-endian, that is, the first bit, y1, is the least significant.
Dynamic behavior is not modeled; the output changes instantaneously when the trigger signal rises.
Positive electrical input
Negative electrical input
Output vector of Logic signals
Trigger input (Logic)
Resolution in bits - output signal width
High reference voltage
Low reference voltage
The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.
Download Help Document
What kind of issue would you like to report? (Optional)