Do the counters have jitter or is my equipment lying to me ?
Ale
Posts: 2,363
Equipment: Intronix Logic Port (at 200 MS/s and 500MS/s) and 40 MHz Rigol DS1042C Oscilloscope.
Test 1: Two counters from the same COG one at 25 MHz and the other at 50 MHz, it seems ok, no jitter I can see.
Test 2: Two counters from the same COG one at 30 MHz and the other at 60 MHz, jitter, loads of it.
I measured in Real time (400 MS/s) and equivalent time (5GS/s) and in both cases there is not visible jitter at 50 MHz but there is at 60 MHz.
I know my measuring equipment is not high end, not even good, but I was wondering if someone has seen this before. (If someone can/wants to lend me some Lecroy, Tek, Yokogawa or Agilent gear it will be welcomed .)
The code used to turn on the counters is shown below, pr is the desired frequency. The counter B is set to 2x the frequency of counter A. The circuit has 2 bypass 100 nF and a 10uF tantalum. The noise has an amplitude of ~50mVpp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit some of my articles at Propeller Wiki:
MATH on the propeller propeller.wikispaces.com/MATH
pPropQL: propeller.wikispaces.com/pPropQL
pPropQL020: propeller.wikispaces.com/pPropQL020
OMU for the pPropQL/020 propeller.wikispaces.com/OMU
Test 1: Two counters from the same COG one at 25 MHz and the other at 50 MHz, it seems ok, no jitter I can see.
Test 2: Two counters from the same COG one at 30 MHz and the other at 60 MHz, jitter, loads of it.
I measured in Real time (400 MS/s) and equivalent time (5GS/s) and in both cases there is not visible jitter at 50 MHz but there is at 60 MHz.
I know my measuring equipment is not high end, not even good, but I was wondering if someone has seen this before. (If someone can/wants to lend me some Lecroy, Tek, Yokogawa or Agilent gear it will be welcomed .)
The code used to turn on the counters is shown below, pr is the desired frequency. The counter B is set to 2x the frequency of counter A. The circuit has 2 bypass 100 nF and a 10uF tantalum. The noise has an amplitude of ~50mVpp.
CON _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 hp = 640 'horizontal pixels vp = 240 'vertical pixels hf = 24 'horizontal front porch pixels org 40 hs = 40 'horizontal sync pixels hb = 128 'horizontal back porch pixels vf = 4 'vertical front porch lines - orig 9 vs = 3 'vertical sync lines vb = 33 'vertical back porch lines - orig 28 hn = 1 'horizontal normal sync state (0|1) vn = 1 'vertical normal sync state (0|1) pr = 25 'pixel rate in MHz at 80MHz system clock (5MHz granularity) DAT .... movi ctra, #%00001_101 'enable PLL in ctra (VCO runs at 4x) movi frqa, #(pr / 5) << 3 'set pixel rate mov ctrb, #VGACLK ' clock output movi ctrb, #%00010_110 ' PLL 2 times pixel rate movi frqb, #(pr / 5) << 3 'set pixel rate mov vcfg,reg_vcfg 'set video configuration
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit some of my articles at Propeller Wiki:
MATH on the propeller propeller.wikispaces.com/MATH
pPropQL: propeller.wikispaces.com/pPropQL
pPropQL020: propeller.wikispaces.com/pPropQL020
OMU for the pPropQL/020 propeller.wikispaces.com/OMU
Comments
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
there's no question but they will jitter. The spectrum will be impure. The higher the frequency, the more impurities you will
see.
The question is, what are you trying to use them for? If you want to use these signals to drive a linear amplifier to transmit
RF, it's probably not going to meet FCC regulations. But if all you're doing is toggling a pin to drive your RC car, well, that
will probably work fine.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 10/30/2009 6:33:02 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit some of my articles at Propeller Wiki:
MATH on the propeller propeller.wikispaces.com/MATH
pPropQL: propeller.wikispaces.com/pPropQL
pPropQL020: propeller.wikispaces.com/pPropQL020
OMU for the pPropQL/020 propeller.wikispaces.com/OMU
Next, I added a bunch of lesser-significant-bit garbage to the base frequency for comparison (frqa := $14017646). You can see what a difference these extra "one" bits have:
So now I'm wondering: why do you think there is jitter on your signal?
-Phil
_
thanks
Ale
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit some of my articles at Propeller Wiki:
MATH on the propeller propeller.wikispaces.com/MATH
pPropQL: propeller.wikispaces.com/pPropQL
pPropQL020: propeller.wikispaces.com/pPropQL020
OMU for the pPropQL/020 propeller.wikispaces.com/OMU
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit some of my articles at Propeller Wiki:
MATH on the propeller propeller.wikispaces.com/MATH
pPropQL: propeller.wikispaces.com/pPropQL
pPropQL020: propeller.wikispaces.com/pPropQL020
OMU for the pPropQL/020 propeller.wikispaces.com/OMU
This is what I got:
There's less than 1 ns jitter 1 ms out from the initial trigger.
-Phil
_
From Tektronics ?
How many samples per second can it do ?
How much money does it cost ?
Can you post a typenumber and manufacturer ?
best regards
Stefan
It's a Tek TDS3034. I think it's been supplanted by a newer model. You can read the specs here. You might be able to find one on eBay; but if you're looking for a new scope, be sure to consider Agilent and LeCroy as well.
-Phil
so then my crappy equipment lies to me :-(. Well that means I'll have to get something good.
Thanks a lot!
I do not know which model is, but it is not a PC based osc. Yes, it is a Tek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit some of my articles at Propeller Wiki:
MATH on the propeller propeller.wikispaces.com/MATH
pPropQL: propeller.wikispaces.com/pPropQL
pPropQL020: propeller.wikispaces.com/pPropQL020
OMU for the pPropQL/020 propeller.wikispaces.com/OMU