Comparator Calculator
Simple
Simple Inverting
Non-Inverting Hysteresis
Inverting Hysteresis
Vref
V
VDD
V
VSS
V
Advanced Tolerance Analysis
Threshold
2.500V
Simple Comparator
−
+
Vref
2.50V
Vin
Vout
0.0V
Vth = 2.50V
2.25V
2.75V
2.500V
Show formulas
Simple Comparator:
V
i
n
→
(
+
)
V_{in} \to (+)
V
in
→
(
+
)
,
V
r
e
f
→
(
−
)
V_{ref} \to (-)
V
re
f
→
(
−
)
, no feedback
V
o
u
t
=
{
V
D
D
if
V
i
n
>
V
r
e
f
V
S
S
if
V
i
n
<
V
r
e
f
V_{out} = \begin{cases} V_{DD} & \text{if } V_{in} > V_{ref} \\ V_{SS} & \text{if } V_{in} < V_{ref} \end{cases}
V
o
u
t
=
{
V
DD
V
SS
if
V
in
>
V
re
f
if
V
in
<
V
re
f