Hi All,
Really pleased, I got a digital oscilloscope for xmas.
Today was the first day I got round to actually using it, and I wanted to test that it was working ok.
The first test I thought of was to write a little program for my microcontroller that toggles a port (high\low) and measure the frequency of it.
The MicroController in question uses the internal oscillator at 8Mhz, which equates to 2MIPS.
The program which loops constantly uses 6 cycles on each iteration.
2,000,000 (MIPS) divided by 6 cycles = 333.33Khz.
My scope measures a frequency of 335.2Khz, just under 1.9Khz higher than the calculated value (over .5 percent higher).
Is this an acceptable difference? is my scope at fault? or the internal oscillator of the PIC?
Thanks in advance.
Mark