comp9
Two input comparator with hysteresis
Usage
loadrt comp [count=N|names=name1[,name2...]]
Functions
comp.N (requires a floating-point thread)-
Update the comparator
Pins
comp.N.in0 float in
|
Inverting input to the comparator |
|---|---|
comp.N.in1 float in
|
Non-inverting input to the comparator |
comp.N.out bit out
|
Normal output. True when |
comp.N.equal bit out
|
Match output. True when difference between |
Parameters
- comp.N.hyst float rw (default: 0.0)
-
Hysteresis of the comparator (default 0.0)
With zero hysteresis, the output is true when
in1>in0. With nonzero hysteresis, the output switches on and off at two different values, separated by distancehystaround the point wherein1=in0. Keep in mind that floating point calculations are never absolute and it is wise to always sethystif you intend to use equal
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.