0
\$\begingroup\$

I have a clock running at 100Mhz (in Xilinx FPGA). My scope only runs at 25Mhz. I suspect I am having a problem measuring it as such. However I'd like to know how fast the clock actually is. My co-worker told me it is 100Mhz + PPM. I haven't found a concise method/explanation on how PPM works on the internet!

\$\endgroup\$
4
  • \$\begingroup\$ what do you mean by "actually"? It certainly is 100mhz \$\endgroup\$
    – PlasmaHH
    Jun 7, 2016 at 15:06
  • 4
    \$\begingroup\$ Divide the clock by a known division ratio ( > 4 ) and observe that. (By "100MHz + PPM" your co-worker probably meant, within several parts per million of 100MHz - a typical crystal oscillator is specified as 20-50 parts per million accuracy. \$\endgroup\$
    – user16324
    Jun 7, 2016 at 15:08
  • 1
    \$\begingroup\$ @BrianDrummond I'd say the ratio should be >= 16 or so, to be able to work comfortably with a 25MHz scope. \$\endgroup\$ Jun 7, 2016 at 15:46
  • \$\begingroup\$ Regarding your last sentence. \$\endgroup\$
    – uint128_t
    Jun 7, 2016 at 16:23

1 Answer 1

5
\$\begingroup\$

Your problem is in your choice of test equipment. An oscilloscope is generally not intended to be used as an accurate frequency-measuring tool. An oscilloscope can be used to verify that a signal is of approximately the correct frequency, but because frequency measurement in an oscilloscope is usually done by measuring the period of one cycle of the signal, it cannot be very accurate.

To verify that the clock is operating correctly, using a divider chain, as suggested by Brian Drummond and Dmitry Grigoryev in the comments, to slow down your clock is required to make it visible to your oscilloscope. This should be very easy to implement inside the FPGA and then output the divided-down signal to an I/O port. However, at only 25MSps (I assume, given your question. If this is an input bandwidth of 25MHz, you've got a better 'scope), you have a 4 ns uncertainty in the timing of the slower clock edges.

To verify the exact frequency of your FPGA clock source (frequency accuracy is necessary when sending signals to other devices using e.g. Ethernet, USB), you will need a frequency counter. These devices count the number of transitions a known internal time or measure the period between two transitions, then average the result to produce the resultant measured frequency. If you want to measure the parts-per-million frequency error in your FPGA's clock source frequency, you will need a calibrated frequency reference inside your frequency counter.

The PPM error in crystal frequency is caused by factors such as manufacturing tolerance, temperature, and aging. Generally the manufacturer will specify the typical and maximum errors in frequency for a device. Some devices will come in multiple precision grades where some devices are specified to have lower error.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.