A/D Converter
Simple n-bit analog to digital converter
Description
Connections
Parameters
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.
Name
Modelica ID
p
Positive electrical input
n
Negative electrical input
y
Output vector of Logic signals
trig
Trigger input (Logic)
Default
Units
N
8
Resolution in bits - output signal width
Rin
1·106
Ω
Input resistance
Vref,high
10
V
High reference voltage
VRefHigh
Vref,low
0
Low reference voltage
VRefLow
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.
See Also
Analog Components
Analog Converters
Electrical Library
Download Help Document