modelAD_DA_conversion

Conversion circuit

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

The simple converter circuit converts an analog sine signal into a N-bit (by default a 4 bit) logic signal, which is converted backward into an analog signal.

  • Simulate for 0.2 s.

Compare the input voltage (aD_Converter.p.v) with the output voltage (dA_Converter.p.v). By changing N the influence of the digital signal width can be studied. Otherwise the trigger frequency pulse.period can be changed to see its influence.

Parameters

TypeNameDefaultDescription
IntegerN7Digital signal width

Components

TypeNameDefaultDescription
Modelica.Electrical.Analog.Ideal.AD_ConverteraD_Converter
Modelica.Electrical.Digital.Sources.Pulsepulse
Modelica.Electrical.Analog.Ideal.DA_ConverterdA_Converter
Modelica.Electrical.Analog.Basic.Groundground
Modelica.Electrical.Analog.Sources.SineVoltagesineVoltage
Modelica.Electrical.Analog.Basic.Resistorresistor

Revisions

  • October 13, 2009 by Matthias Franke