D/A Converter

Simple digital to analog converter

 Description The D/A Converter (or DA Converter) component is a simple digital to analog converter with an input signal width of $N$ bits. The input signal is an $N$-vector of type Logic. The output voltage of value $y$ is generated by an ideal voltage source. The output changes when the trigger signal $\mathrm{trig}$ of type Logic changes to 1 (forced or weak). The first bit in the input vector, ${x}_{1}$, is the least significant. Dynamic behavior is not modeled; the output changes instantaneously when the trigger signal rises.
 Equations $y={v}_{p}-{v}_{n}={V}_{\mathrm{lsb}}\sum _{i=1}^{N}{x}_{i}{2}^{i-1}$ ${V}_{\mathrm{lsb}}=\frac{{V}_{\mathrm{ref}}}{{2}^{N}-1}$ ${i}_{p}+{i}_{n}=0$

Connections

 Name Description Modelica ID $\mathrm{trig}$ Trigger input (Logic) trig $x$ Input vector of Logic signals x $p$ Positive electrical output p $n$ Negative electrical output n

Parameters

 Name Default Units Description Modelica ID $N$ $8$ Resolution in bits - input signal width N ${V}_{\mathrm{ref}}$ $10$ $V$ Reference voltage Vref

 Modelica Standard Library 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.