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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | Vps | +15 | Positive supply |
| SI.Voltage | Vns | -15 | Negative supply |
| SI.Voltage | Vin | 5 | Amplitude of input voltage |
| SI.Frequency | f | 10 | Frequency of input voltage |
| SI.Voltage | vHys | 1 | (Positive) hysteresis voltage |
| Real | k | vHys/Vps | Auxiliary calculated parameter to be used in R2 calculation |
| SI.Resistance | R1 | 1000 | Arbitrary resistance |
| SI.Resistance | R2 | R1/k | Calculated resistance to reach hysteresis voltage |