In IN_SEL1:IN_SEL0 order, the PI6C49X0208 selects IN0 at 00, IN1 at 01, and its local passive crystal at both 10 and 11. To move from 00 to the crystal, 10 is enough. A routine that insists on 11 and raises IN_SEL0 first creates an intermediate 01, which selects IN1. Avoiding that intermediate route does not establish glitchless switching or remove the need to verify output handoff.
State the bit order before using any two-bit code
The manufacturer prints IN_SEL0 before IN_SEL1. This article uses the opposite column order, IN_SEL1:IN_SEL0. Read the pin names rather than copying a two-digit string. Header order on a board is not a dependable substitute for the pin description.
| IN_SEL1:IN_SEL0 in this article | Documented selection | Steady-state meaning |
|---|---|---|
| 00 | IN0/IN0# | First external input |
| 01 | IN1/IN1# | Second external input |
| 10 | XTAL | Local passive crystal |
| 11 | XTAL | Same local passive crystal |
The two XTAL codes are not separate crystal frequencies. With IN_SEL1 high, IN_SEL0 does not distinguish the local crystal path. It distinguishes the external inputs only when IN_SEL1 is low. If a check toggles only IN_SEL0 while the other line remains high, an unchanged clock is consistent with the truth table.
Expand the written states to find a detour
Starting at 00, reaching 11 by raising IN_SEL0 first produces 00 → 01 → 11: IN0, IN1, then crystal. Raising IN_SEL1 first produces 00 → 10 → 11: IN0, crystal, then crystal. If there is no requirement to end at 11, a single move to 10 selects the crystal. On the return trip from 11 to 00, clearing the low-order bit first gives 10 before 00 and avoids an explicit 01. Record pin states for each planned step.
These are logical intermediate states, not nanosecond timing guarantees. Even one CPU write may not make two physical pins cross their thresholds simultaneously. A one-bit route removes an identifiable intermediate reference selection without guaranteeing internal propagation, phase alignment or output continuity. Design and qualify the handoff separately if a receiver needs continuous clocking.
An unused third input still matters
The documented external-input state table lists logic-low output for an open or grounded external input pair. This is different from the high-impedance condition listed when ENABLE is low. A static low or a gap in edges is not sufficient to tell whether the device selected a dead channel, disabled the output or lacked a valid incoming clock. Check the control lines and relevant input before drawing the conclusion. The external-input rows do not document crystal startup or every crystal fault.
On an approved bench, use reference conditions that let a trace distinguish its sources. Three indistinguishable references can hide a brief detour from the frequency counter. If only the crystal and one external input are available, capture both select pins, ENABLE and the measured output together, and log the unused input state. Compare a transient with the recorded selection sequence before classifying it as crystal drift.
Check static routing and transitions in separate passes. First power each occupied source with its target code and verify the expected reference arrives at the output. Only then switch from a known input and inspect the pin order. Without the static baseline, a transition failure can be confused with a wrong code, an unready source or a receiver still in reset. A valid static baseline likewise does not replace a transition capture.
Sign off route and output recovery separately
Record whether the route visited an unintended input and separately whether the receiving clock returned safely. In a system that permits a pause, use its approved disable, select, verify-input and resume sequence. The datasheet lists ENABLE low as high impedance and high as enabled, but does not give a universal system delay or make high impedance a guaranteed logic low. Verify the first usable cycles, any extra or short edges, and the receiving reset sequence if relevant.
Give firmware and production both the named bit order and the transition plan. From IN1 at 01, raising IN_SEL1 gives 11 directly, also in one bit change. The duplicate crystal codes let each external input take a one-bit path without first routing through the other. Test both installed paths when they are used.
A transition can fail system requirements even if it avoids the third source. An averaging counter can miss a short pulse or dropout. Keep the transition waveform at the actual receiver with enough observation bandwidth. Report “no programmed detour” and “valid receiver handoff” as different results.
Document who owns the select pin, its default level and who drives it during reset. A later change to whole-port GPIO writes can inadvertently modify a shared select pin. Do not assume revisions using the same clock buffer share the same GPIO defaults.
FAQ
Do both crystal codes guarantee a stable output right after power-up?
No. They specify selection. The crystal has to be installed and oscillating, and the output needs adequate power and enable conditions. Verify what the receiver actually sees.
Does a one-bit route guarantee uninterrupted output?
No. It avoids an intermediate external reference explicitly encoded by the control sequence. Phase, the first pulse, startup and receiver protection still need electrical validation.
