Shop OBEX P1 Docs P2 Docs Learn Events
Waveform not nice — Parallax Forums

Waveform not nice

BTXBTX Posts: 674
edited 2010-08-25 21:34 in Propeller 1
Hi all.
I'm testing a TDS2012B Tek O'scope (100Mhz bandwith), so I setup a Synth object to generate frequencies.
Playing with it, I get these measures (pictures attached).
I'm using my Parallax demo board.
Why the waves are like this ??, up to 40Mhz I'm getting almost a sinewave instead a square one.
Any ideas ?, is the new o'scope bad ? or what ? (the testing probe is a new one too, and for 200Mhz bandwith)
Thanks in advance for your opinion.

Comments

  • TubularTubular Posts: 4,717
    edited 2010-08-23 16:49
    You can't expect too much of a 100 Mhz scope when looking at a 40 Mhz signal. This is because the square wave is made up of odd harmonics, ie
    40 Mhz fundamental, +
    120 Mhz 3rd harmonic
    200 Mhz 5th harmonic
    280 Mhz 7th harmonic... and so on
    Your cro is attenuating the 3rd harmonic a bit, plus all the other harmonics increasingly severely. Hence the bumpy sine wave.

    There will be other factors at play too - such as the circuit layout, and the slew rate of the prop outputs, etc. Perhaps someone with a nicer 1 Gig scope could post what it really looks like.
  • BTXBTX Posts: 674
    edited 2010-08-23 16:54
    Thank you Tubular.
    But the o'scope adquire at 1Gsps, 100Mhz is the input bandwith...so nothing to do ?
    Forget to buy a new one :).
  • RaymanRayman Posts: 14,889
    edited 2010-08-23 17:04
    Yeah, usually the Tek scopes quote the analog bandwidth and they subsample digitally. So, I'd expect you should see a good signal.

    The problem is probably the inductance between the Prop pin and the scope. Or, the scope probe may not be properly tweaked. Sometimes they have a little screw you have to turn...
  • TubularTubular Posts: 4,717
    edited 2010-08-23 17:27
    BTX wrote: »
    Thank you Tubular.
    But the o'scope adquire at 1Gsps, 100Mhz is the input bandwith...so nothing to do ?
    Forget to buy a new one :).

    Nahh don't worry about it. It should still clock whatever chip you wish to clock with it. I've seen uglier clocks than the one you have that still work...

    1Gsps sampling is great so you can draw lots of pretty line segments on the screen, but if the input amplifier bandwidth is 100 Mhz, that will cause a lot of distortion like you're seeing.

    Yes it would pay to check the probe compensation to see if its blunting the waveforms slightly. But I suspect its more the 3db rolloff on the input section of the CRO. I'll see if I can see the same thing on my 150 Mhz scope with say a 50Mhz waveform
  • BTXBTX Posts: 674
    edited 2010-08-24 05:29
    Thank you guys !
    @Ray.
    I've two scope probes to check, both same results, each of them are for 200Mhz....sorry I should be more close to Fourier....my fault... :)
    @Tubular.
    Nice idea, I would like to know, how do you see the waveform in your 150Mhz scope.

    Imagine guys, this is my first DSO, I'm full of questions and surprissed for what I can see on his screen, (and my old 20Mhz analog scope is very jelous about that....). :)
  • RaymanRayman Posts: 14,889
    edited 2010-08-24 05:55
    I think I would also load down the Prop output pin with something like a 100 ohm resistor (metal or carbon film preferably). Then, put the probe directly across this resistor. Be sure to use the ground clip of the probe.

    This way, you should see more signal and less noise.
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2010-08-24 06:00
    If the input bandwidth is 100Mhz then you should not expect to see a sharp signal regardless of the sampling frequency as the harmonics are no longer there to sample.

    Graham
  • RaymanRayman Posts: 14,889
    edited 2010-08-24 06:38
    Well, I just checked what a 100 Mhz RC filter would do to a 40 MHz signal...

    I must admit, it's pretty bad. No chance of seeing a square wave. It'll be either triangular or sinusoidal...
  • BTXBTX Posts: 674
    edited 2010-08-24 09:03
    So I paid $2000.- for an scope, and i can't see more than 30Mhz clear sq waves...:(
    I'll be in the "stupid of the month" frame.

    Yes, could write a square wave as:
    sin(x) + 1/3 sin(3x) + 1/5 sin(5x) + 1/7 sin(7x) + .....
    So, for 40Mhz signal with 2nd armonics at 120Mhz I'm lost. :( Fourier Wins !!
  • potatoheadpotatohead Posts: 10,261
    edited 2010-08-24 09:06
    Can you return it, or resell it?

    For that kind of money, it's worth doing the work to get out of that device, and into another one.
  • BTXBTX Posts: 674
    edited 2010-08-24 09:32
    Hi Potatohead.
    Yes maybe I could return it, but I've not more money to waste in another one more expensive....
    Anyway is much better than what I have before (analog 20Mhz), but I supossed more from this new one.... my fault.
    Thank you!!
  • potatoheadpotatohead Posts: 10,261
    edited 2010-08-24 11:47
    Agreed. I was thinking about used devices as a potential alternative.

    Still, there is a lot you can do with that scope. Every bit of progress counts.
  • w8anw8an Posts: 176
    edited 2010-08-24 16:39
    Doesn't the scope have a square wave calibration signal?

    This is handy for setting the probe capacitance. You should get a nice clean signal from this before measuring any outside signals.
  • BTXBTX Posts: 674
    edited 2010-08-24 17:24
    Yes potatohead, anyway will be very usefull for me. :)
    @w8an: I did it before, the probe has a trimmer, but it is adjusted correctly. Thank you.
  • TubularTubular Posts: 4,717
    edited 2010-08-24 22:01
    Here's what my 150 Mhz cro does to a 40 Mhz prop signal. Its suffering loss of definition...

    I don't have a 6.25 xtal to get 50 Mhz so I can't replicate what you're doing. In fact my xtal is 4.915200 hence the 39.2 Mhz

    Don't worry. I'm sure your Tek will be a great investment
    800 x 600 - 69K
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-08-24 23:13
    Alberto,

    Don't despair. Even with a Prop, you will seldom encounter digital signals above 10 MHz. In any event, it's not unusual to have a twinge of buyer's remorse right after a large purchase. But you've acquired a quality piece of test equipment that will serve you well for years to come. Enjoy!

    -Phil
  • AleAle Posts: 2,363
    edited 2010-08-25 02:01
    Alberto:

    Look at ray's page, he did some measurements of 80 and 100 MHz square signals with a 300 MHz scope (a dream machine!)... they also do not look perfectly square, but better than what you got (?).
    Are you sure you have the right probes ? (some probes are rated up to 50 MHz...).

    best regards,

    Ale
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2010-08-25 02:04
    BTX,

    For square waves do you really need a scope? They are so boring anyway :)

    Cheers,

    Graham
  • BTXBTX Posts: 674
    edited 2010-08-25 05:25
    @Tubular.
    Correct, your wave form is similar as I can se in mine.....maybe all is explained in this thread for those who want to buy an scope next time. About what to expect.
    @Phil.
    Be quiet, I'm really happy anyway, each day I try differents measures, and I can see that it will help me a lot in work !!... a lot. Thank you.
    @Ale.
    I will see the Ray's site then.
    And my probes comes with the scope, they are for 200Mhz in X10 attenuation. they are P2220 1x-10x passive probes. Thank you.
    @Graham.
    Of course !! my scope view is more funny !! :)

    To be usefull for other people, I want to comment something in this thread. Correct me if I'm wrong.
    If I really don't understand bad about this theme, when you want to buy an scope, don't forget that it comes with "analog inputs", and if is not usually to acquire analogs inputs of very high frequencies for you, and If you'll need to check very high frequencies square waves instead, think in a scope with digitall inputs too, ie: the Tek: MSO series. Maybe it is cheaper than a analog scope with a very high bandwith, and more suitable for square waves.

    Another point in this thread is for Tubular.
    I used the Synth Object to check this, you can get almost any frequency using this, no needs to change the xtal. Download it form the Propeller Object Exchange and try.

    Thank you so much everybody to help me on this. !!
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2010-08-25 06:14
    The probe's ground clip is only for LF. To get good results from HF you have to pull off the "witch's hat" to expose the probe's ground ring, and touch that, via a stub (and I do mean stub) if necessary, to ground. It may seem inconvenient, but that's proper 'scope technique.
  • BTXBTX Posts: 674
    edited 2010-08-25 07:58
    PJ Allen wrote: »
    The probe's ground clip is only for LF. To get good results from HF you have to pull off the "witch's hat" to expose the probe's ground ring, and touch that, via a stub (and I do mean stub) if necessary, to ground. It may seem inconvenient, but that's proper 'scope technique.

    Interesting tip. :)
  • TubularTubular Posts: 4,717
    edited 2010-08-25 16:15
    In my travels I found this online fourier tool:-
    http://www.univie.ac.at/future.media/moe/galerie/fourier/fourier.html

    Click the big red rectangle, choose "examples" then the square wave box. Then play with the coefficients. It's not well labelled, but the left half of the screen is for even harmonics, and the right half is the odd harmonics.
  • BTXBTX Posts: 674
    edited 2010-08-25 17:49
    Hey Tubular, nice example. :)
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2010-08-25 19:40
    It's just that a deal of "specmanship" is required anytime that more than casual accuracy, or whatever, is expected. The little clippy ground and its ground lead inductance -- :eyes: The manufacturer isn't spec'ing-out the unit with the clippy lead.
    You get a real education in all this when you test for output ripple & noise, stuff like that.
    343 x 144 - 21K
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-08-25 20:14
    PJ,

    Nice illustration! The tricky part is getting that little loop of wire around the ground sleeve to stay put. Copper wire just isn't springy enough to grip tightly. I sometimes resort to shrink tubing to keep it it firm contact with the probe. I suppose a loop of music wire would be the best bet.

    -Phil
  • LeonLeon Posts: 7,620
    edited 2010-08-25 21:34
    I've got some probes that came with a set of attachments including a little spring for those sort of measurements.
Sign In or Register to comment.