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

Checking the A/B Phase Window for Accepting an Encoder Z Index | Crystal & Oscillator Handbook

Some counters accept index Z only in a specified A/B state. Verify that Z overlaps that state. Pulse width alone cannot qualify index operation.

Consider an isolated counter board replaying encoder signals without actuators or mechanics. A/B count position correctly and Z appears in the trace, but the counter does not load its initial position. Correlate the three inputs on one timebase before changing the 20 MHz reference.

Seeing Z is separate from accepting the index

Incremental encoder A and B give count and direction. Z commonly gives a once-per-revolution reference. Some counters load a preset only while Z is active and A/B are in a selected combination. A clean Z pulse outside that combination can be ignored.

Other designs latch the count, set a status or reset position at a specified Z edge. Verify actual trigger and action for both encoder and counter. Seeing the rising edge at the pin cannot establish an internal reload.

Keep A/B counting and direction fixed in this example. Correct pulse counts do not qualify the index, and a phase relationship alone does not justify oscillator adjustment.

Worked example: equal 12 µs pulses can have different results

Assume an offline model with A and B both high from 20 µs up to, but excluding, 30 µs. Load is allowed while Z is active and both phases are high. The ideal model excludes filters, setup and hold, and synchronization latency.

Synthetic Z windowOverlap with high/highModel result
5–17 µsNoneZ exists outside the load condition
16–28 µs20–28 µs, or 8 µsThe combination can qualify
30–42 µsNo positive-width overlapTouching the boundary does not qualify

All three pulses have the same width. Their alignment differs. Exact boundary contact is no engineering margin. Real thresholds, filtering, tolerances and phase changes affect acceptance, so 8 µs is not a universal guaranteed interval.

Reversing direction can change the order of phase states and their relationship to Z. Specify whether both directions are required and whether to load zero or another value. An accepted index does not complete mechanical calibration. This example covers logic only.

The 20 MHz reference does not align Z with A and B

If the controller needs a 20 MHz, 1.2 V single-ended CMOS active reference, mainland China's SCTF SX2M20.000E20F30TJN is an inquiry candidate. Verify load, supply, temperature and actual clock routing. It is not a passive crystal substitute or an identified deployed part.

The nominal period at 20 MHz is 50 ns. A derived clock does not create overlap where none exists in the ideal inputs. In hardware, filtering, synchronization and independent sampling can affect the observed internal window. Compare pin waveforms with supported read-only controller state and action where available. External captures alone cannot prove internal decoding.

Tighter clock tolerance cannot replace index compatibility. Investigate an independent reference frequency or level anomaly separately. If A/B and pin signals work and only the index fails, prioritize the combination and load condition.

Share one timeline for engineering and purchasing

Use offline replay or an isolated low-voltage board. Verify polarity and thresholds, then align A, B, Z and position count. Mark the Z interval, phase state and potential load instant. Isolated single-channel captures from different runs cannot establish overlap. State the limitation if simultaneous capture is unavailable.

CheckEvidenceMeaning
A/B positionMode, phase sequence, state and directionNormal decoding
Z indexWindow, alignment with A/B, polarity and jitterCoverage of the required combination
ActionLoad or latch, time and observation pointWhether the expected action occurred
ReferenceFull code, supply, logic level and nodeIndependent clock evidence

Ask the encoder supplier for A/B/Z timing near index, and the counter supplier for acceptance conditions and load value. If only one direction is tested, mark other required directions pending.

Frequently asked questions

Does seeing Z on a scope prove the module and wiring are correct? It proves activity at that probe. Check the actual receiver, relation to both phases and internal action.

Will widening Z guarantee reset? Check phase, polarity, acceptance, input limits and the required action before considering a change.

Record whether Z was active during the required phase state and what the counter loaded. That separates interface, measurement and clock evidence.

For boundary tests, use cases far from the edge and cases with narrow intersection. Use the former to verify the function, then the latter to check filter and measurement limits. If a broad overlap does not load, recheck selected state and observation fields. If a narrow overlap cannot be resolved, retain the trace and time resolution without claiming a minimum supported width.

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.