Foundation New problem Operating point
Settings
Problem
PROBLEM 28 · OP-AMPS

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
Required analysisOperating point
Probe: V(out)

Concepts

ComparatorInput polarityDecision threshold

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.

Simulation practice available

Calculate your answer, compare it with the simulation, then check your calculation above.

Symbol credits
W: wire · drag text: move · double-click: edit · R over label: rotate · Ctrl/⌘ + scroll: zoom
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.

0 enabled probes · 1 ms record · all instruments share the same samples.
Acquisition options
Settling advances the real solver before a finite capture. Live measurements retain their full history.
Watch your circuit respond

Set Duration and Samples / probe above, then capture all enabled probes together. Scope, FFT and logic use that same measured record.

SPICE AC · DC · transient
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
GENERATED SPICEOptional expert editing
Advanced edits stay in this preview and never affect grading. Includes, files, control blocks, and shell directives are disabled.
Probes & capture settings 0 channels · 8,192 samples
Probes 0/32Every electrical node is available, including unlabeled junctions.

Loading the CircuitJS editor…