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

Two outputs derived from a 40 MHz oscillator have aligned rising edges. Why is the XOR detector output nonzero?

A 40 MHz active oscillator generates two slower test signals for a CD74HC4046A phase comparison. Their rising edges align on a scope, yet the filtered XOR output is nonzero. Check the falling edges. An XOR detector responds whenever input logic states differ. Unequal high and low times can produce output even if the reference edges align.

Measure frequency and both edges at the detector

The CD74HC4046A offers several phase comparisons. PC1 uses XOR. TI specifies equal half-duty inputs for the maximum locking range and shows the average transfer when ripple is suppressed. PC2 is a positive-edge phase-frequency detector. Its operation is based on transitions rather than plateau overlap. Independent measurements with these behaviors can help distinguish causes. Determine the actual detector and whether its output is part of a closed loop before interpreting voltage.

Here a suitable circuit derives one-megahertz test signals from a 40 MHz active oscillator. Their period is one microsecond. The detector receives compatible signals under the chosen supply conditions, rather than an unsupported direct forty-megahertz input. Capture rising and falling edges at both input pins. In the example, one signal stays high for five hundred nanoseconds and the other for four hundred. Both rise together. They match through the first four hundred nanoseconds and differ for the next one hundred. XOR is high for ten percent of the period.

Assume output plateaus of zero and five volts and an appropriate filter suppressing ripple. The average is approximately half a volt. Now make both inputs 50-percent duty, but delay one complete waveform by fifty nanoseconds. XOR produces a fifty-nanosecond pulse at each transition, with the same one hundred nanoseconds total. Fifty nanoseconds is one twentieth of a microsecond and corresponds to eighteen degrees. The same mean voltage describes two different timing conditions. Saving only the filtered value cannot distinguish them.

Inspect the raw XOR pulses and the positive edges

Capture SIGIN, COMPIN, and unfiltered PC1 together. One principal mismatch pulse between the falling edges suggests unequal duty. Two similar pulses near rising and falling transitions suggest a relative shift. Verify probe alignment and thresholds. The XOR inputs can switch at levels that differ from a default oscilloscope midpoint. With marginal levels or slow edges, record the range of crossing times over applicable thresholds too.

Run two controlled comparisons with the same 40 MHz oscillator and divider. First move only one falling edge, measuring PC1 pulse width and average. Then restore equal widths and delay the whole signal by a known amount larger than measurement scatter. Confirm the scope actually resolves the displacement. If the board exposes PC2 separately, use its positive-edge comparison in accordance with the data sheet. Its output behavior and load differ, so the PC1 mean-voltage formula does not apply.

The low-pass response can also mislead. Shortly after a setting change, the capacitor can retain voltage from a previous mismatch. Record raw XOR pulses and settled voltage with the inputs fixed. If a filter change leaves raw widths the same but alters only the transition, verify settling. Start with matched waveforms, allow the output to settle, then apply a known duty difference. This establishes the time needed before a reliable DC reading without interpreting a filter transient as clock drift.

Accept timing at the receiver

If the application samples on rising edges, use those edges at specified loading and thresholds to measure skew, and verify required pulse widths separately. If XOR voltage is used as a proxy, establish detector type, input shape, and filter conditions. Calibrate with at least two known delays and recheck if duty changes or the result leaves the calibrated range.

Two independent references may not be exactly isochronous. Their phase then moves through the record and a low-pass average can combine many phase values. Inspect rising-edge difference over time before applying a same-frequency phase relationship. A split from one oscillator removes that ambiguity for fixture checks. For two independent sources, record observation time and frequency difference or use a suitable time-varying phase measurement.

For a DC calculation, measure the actual XOR plateaus. The average equals the low plateau plus the voltage difference times high-state fraction. Loading can put the high plateau below the rail, so a nominal five-volt output may be the wrong calibration.

If oscillator replacements have the same frequency but differ after buffering, measure both edges and widths before and after the buffer. The XOR difference can originate in that path. Decide whether conditioning, path delay, filtering, or the source load needs attention. Retain a raw XOR trace so a later reviewer does not have to infer phase direction from half a volt.

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.