Comparator
Comparator with Hysteresis
Description
Connections
Parameters
The Comparator models an ideal comparator with hysteresis. The input impedance is infinite.
The output goes high when Vhys2<vp−vn. It goes low when vp−vn<−Vhys2.
When the output is high, the output pin is connected to the high supply pin, hi, through a resistance Ron, and is connected to the low supply pin, lo, through a conductance Goff.
When the output is low, the output pin is connected to the high supply pin, hi, through a conductance Goff, and is connected to the low supply pin, lo, through a resistance Ron.
Name
Modelica ID
out
Output pin
p
Positive input
n
Negative input
hi
High supply pin
lo
Low supply pin
Default
Units
Vhys
0.001
V
Hysteresis voltage
Ron
Ω
On-state resistance
Goff
S
Off-state conductance
See Also
Analog Components
Electrical Library
Operational Amplifiers
Download Help Document