PWM & Voltage-to-Frequency with Comparators and Ramps
← Back to:Comparators & Schmitt Triggers
Turn a voltage into PWM duty or V-to-F frequency using a clean ramp and a comparator, then make the result predictable by tying every error to measurable knobs: ramp ΔV/slope/reset, comparator offset/noise/overdrive, and output edge transport.
This page focuses on bench-first recipes and validation thresholds—so the duty/period you generate stays stable across load, temperature, and real-world wiring without needing a MCU.
What this page solves
Build analog PWM or voltage-to-frequency (V/F) modulation using a comparator plus a triangle/saw ramp, then trace duty/frequency error back to measurable causes: ramp slope, offset/drift, noise, propagation delay vs overdrive, hysteresis, and output edge behavior.
- Low-cost or no-MCU modulation for power/motor loops and timing chains
- Low latency with predictable timing from threshold crossing
- Rugged edges under slow/noisy inputs via hysteresis and edge shaping
- MCU timer PWM generation, counters, and firmware-centric control
- PLL/VCO IC internals or clock-synthesis deep dives
- Full switch-mode power compensation theory (Bode/type-II/III)
- Two buildable recipes: duty-controlled PWM (ramp + comparator) and V/F (integrator + threshold + reset)
- Error map that links specs to timing: noise → jitter via slope; offset → threshold shift; delay → duty/frequency bias
- Bring-up flow: verify ramp first, verify crossing next, then validate output edges and logic compatibility
Definition: PWM and voltage-to-frequency using a ramp + comparator
Both methods turn an analog level into timing by comparing a moving ramp against a threshold. PWM controls the time-above-time-below ratio (duty). V/F controls the time between events (period), typically using an integrator plus threshold and reset.
A comparator flips when Vin crosses the ramp Vtri(t). The crossing time sets duty for a fixed-period ramp.
- Ramp amplitude (Vpk) and slope (dV/dt)
- Comparator offset/drift and input noise
- Propagation delay vs overdrive and output edge behavior
Timing jitter grows when the ramp is slow: the same input noise produces a larger shift in crossing time.
Vin controls a charge/discharge slope (often I/C). Each threshold trip triggers a reset, creating a pulse train whose frequency follows Vin.
- Integrator capacitor (C), slope source (I(Vin)), and window (ΔV)
- Threshold drift, leakage/bias currents, and reset/dead time
- Noise-to-jitter via slope and comparator delay under small overdrive
Frequency nonlinearity often comes from reset time not being negligible compared to charge time.
Core principle: comparator threshold crossing creates timing (duty / period)
A ramp-based modulator turns voltage into time. The comparator changes state at the crossing instant (tcross), and that instant becomes either a duty position inside a fixed period (PWM) or a period between repeated events (V/F). Every real-world error source ultimately shows up as a shift or jitter of tcross.
The output flips when Vin = Vramp(tcross). For PWM with a fixed-period linear ramp, duty is the normalized position of tcross within the ramp sweep. For V/F, the period is the time for an integrator to traverse a fixed voltage window ΔV with slope set by I/C.
- PWM duty: set by ramp range (Vmin→Vmax) and the crossing level (Vin)
- V/F period: set by slope (I/C), window (ΔV), and any reset/dead time
- Unifying view: measure tcross first; everything else is a cause of its movement
Real comparators do not switch at an abstract mathematical crossing. Noise, offset/drift, bias currents, and delay that depends on overdrive can all move the effective switching point. With slow ramps, the same noise produces a much larger timing jitter because the ramp slope is small.
- Noise → jitter: timing spread grows when dV/dt is small (slow ramp or heavy filtering)
- Offset/drift → bias: threshold shift directly creates duty/period error (systematic)
- Delay vs overdrive: small overdrive often increases delay and bends linearity near thresholds
- Bias current × source-R: high source impedance can push Vin and move the crossing
- Slow ramp + no hysteresis: multiple crossings (chatter) create double edges and false pulses
Fast bring-up comes from measuring the timing chain in the same order that the math is built: ramp → crossing → output. These three measurements separate “slope-limited jitter”, “threshold bias”, and “edge/delay problems”.
- Ramp amplitude and slope: verify Vpp (or Vpk) and dV/dt under real loading and probing
- Crossing stability: observe tcross spread over many cycles; look for multi-toggle near threshold
- Output edge and delay: check rise/fall, overshoot, and any delay variation as Vin approaches the switching level
Recipe A: duty-cycle PWM with a triangle/saw ramp
A ramp + comparator PWM is easiest to get right when requirements are translated into timing, then implemented in the same order as the signal flow: pick the period and ramp, ensure the comparator input stays valid across common-mode and source impedance, then shape the output edge for the receiving logic or power stage.
- Inputs: fPWM, Vin range, duty range, allowed duty error, receiver threshold and input capacitance
- Action: convert duty error into allowable time error (Δt = Δduty × T) to size slope and noise margin
- Check: confirm compare polarity (Vin higher → earlier/later crossing) and define the “high” state meaning
- Pitfall: skipping a time-error budget makes later ramp and comparator choices arbitrary
- Inputs: desired linearity, EMI tolerance, available headroom, and feasible ramp generator options
- Action: pick triangle vs saw and set Vpp/Vpk so the comparator sees comfortable overdrive across Vin range
- Check: ensure ramp stays within the comparator’s valid input common-mode region under worst-case supply and loading
- Pitfall: too small Vpp forces near-threshold operation where delay varies strongly with overdrive
- Inputs: single-ended vs differential, source resistance, dividers, cable pickup, and any slow ramps
- Action: decide whether a small RC or clamp is needed to prevent chatter without slowing the ramp excessively
- Check: estimate bias-current error (Ibias × Rsource) and confirm it is below the threshold budget
- Pitfall: high-impedance sources can shift the crossing point as temperature and leakage change
- Inputs: logic threshold, input capacitance, wiring length, EMI limits, and static power budget
- Action: OD: choose pull-up to meet rise-time; Push-pull: add series-R to control ringing and ground bounce
- Check: verify rise/fall timing at the receiver pin, not at the comparator pin
- Pitfall: OD with an oversized pull-up slows the edge and increases near-threshold re-trigger risk
- Action order: measure ramp (Vpp, dV/dt, reset glitches) → measure crossing spread → measure output edge → sweep Vin → sweep temperature/supply
- Pass criteria: duty monotonicity across Vin, stable tcross, and edges that meet receiver requirements without false toggles
- Pitfall: debugging PWM only at the output hides the real cause when the ramp is being loaded or distorted
Recipe B: voltage-to-frequency (V/F) using an integrator + threshold + reset
A practical V/F loop converts Vin into a controlled slope, integrates it on a capacitor, trips at a threshold window (ΔV), then resets and repeats. Frequency is set by slope (I/C), window (ΔV), and the non-ideal time spent in reset/dead time. Keeping ΔV stable and reset short is the key to linearity.
Vin sets an effective current (I) that charges the capacitor (C), creating a ramp Vcap(t) with slope dV/dt ≈ I/C.
When Vcap reaches the threshold window (ΔV), the comparator flips. ΔV is defined by thresholds and any hysteresis.
A discharge path forces Vcap back to the start point. Incomplete reset or variable reset time bends linearity.
A minimum off-window avoids double-triggering. If it is not constant and small, it becomes a dominant nonlinearity term.
Tcharge ≈ C · ΔV / I(Vin). A stable ΔV and an I proportional to Vin produce a linear V/F relation.
T ≈ Tcharge + Treset + Tdead. If Treset or Tdead is a large fraction of T, frequency compresses and becomes nonlinear.
- Pulse train: frequency carries the information
- Fixed-width pulses: add a one-shot for constant pulse width
- Hybrid duty: pulse width can be controlled if required by the receiver
- R/GM tolerance and temperature drift
- Supply ripple coupling into I
- Input bias/leakage shifting effective Vin
- Cap tolerance/TC and dielectric absorption
- Leakage increasing with temperature
- Probe/loading changing the apparent C
- Threshold offset/drift shifting ΔV
- Hysteresis variation with supply/temperature
- Noise-to-jitter when slope is small
- Incomplete reset leaving residual Vcap
- Charge injection and recovery time variation
- Dead time fraction changing with temperature
Ramp generation: building a clean triangle/saw (and what goes wrong)
Ramp quality sets jitter and linearity. A “good” ramp has stable amplitude (ΔV/Vpp), predictable slope (dV/dt), minimal reset spikes, and low supply coupling. Debug ramps first: if ΔV or dV/dt moves, PWM duty and V/F frequency will move with it.
- Pros: linear slope (I/C), easy ΔV control, predictable jitter
- Risks: switch injection, reset spike, layout coupling into the ramp node
- Best for: accuracy-focused PWM/VF, stable behavior across temperature
- Pros: few parts, easy to implement, quick prototypes
- Risks: exponential curve (nonlinear dV/dt), leakage/TC sensitivity, threshold jitter near the slow region
- Best for: coarse modulation where linearity is not a main requirement
- Pros: smooth ramp, slope set by input network, easy to tune
- Risks: output swing limits, saturation recovery, input bias creating slope error
- Best for: moderate frequency ramps with controlled headroom and careful reset strategy
Amplitude drift directly becomes duty/frequency gain drift.
Slow slope inflates noise-to-jitter; excessive filtering can unintentionally slow dV/dt near the threshold.
Exponential or kinked ramps create duty/frequency nonlinearity when sweeping Vin.
Reset transients that cross the threshold can create double edges and false pulses.
Ripple that modulates the ramp node becomes timing modulation at the output.
Probe capacitance can change dV/dt and hide or create reset artifacts; validate at the real node impedance.
Error budget & loop behavior: offset, noise, hysteresis, jitter, delay, stability
In ramp-based PWM and V/F, every “spec problem” eventually becomes a timing problem. Offset and drift move the effective threshold, noise turns into time jitter through the ramp slope, hysteresis trades chatter for systematic shift, and delay varies with overdrive. A practical error budget is built by mapping each source to crossing-time error (Δt), then translating Δt into duty or frequency error with measurements and simple corrective levers.
Every error source can be treated as an equivalent threshold disturbance (ΔVeq) or an equivalent delay disturbance (Δteq). Around the crossing instant, a simple and useful intuition is:
Slow slope amplifies noise into jitter; stable slope and stable window reduce timing spread.
- PWM: Δduty ≈ Δt / T (fixed period, timing shift inside the cycle)
- V/F: Δf comes from changes in (I/C), ΔV window, and reset/dead-time fraction
- Debug order: ramp slope and window → crossing behavior → output edges and receiver threshold
- Entry: comparator core / reference window
- Equivalent: ΔVeq (threshold shift) → Δt via slope
- Observe: duty/f bias over temperature at constant input
- Action: increase slope margin; apply 1–2 point offset trim if verifiable
- Entry: input node / ramp node / threshold window
- Equivalent: vn → Δt ≈ vn / (dV/dt)
- Observe: cycle-to-cycle crossing spread; edge timing histogram
- Action: increase I or reduce C (higher slope); reduce noise coupling; avoid slow edges near threshold
- Entry: comparator thresholds (ΔV window)
- Equivalent: chatter suppression but adds a systematic shift / nonlinearity term
- Observe: double toggles disappear but transfer curve can bend around the window edges
- Action: use the smallest hysteresis that prevents multi-crossing; verify symmetry and temperature behavior
- Entry: comparator propagation path
- Equivalent: Δt changes with overdrive → duty/f compression near thresholds
- Observe: duty nonlinearity when Vin approaches ramp extremes; “bent” mapping
- Action: increase ramp swing (Vpp) to keep overdrive comfortable; avoid operating too close to rails
- Entry: discharge path, one-shot, gating
- Equivalent: extra time added to each cycle → nonlinearity and temperature drift
- Observe: frequency compresses at high inputs; residual Vcap after reset
- Action: shorten reset; keep dead time constant; verify reset completeness on the capacitor node
- Symptom: large edge timing spread; jitter worsens with filtering or slow ramps
- Quick check: measure dV/dt at the crossing region and compare across conditions
- Decision: doubling slope should noticeably reduce timing spread if slope-limited
- Action: increase I, reduce C, increase Vpp, reduce coupling into ramp/input nodes
- Symptom: double edges, sporadic extra pulses, unstable duty at a narrow Vin range
- Quick check: zoom on Vcap or ramp around the crossing; look for multiple crossings
- Decision: adding a small hysteresis should remove multi-crossing if chatter is the cause
- Action: add minimal hysteresis; improve ramp cleanliness; avoid slow edge at the receiver threshold
- Symptom: duty mapping bends near ramp extremes; V/F compresses at higher inputs
- Quick check: sweep Vin and observe whether tcross and output delay shift together
- Decision: increasing Vpp (more overdrive margin) should improve linearity if overdrive-limited
- Action: increase ramp swing; keep input common-mode valid; avoid threshold operation near rails
- Effective delay: comparator delay + output shaping + receiver threshold adds phase lag in a control loop; keep delay predictable and small.
- Jitter as phase noise: timing spread acts like phase noise and becomes output ripple/sidebands after filtering; reduce jitter at the crossing first (slope and noise).
- Operating-point dependence: overdrive-dependent delay makes loop behavior change across input range; increase margin so timing stays uniform.
Apply a known input point and measure duty/f bias. Adjust an offset term only if the pre/post result can be repeated and monitored.
Use a second input point to correct slope (effective Vpp or I/C scaling). Prefer trims that remain stable across temperature and supply.
Output stage & edge integrity: open-drain vs push-pull, pull-up sizing, EMI shaping
Output edges decide whether a clean timing decision survives the cable, the input capacitance, and the receiver threshold. Open-drain outputs trade static power for rise-time control. Push-pull outputs provide strong edges but can introduce ringing, ground bounce, and false crossings unless the edge is shaped intentionally.
- Recommendation: open-drain with a pull-up to the target logic rail
- Verify: rise-time at the receiver pin, static pull-up power, low-level margin
- Recommendation: push-pull with controlled edge shaping (series R if needed)
- Verify: overshoot/ringing at the receiver threshold, ground bounce on switching
- Recommendation: open-drain with a tuned pull-up and optional post-shaping at the receiver
- Verify: repeated threshold crossings on slow edges; pulse-width integrity under noise
- Recommendation: open-drain, but enforce rise-time and duty-width margins before increasing R
- Verify: worst-case rise-time with maximum line + input capacitance
- Inputs: receiver threshold, input capacitance, cable capacitance, minimum pulse width.
- Rise-time bound: pick an Rpull that keeps the edge from spending “too long” near the receiver threshold.
- Low-level margin: ensure the open-drain can sink the pull-up current and still meet VOL.
- Power check: compute static pull-up power when low and confirm thermal margin.
- Measure at the receiver: verify rise-time and threshold behavior at the far end, not only at the comparator pin.
Verify at the receiver pin. If the waveform crosses the threshold multiple times, add series resistance or slow the edge intentionally.
Fast dI/dt can move the local ground reference and create apparent threshold shifts. Reduce loop area and control edge speed.
- Series R: first choice for ringing control
- Small RC: debounce/glitch filter (avoid over-slowing near threshold)
- Schmitt buffer: post-shaping when the receiver sees slow or noisy edges
- One-shot: fixed pulse width or minimum on/off windows
Front-end protection & real-world inputs: dividers, source impedance, clamps, slow ramps
Real inputs are not ideal voltages. Cables add capacitance and common-mode disturbance, dividers and source impedance turn tiny currents into threshold shifts, and protection networks can trade survivability for delay, leakage, and recovery artifacts. This section focuses on the practical mapping: divider + source impedance + leakage + slow ramps → false crossings and threshold drift, and how to diagnose and fix them without expanding into broad EMI theory.
- Entry: input bias current flowing through divider/source impedance
- Symptom: trip point drifts with temperature, supply, or device variation
- Measure: reduce divider resistance by a factor and compare the trip-point movement
- Action: lower R, reduce source impedance, or buffer the node when high resistance is unavoidable
- Entry: clamp leakage, contamination, humidity paths across high-impedance nodes
- Symptom: trip point changes when cables are touched or when humidity changes
- Measure: compare behavior after cleaning/drying; repeat with a lower-impedance divider
- Action: reduce impedance, choose lower-leakage clamps, and keep the high-impedance node physically short and guarded
- Apply minimal hysteresis to eliminate multi-crossing at the threshold.
- Add RC only if needed to reject known glitches, while keeping enough edge speed at the receiver threshold.
- If RC must be large, treat it as a root-cause indicator: coupling/noise/leakage/source impedance is likely too high.
- Comparator input: zoom around the threshold and check for repeated crossings.
- Cable end: probe at the receiver pin, not only at the comparator output.
- Before/after: compare behavior with hysteresis enabled vs disabled.
- Benefit: limits clamp current and reduces ringing
- Side effect: adds delay with input capacitance; increases Ibias×R shift
- Use when: cable inputs, hot-plug, or when clamp stress must be limited
- Benefit: absorbs ESD/EFT energy and limits input swing
- Side effect: leakage shifts thresholds on high-impedance dividers; recovery artifacts after strong events
- Use when: outdoor/industrial cabling and frequent transients are expected
- Benefit: rejects fast glitches and reduces burst sensitivity
- Side effect: slows edges and increases time near threshold → more chatter risk
- Use when: input has known fast spikes and the system can tolerate extra latency
- Probe: comparator input near threshold (look for multi-crossing)
- Conclusion: chatter from slow ramps or ringing
- First change: add minimal hysteresis (then evaluate RC only if needed)
- Probe: divider node DC level and clamp leakage influence (compare high-R vs low-R)
- Conclusion: Ibias×R or leakage dominates
- First change: lower divider/source impedance (then evaluate clamp selection)
- Probe: clamp node recovery waveform after the event
- Conclusion: clamp recovery / residual charge effects
- First change: add series resistance to limit clamp stress and speed recovery
Engineering checklist: bring-up, measurement traps, and validation tests
A reliable bring-up sequence prevents “guessing” and makes failures repeatable. The priority is always: ramp integrity → crossing integrity → output integrity → loop behavior. Each checklist item below includes a purpose, a method, a pass criterion, and a first action when it fails.
- Purpose: prevent probe/ground artifacts from masquerading as jitter or ringing
- Method: use short ground, consistent reference point, and verify probe loading on high-impedance nodes
- Pass: waveform and timing remain consistent across probe positions and bandwidth limits
- Fail action: shorten ground, change probe type, or measure at a buffered node
- Purpose: ramp amplitude, slope, and reset spikes set the timing floor
- Method: measure Vpp, frequency, dV/dt at the crossing region, and reset/turnaround spikes
- Pass: stable Vpp and slope; reset artifacts do not shift the effective threshold
- Fail action: fix the ramp generator (I/C stability, switch charge injection, supply coupling)
- Purpose: verify that the input crosses once and only once per intended decision
- Method: zoom at the comparator input around threshold and check for multi-crossing
- Pass: single, repeatable crossing; stable crossing-time spread at fixed conditions
- Fail action: add minimal hysteresis, increase slope, or reduce coupling/noise at the input node
- Purpose: avoid false pulses caused by slow edges or ringing at the receiver threshold
- Method: probe at the far-end input pin; check rise-time, overshoot, and threshold re-crossing
- Pass: clean single transitions with margin over worst-case load/cable capacitance
- Fail action: adjust pull-up (OD), add series R (PP), or apply post-shaping at the receiver
- Purpose: confirm delay and jitter are compatible with loop bandwidth and stability margin
- Method: measure effective delay from input perturbation to output change; observe limit cycles or unexpected ripple
- Pass: delay/jitter remain predictable across operating points
- Fail action: reduce delay chain, increase overdrive margin, improve slope and edge integrity
- Symptom: ramp slope and jitter change when the probe is moved
- Fix: use a low-C probe, measure at a buffered node, or compare with and without probing
- Symptom: ringing appears only with certain grounding setups
- Fix: use a short ground spring, consistent reference, and validate at the receiver pin
- Symptom: jitter estimate changes with trigger threshold or filter settings
- Fix: use consistent reference points and compare distributions (not single-shot impressions)
- Method: hold input constant and log duty/frequency vs temperature
- Pass: monotonic, predictable shift; no sudden mode changes
- Fail action: reduce impedance/leakage sensitivity; increase slope/overdrive margin
- Method: inject ripple/step and observe ramp + crossing time + output edges
- Pass: ramp and crossing remain stable; no false triggers
- Fail action: decouple ramp/reference paths; reduce supply coupling into thresholds
- Method: apply a slow edge and zoom at threshold crossing
- Pass: single transition without double edges
- Fail action: add minimal hysteresis; verify receiver edge speed and ringing
- Method: vary Cload or cable length and measure rise-time and false pulses
- Pass: clean transitions across worst-case load
- Fail action: adjust pull-up (OD) or add series R (PP) and re-verify at receiver pin
- Method: apply controlled disturbances and monitor recovery behavior
- Pass: no persistent false triggering; system returns to stable behavior
- Fail action: improve clamp current limiting, reduce leakage sensitivity, and enforce recovery timing
Applications: power & motor loops, V/F sensing, and threshold timing
Comparator + ramp techniques become most valuable when each application has a minimal, repeatable recipe: a smallest block chain that works, the few specs that dominate behavior, and the validation tests that separate “looks OK” from “robust in the field”. The application cards below stay within scope: analog PWM/VF generation, edge/timing integrity, and practical verification hooks.
A) Power / motor loops: analog PWM as a modulator source
Generate a duty-controlled PWM from an analog command without a MCU timer, while keeping delay, jitter, and edge integrity predictable across operating points.
Command / error signal (Vin) → Ramp generator → Comparator → (optional) edge shaping → PWM → Gate driver / power stage input
- Propagation delay vs overdrive: sets effective phase lag and duty error variation across Vin.
- Input noise vs ramp slope: timing jitter increases when dV/dt is small around the crossing point.
- Output edge integrity at the receiver: slow edges or ringing can re-cross thresholds and create false pulses.
- Jitter ownership: double the ramp slope; jitter should drop visibly if slope/noise dominates.
- Overdrive sweep: sweep Vin across range; look for endpoint duty compression or “bending”.
- Receiver pin test: measure at the far-end input, confirming no threshold re-crossing.
- LMV7219 (push-pull comparator) — clean edges for PWM shaping.
- TLV3501 (high-speed comparator) — ns-class timing chains and fast edges.
- ADCMP600 / ADCMP601 (high-speed comparators) — low-jitter edge generation.
- SN74LVC1G17 (Schmitt buffer) — optional receiver-side edge cleanup (use sparingly).
B) V/F sensing: analog-to-frequency for noisy or isolated transport
Convert an analog quantity into pulse frequency so it can be transmitted robustly over distance, through isolation, or through noisy environments where amplitude is harder to preserve than timing.
Vin → V/I (R or transconductance) → Integrator C → Comparator (threshold + hysteresis window) → Reset switch → Pulse / frequency out → (optional) digital isolator
- ΔV window stability (threshold + hysteresis): drift directly becomes scale error.
- Reset / dead-time fraction: variable reset time creates nonlinearity and gain compression.
- Bias/leakage at the integrator node: high impedance turns tiny currents into large errors.
- Linearity scan: sweep Vin and confirm f(Vin) stays linear before reset dominates.
- Trip/recovery capture: scope the capacitor node; confirm stable trip points and clean reset.
- Temperature sweep: log frequency drift; attribute to ΔV drift vs I/C drift.
- TLV3691 (nano-power comparator) — low-speed V/F and wake-up style sensing.
- LMV331 (open-drain comparator) — simple, low-cost V/F prototypes.
- LM393 (dual open-drain comparator) — wired-OR alarms and basic V/F building blocks.
- TLV3011 (comparator with reference) — stabilizes threshold/ΔV window as a starting point.
- ISO7721 or ADuM1100 (digital isolators) — optional frequency transport through isolation.
C) Threshold timing: pulse timing from analog events
Turn an analog threshold crossing into a repeatable timing pulse (delay, gate, or event marker) with predictable behavior under slow edges, noise, and real load conditions.
Vin step/ramp → RC or integrator → Comparator → (optional) one-shot → Timing pulse
- Slow-ramp behavior: minimal hysteresis is often the first fix for chatter.
- Delay repeatability: repeatable timing matters more than absolute “typical” delay.
- Receiver threshold integrity: load/cable capacitance can create false multi-edges.
- Repeatability: trigger the same input edge repeatedly and log delay/pulse-width distribution.
- Load sweep: vary Cload/cable length and confirm no extra pulses at the receiver pin.
- Edge slow-down test: deliberately slow Vin and verify hysteresis prevents double edges.
- LMV7219 / TLV3501 / LM393 — choose by speed and output type.
- SN74LVC1G123 (one-shot) — fixed pulse-width or minimum on/off gating.
- SN74LVC1G17 / SN74HC14 — optional edge cleanup near the receiver.
D) Simple F-to-V readback (point only)
Convert frequency back into a smoothed voltage for monitoring or slow control, without turning this page into a digital counting or MCU timer tutorial.
V/F pulses → F-to-V stage (IC or charge/RC) → RC smoothing → Vout monitor
- Ripple vs response time: smoothing RC trades noise for latency by design.
- Pulse amplitude/edge: receiver thresholds and edge integrity still matter.
- Step response: frequency step should produce a predictable Vout settling curve.
- Ripple check: verify ripple amplitude stays below the monitoring error budget.
- LM2907 / LM2917 (tachometer / F-to-V) — classic frequency-to-voltage starting points.
IC selection logic: mapping requirements → comparator specs (before FAQ)
Selection should start from requirements and end in lab verification. The cards below map a requirement field to the exact datasheet lines that matter, the failure mode if the spec is wrong, and the first validation test to run on the bench. Part numbers are included as datasheet lookup starting points only; the mapping + verification steps must decide the final choice.
1) Frequency target: fPWM / max toggle rate
- Propagation delay at a stated overdrive (not “typ only”).
- Toggle frequency or maximum switching rate constraints.
- Output drive vs load (VOH/VOL vs IO, rise/fall under CL).
- Duty/frequency compresses at high end; edges distort; missed pulses.
- Effective loop delay grows unpredictably at certain operating points.
- Sweep Vin/overdrive and measure delay variation and endpoint behavior.
- Measure at the receiver pin under worst-case CL/cable length.
2) Jitter / edge quality
- Input-referred noise (and test conditions).
- Propagation delay distribution vs overdrive (when available).
- Output transition speed and drive strength under stated CL.
- Timing noise becomes duty ripple or frequency sidebands.
- Slow edges create repeated threshold crossings downstream.
- Measure edge-time histogram at fixed Vin; repeat with 2× ramp slope.
- Probe at the receiver pin and confirm a single threshold crossing per edge.
3) Threshold accuracy: offset/drift, Ibias, VICR
- Input offset and drift across temperature.
- Input bias current (max across temperature matters for high-R nodes).
- VICR behavior near rails (crossover regions and headroom).
- Trip point drifts with temperature/humidity; endpoint nonlinearity near rails.
- High-impedance dividers turn Ibias/leakage into large threshold shifts.
- Compare trip point with high-R vs low-R divider; log drift vs temperature.
- Sweep common-mode and near-rail input levels; watch for “bending” or mode changes.
4) Low power & startup behavior
- Iq vs delay tradeoff and operating modes (if any).
- Startup / power-on behavior and output default states.
- Battery life misses target; power-up generates false pulses or wrong duty.
- Repeat cold/warm starts; test supply ramps; confirm stable output behavior.
- Measure Iq at representative conditions (not only typical room values).
5) Output type decision: open-drain vs push-pull
- Wired-OR / multi-point alarms are needed.
- Cross-voltage domains with pull-up are required.
- Edge speed can be controlled by Rpull-up and Cload budgeting.
- Clean, fast edges are required without pull-up sizing.
- Receiver edge integrity is sensitive to rise-time and ringing.
- High toggle rates require strong drive under load.
- Measure rise/fall at the receiver pin under worst-case CL/cable.
- Confirm a single threshold crossing per transition (no double pulses).
6) External hysteresis workflow (process only)
- Slow ramp or noisy inputs cause chatter or double edges.
- Field noise cannot be eliminated at the source within cost/space limits.
- Start with minimal hysteresis to eliminate multi-crossing.
- Validate across temperature and supply; re-check endpoint behavior.
- If hysteresis must be large, treat it as a root-cause flag (coupling/leakage/source impedance).
- Use a slow-ramp input test and confirm single transition at the receiver pin.
- Log trip points over temperature to ensure hysteresis does not break accuracy targets.
Supplier inquiry template (fields to request)
- Propagation delay: specify overdrive (mV), VDD, CL, and temperature corner.
- Delay vs overdrive curve (or at least multiple overdrive points).
- Output drive: VOH/VOL vs IO, and rise/fall under the intended CL and pull-up (if open-drain).
- Input offset/drift: max across temperature; include test conditions.
- Input bias current: max across temperature; include direction/sign if relevant.
- VICR near rails: behavior and any crossover limitations.
- Hysteresis: typ/max and temperature dependence (internal), or guidance for external implementation.
- Startup behavior: power-on output state and any known transient conditions.
Reference part number shortlist (organized by use)
TLV3501 · LMV7219 · ADCMP600 / ADCMP601
LM393 · LMV331
TLV3691
TLV3011
SN74LVC1G17 · SN74HC14
SN74LVC1G123
LM2907 · LM2917
FAQs (PWM / Voltage-to-Frequency with comparator + ramp)
Short, bench-first answers that stay in scope: ramp integrity, comparator crossing behavior, output edge transport, and measurement traps. Each FAQ uses the same data structure: Trigger → Check → Threshold → Action.
Always validate at the receiver pin (not only at the source). Timing problems often come from edge transport, loading, and re-crossing rather than from the comparator core.