An external 40 MHz active oscillator drives a PIC18F47Q10. Two test points both read ten megahertz. Firmware asks for a 25-percent reference duty cycle, but the displayed waveform still looks symmetrical. Before changing the source, resistors, or scope thresholds, identify the output being measured. The fixed clock output and programmable reference can share a frequency while responding to different controls.
Make the same-frequency nodes identify themselves
In external clock mode, the 40 MHz active oscillator drives OSC1. Assume the input setting and supply support the rate and the system clock is configured for forty megahertz. In applicable oscillator modes, CLKOUTEN makes the OSC2 clock output one quarter of the system frequency. The separate CLKR module reaches a suitable pin through peripheral pin selection. That module has its own divider and duty-cycle controls. Verify configuration bits, source mode, and pin mapping before trusting a generic clock net name.
If CLKR also divides by four, both points measure ten megahertz and have a 100-nanosecond period. Set CLKR to 25 percent and expect approximately twenty-five nanoseconds high and seventy-five low after settling. Use an appropriate threshold and verify the actual high and low durations at the receiver. Changes in amplitude and finite edge rates can move the crossings. If the receiver needs at least thirty nanoseconds high, the illustrative 25-nanosecond result fails even with the correct frequency.
Use a deliberate divider change to identify the route. On an engineering board, change CLKR from divide by four to divide by eight while leaving the system clock and mapping alone. CLKR should change to five megahertz with a 200-nanosecond period. CLKOUT should stay at ten megahertz. If both move, check whether the test points share a net or firmware changed the system frequency too. If both stay at ten, confirm CLKR enable, register writes on the actual board, and whether subsequent initialization replaced the pin mapping.
Do not expect a quarter duty cycle in bypass
There is an exception when the divider field is zero. The output uses the system frequency, but nonzero duty codes give 50 percent. The zero duty code gives a constant low. If a 40 MHz oscillator must be passed at the same frequency and 25 percent duty cycle, the period is twenty-five nanoseconds and a quarter-period high is 6.25 nanoseconds. This configuration instead produces a nominal 12.5-nanosecond high in steady state. No other nonzero duty code will make it 6.25 nanoseconds. A different hardware path is needed.
The data sheet directs divider and duty changes while the reference module is disabled to avoid configuration glitches. Disabling takes effect immediately, so an old high pulse can be shortened. If the receiver cannot tolerate the pause, put it in a state that permits stopping its clock and resume after the new output settles. Test the boundary separately by capturing the last old pulse and first new one. Keep steady duty cycle and the shortest transition pulse as distinct results.
Capture an independent control marker to separate startup, steady operation, and reconfiguration. Verify the requested setting in code and read it back from the running part. A setting written during startup can be replaced later. If register state and pin response disagree, inspect the actual peripheral function routed to that pin. Label the scope channels with physical pin names so results do not inherit an old board net label.
With only one accessible test pad, use two independent settings to identify the signal. First change the reference divisor alone. Then, with the receiver isolated and the module allowed to stop, program constant-low duty and restore the original setting. The correctly routed reference changes frequency and then loses periodic output. The fixed output should respond to neither action. If a buffer between the MCU and pad switches to a backup clock, constant low may leave a periodic signal visible. Trace the node before the buffer or monitor backup selection to avoid blaming the MCU for the fallback.
State the required high and low times at the receiver
If the receiver still fails with appropriate divider and duty settings, compare the buffer output and receiver waveforms. Check logic levels, high and low time, and stable intervals. Changing to another oscillator of the same frequency can affect edges. It cannot change the documented divider-bypass behavior. If the fixture was observing the fixed output, correct its probe location and board documentation.
Keep the input rate, fixed output reading, CLKR divisor, and intended high and low durations together. Add a row at a second divisor as a cross-check. When temperature qualification is required, verify the shortest high and low intervals at the receiver under the specified conditions. Record which route the receiver uses and how configurations can be changed. The same divider check can identify two same-frequency test points the next time they appear.
