AD Converter - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


A/D Converter

Simple n-bit analog to digital converter

 

Description

Connections

Parameters

Modelica Standard Library

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 Rin.

The input signal range Vref,low,Vref,high is divided into 2N1 equally spaced stages of length Vlsb=Vref,highVref,low2N1.

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 Vlsbk12 to Vlsbk+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.

Connections

Name

Description

Modelica ID

p

Positive electrical input

p

n

Negative electrical input

n

y

Output vector of Logic signals

y

trig

Trigger input (Logic)

trig

Parameters

Name

Default

Units

Description

Modelica ID

N

8

 

Resolution in bits - output signal width

N

Rin

1·106

Ω

Input resistance

Rin

Vref,high

10

V

High reference voltage

VRefHigh

Vref,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.

See Also

Analog Components

Analog Converters

Electrical Library