Which side of the threshold?
Read comparator polarity before interpreting an ADC decision.
Design objective
Apply 2.6 V to the non-inverting input and a 2.5 V reference to the inverting input. Find the output of an ideal comparator with 0 V and 5 V output levels.
Constraints
- Ideal functional comparator; no hysteresis or delay
- CircuitJS uses a high-gain native op-amp with 0–5 V output limits
Concepts
Check your calculation
Worked solution
5 V
V+ − V− = 2.6 − 2.5 = +0.1 V, so the output saturates high at 5 V. Swapping the inputs reverses the decision. An ideal comparison at exactly zero difference is not a reliable real-device prediction.
Accepted tolerance: ±0.1%. This calculation check records local practice progress.
Calculate your answer, compare it with the simulation, then check your calculation above.
Reusable circuit blocks 0
Select the comparator, its wires and three labels, leaving both test sources outside. Reuse the 0–5 V decision block in SAR and flash exercises. Ports: vin, ref, out.
Select the components and external node labels that make up your block. Leave test sources and loads outside the selection. With no selection, the whole circuit is saved. Ground symbols stay internal.
No saved blocks yet.
Time capture · Oscilloscope, FFT & logic
Acquisition options
Set Duration and Samples / probe above, then capture all enabled probes together. Scope, FFT and logic use that same measured record.
Analysis, sources & models
Each run reads the current connections and values, with the sources and device models selected above.
Advanced · solver sourceThe visual circuit remains the primary design surface.84 / 12,000 bytes
Probes & capture settings 0 channels · 8,192 samples
Loading the CircuitJS editor…