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

Why do individual RP2040 output periods vary when the average derived frequency is correct?

An RP2040 clock generator output measures about 5 MHz on a counter, while the oscilloscope shows two period peaks. Check which divider the output uses. A fractional divider switches between adjacent integers to reach the configured average. A lower-jitter external reference will leave the short and long periods inherent to this division method.

Use the input period to predict where the histogram peaks should fall

Assume the generator uses a 12 MHz reference and targets an average divide ratio of about 2.4. One input cycle is about 83.3 ns. Under the manufacturer's example division scheme, two cycles give about 167 ns and three give about 250 ns. The mix averages close to 200 ns. The register's fractional resolution affects the available ratio. Use the integer and fractional fields actually read back in the calculation report, rather than storing only the software target.

Keep the test point, probe, and triggering unchanged. Switch to integer division and record intervals between successive rising edges, then restore fractional division. Over a sufficiently long capture, count periods and total time and retain the individual period distribution. Two peaks at the corresponding input-cycle counts under fractional division, and one main peak under integer division, are consistent with the register settings. Do not mix these periods with rising-to-falling half cycles.

What matters depends on the receiver. Event counting may depend on the long-term average. A sampling clock also has to meet the shortest period and high and low pulse-width limits. If the short periods violate receiver requirements, consider an integer-divisible clock or a different target frequency and repeat the test. That addresses the stage producing alternating periods and shows whether the external crystal needs to change.Raspberry Pi RP2040 clock generator and fractional divider documentation

Send us a part number or your requirements

Brand, frequency, quantity and delivery target — a useful place to start.

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.