modelSchmittTrigger

Schmitt trigger with hysteresis

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

Information

This is a (non-inverting) Schmitt trigger. Resistance R1 can be chosen, resistance R2 is defined by the desired hysteresis. The output gets Vp for input voltage > vHys and Vn for input voltage < vHys*Vns/Vps.

The example is taken from: U. Tietze and C. Schenk, Halbleiter-Schaltungstechnik (German), 11th edition, Springer 1999, Chapter 6.5.2

Parameters

TypeNameDefaultDescription
SI.VoltageVps+15Positive supply
SI.VoltageVns-15Negative supply
SI.VoltageVin5Amplitude of input voltage
SI.Frequencyf10Frequency of input voltage
SI.VoltagevHys1(Positive) hysteresis voltage
RealkvHys/VpsAuxiliary calculated parameter to be used in R2 calculation
SI.ResistanceR11000Arbitrary resistance
SI.ResistanceR2R1/kCalculated resistance to reach hysteresis voltage

Components

TypeNameDefaultDescription
Modelica.Electrical.Analog.Ideal.OpAmpLimitedopAmp
Modelica.Electrical.Analog.Basic.Groundground
Modelica.Electrical.Analog.Sources.TrapezoidVoltagevIn
Modelica.Electrical.Analog.Sensors.VoltageSensorvOut
Modelica.Electrical.Analog.Basic.Resistorr1
Modelica.Electrical.Analog.Basic.Resistorr2