IT lexicon › Hardware › Analog comparator

Analog comparator

Hardware På svenska → Updated: 2026-11-04

A circuit that compares two voltages and answers with a single bit: which one is higher.

An ADC tells you how big a voltage is; a comparator only tells you whether it is above or below another one. That sounds like less, but it is usually exactly the question: has the battery dropped under 3.0 V, has the mains waveform crossed zero, is the motor current too high. The answer arrives in nanoseconds and costs almost no power, whereas a conversion takes microseconds and needs someone to read the result.

Most microcontrollers carry one or more as peripherals, typically with an internal bandgap reference, selectable hysteresis and the ability to fire an interrupt, trigger a timer capture or wake the chip from deep sleep. The brown-out detector is essentially a comparator nobody is allowed to configure. As a standalone part, the quad LM339 has been on circuit boards since the 1970s — and its open-collector outputs have baffled every beginner who forgot the pull-up resistor.

← Back to the lexicon