2.5 V reference, 100 k and 10 k, 0–5 V output
- Reference voltage (Vref)
- 2.5
- Feedback resistor R1 (output to +)
- 100
- Reference resistor R2 (Vref to +)
- 10
- Output high level (VOH)
- 5
- Output low level (VOL)
- 0
Result Hysteresis width: 0.4545
Upper threshold (input rising), V: 2.7273
Lower threshold (input falling), V: 2.2727
Centre of the window, V: 2.5
Feedback fraction β: 0.0909
- Feedback fraction β = R2 ÷ (R1 + R2) = 10 ÷ 110 = 0.0909
- Upper threshold = (Vref·R1 + VOH·R2) ÷ (R1 + R2) = 2.7273 V
- Lower threshold = (Vref·R1 + VOL·R2) ÷ (R1 + R2) = 2.2727 V
- Hysteresis = (VOH − VOL) × β = 0.4545 V
A rail-to-rail comparator on 5 V with about 0.45 V of hysteresis centred just above the reference.