 A/D Converter - MapleSim Help

A/D Converter

Simple n-bit analog to digital converter Description 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 ${R}_{\mathrm{in}}$. The input signal range $\left({V}_{\mathrm{ref},\mathrm{low}},{V}_{\mathrm{ref},\mathrm{high}}\right)$ is divided into ${2}^{N}-1$ equally spaced stages of length ${V}_{\mathrm{lsb}}=\frac{{V}_{\mathrm{ref},\mathrm{high}}-{V}_{\mathrm{ref},\mathrm{low}}}{{2}^{N}-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 ${V}_{\mathrm{lsb}}\left(k-\frac{1}{2}\right)$ to ${V}_{\mathrm{lsb}}\left(k+\frac{1}{2}\right)$ . The output only changes its value when the trigger signal $\mathrm{trig}$ of type Logic changes to 1 (forced or weak). The output vector is little-endian, that is, the first bit, ${y}_{1}$, is the least significant. Dynamic behavior is not modeled; the output changes instantaneously when the trigger signal rises.

Connections

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

Parameters

 Name Default Units Description Modelica ID $N$ $8$ Resolution in bits - output signal width N ${R}_{\mathrm{in}}$ $1·{10}^{6}$ $\Omega$ Input resistance Rin ${V}_{\mathrm{ref},\mathrm{high}}$ $10$ $V$ High reference voltage VRefHigh ${V}_{\mathrm{ref},\mathrm{low}}$ $0$ $V$ Low reference voltage VRefLow

 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.