Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

What does higher hysteresis cost when a comparator shapes a sine-wave clock?

An input needs a digital clock, but the replacement temperature-compensated oscillator provides a clipped sine wave. A comparator converts it to logic levels. With no hysteresis, noise near the threshold can toggle the output several times. With excessive hysteresis, the signal may fail to reach both thresholds, particularly while the oscillator amplitude is still building. Draw the actual bias and minimum swing before choosing the thresholds.

Review both switching thresholds

A comparator with hysteresis switches when the rising input crosses the upper threshold and changes back when the falling input crosses the lower one. After a transition, noise around the threshold just crossed no longer causes repeated toggling. ADI's article on comparator hysteresis also notes that capacitive feedback from the output and load current coupled through ground can destabilize switching. A shorter reference and bypass connection can address the source of the problem before adding more hysteresis.

The waveform's mean voltage need not be half the receiver supply. Low-swing oscillator data sheets may specify a load resistance, capacitance, or coupling method. Check the sample data sheet and measure with the prescribed connection. With AC coupling, bias the comparator side within its common-mode range. If a divider sets that bias, check its AC impedance, noise, and power-up settling. When hysteresis comes from output feedback, actual output high and low levels matter. The feedback calculation for a pulled-up output differs from that for push-pull.

A sine wave changes fastest around its center and more slowly near its peaks. Moving the threshold toward a peak can turn the same voltage noise into more timing variation. Check actual edge timing for demanding clocks even when crossings still occur. ADI's MAX999 design note relates a comparator's input-referred noise to clock jitter when it squares up a sine wave. Propagation delay can also vary with amplitude, overdrive, and supply.

Worked example: How long does the logic output stay high?

Suppose a 20 ns ideal sine wave has a 1.2 V center and 0.2 V amplitude. With a rising threshold of 1.3 V and falling threshold of 1.1 V, the rising crossing is at 30° and the falling crossing at 210°. They are 180° apart, so the output high time is 10 ns when rise and fall propagation delays match. The hysteresis moves the edges relative to the zero crossing while the duty cycle stays symmetrical.

Move the falling threshold to 1.2 V, leaving the rising threshold unchanged. The falling crossing is then near 180°, giving 150° or about 8.33 ns of high time. Check this against the receiver's minimum. If the sine amplitude falls to 0.08 V, its peak is only 1.28 V and it may never reach the 1.3 V rising threshold. The examples assume an ideal sine, no noise, and symmetrical delays. On a clipped sine or another real waveform, measure the crossings themselves.

Before choosing parts, use a signal source to exercise the expected minimum and maximum amplitudes with the real load on the comparator. Record input, reference, output, and the downstream count. Keep DC connections fixed while changing amplitude so source impedance does not also alter bias. Repeat cold start and supply disturbances with the real oscillator. A missed first edge at minimum swing calls for reviewing amplitude buildup and thresholds. For extra transitions at steady state, check whether the reference moves with output current. Verify bypass and return paths before raising hysteresis.

Keep oscillator and comparator evidence separate

Oscillator limits include minimum output swing, frequency, specified load, and allowable common mode. The comparator adds input and reference ranges, switching thresholds, output logic, and load. Keep both test points in the report so a same-frequency oscillator substitution can be assessed. If only the oscillator's minimum swing changes, the comparator and digital receiver may stay, but the thresholds and lowest usable amplitude need another check.

For timing alignment, compare the shaped edge against the system reference and deskew measurement channels. Save steady-state response and the first few startup cycles. Check duty cycle, minimum high and low widths, and initial pulses together.

Also establish the comparator's initial state. As its reference comes up without an input, early sampling depends on supply, comparator enable, and receiver reset order. Keep the stage or downstream logic waiting until the input has enough swing, then verify both crossings. Where equal input voltages leave output unspecified, the reference design and downstream valid logic need to handle startup. If the first pulse establishes timing, repeat cold starts and compare the shortest observed pulse with the requirement.

References

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.