Do not change the selector while the output is enabled. Consider the KDS reference pairing of a DSX211SH 20 MHz crystal and a Renesas RA0E1. PCLBUZ0 can export the selected clock, but Renesas says to change CSEL or CCS[2:0] only while CKS0.PCLOE is zero. This is a restriction on the controller's external output selection, not a statement about whether the crystal has started.
Is the pin a test point or a real clock supply?
If PCLBUZ0 only feeds an oscilloscope, the test plan can explicitly permit a gap. Disable the output, change the selection, then re-enable it and record the before and after waveforms separately. If the pin also clocks a downstream device, disabling it can affect that device. Use this diagnostic sequence only when the receiver can tolerate a clock interruption or has been safely paused. It is not a continuous-clock handoff for designs that cannot tolerate a gap.
For example, a bench test may switch from a crystal-derived output to a comparison source. Do not write selector values while PCLBUZ0 is still enabled and then treat edges in the transition window as evidence of crystal instability. Disable the output before reconfiguration, restore it using the approved sequence, then verify the selection and stable waveform. Do not assume a particular pin level during the gap or infer a glitch-free transition.
Qualify crystal matching separately from the test-output sequence
KDS provides reference measurements for a specific RA0 pairing and calls for testing the actual board. It does not certify the RA0E1 software switch. Record the exact crystal model, test-point use, selector status and permitted interruption window. If the selector was changed with the output enabled, retest according to the manufacturer’s sequence before rejecting the crystal sample.
Related selection guide: MERLIN Crystal Timing: Can You Copy the Capacitors for a 20 MHz Crystal? Two KDS Matching Setups for Renesas RA0
Resource link: https://www.mecxtal.com.cn/en/handbook/new-0518.html
