I have a Rigol DS1052E Oscilloscope labelled 2CH 50MHz/1Gs/s
I attached one channel to a signal which should be a 18MHz square wave and another which is the above divided by 3 so around 6MHz.
Why aren't they squarer? Is it my measuring or a limitation of the scope?
I can guess a 18MHz and a 6MHz wave (with a 2:3 duty cycle)... but I would have to guess
The 18MHz trace might be the result of you having unknowingly enabled the 20MHz low pass filter.
As for the other trace I would suspect something amiss with the 6MHz source.
It may be relevant that the fall time of both appears to be the same.
I have a Rigol DS1052E Oscilloscope labelled 2CH 50MHz/1Gs/s
...
I attached one channel to a signal which should be a 18MHz square wave and another which is the above divided by 3 so around 6MHz.
50MHz scope will not show 18MHz square wave as a square wave but as a more-or-less distorted sine because it doesn't have enough bandwidth. Remember, square wave = fundamental 18MHz + infinite amount of harmonics. You need to get at least ~5 of those harmonics for the signal to still look somewhat square. With 50MHz bandwidth you would have at best 2, third harmonic is already outside.
So that explains your 18MHz signal.
Why the 6MHz signal is so messed up is difficult to say without knowing more about your signal source and how are you measuring things.
Check that the probes are on the x10 setting.
Tim
I'd say your divider is too slow (74HC?).
But, you know, posting only half the information (the 'scope part) and leaving out the circuit gives you half answers.
Check that the probes are on the x10 setting.
And properly compensated using the calibrator O/P from the scope.
To provide pictures to what janoc explained above:
square wave composition from harmonics. For your 18 MHz square wave, the first four are 18 MHz, 36 MHz, 54 MHz, 72 MHz. As you can see the third one is already beyond scope’s bandwidth.
Paul Falstad created a
Fourier transform demo, which you may use to play with the concept. Buttons on the right set predefined waveforms.
Also note that “square wave” is an idealized concept. Very often they are actually sinusoidal: in particular for clock signals and when data signal is pushed to the limits of the medium. So be sure the signal is expected to be squareish in the first place.
When you look at a trace that appears not as expected.
- Check your setup, the act of measuring can alter the waveform (x10 x1 on a probe makes a diffrence)
- Check or perhaps understand your device under test. The quality / uniformity / level vary can greatly over the
frequency range of the device.
This can be a very fun/educational thing. I'd suggest a notebook and pencil. If you are looking at signal generator
try different settings on scope and don't forget x10 x1 on the probe. Characterizing your test gear is a part of
bench work.
So that explains your 18MHz signal.
No, it doesn't. 18 MHz and any signal with two-three harmonics doesn't look like sine or sawtooth. There is something other going wrong (or not).
Yes many factors to consider.
Measuring on for instance a breadboard with crappy connections can distort the signal due to added resistance and capacitance. Without the schematics and the measurement setup there is no way of telling why you see on the scope what you see.
In the 6MHz signal it looks like the 18MHz is somewhat bleeding through, forming the ripple on the high part of the signal.
Conclusion: Provide us with more information if you want to get better answers.
The signals come from an Arcade PCB... it's not exactly this since my actual board has some different components but essentially it is the same...
The 18MHz is the 401 signal..
The other signal isn't described completely on the schematic but is the equivalent of this diagram...
The green signal
For all intents and purposes the bottom schematic shows both signals but on my board some of the parts are in a custom chip which implements the equivalent.
The pair of JKs form a divide by 3
Be aware, as Tim mentioned, the X1 setting on the probe may have a very low bandwidth. I learned this the hard way with my Tektronix P2220 probes (and all the chinese imitations). These are '200 MHz' probes with a 6 MHz bandwidth in the X1 position!! I surely didn't expect that lower limit on a 200 MHz rated probe!
You're leaving a lot of blanks, "some different components" makes all the difference. But TP401 won't have much of a square on it at 18MHz and with a Tr of 10ns or so from that buffer :-)
If you have a square wave input, then the rule of thumb is that the scopes risetime is 0.35/BW: a 50MHz scope will have a 7ns risetime. That's true for an 18MHz or 18Hz square wave.
Yes, that's very good advice
Note however that the factor may need to be increased from 0.35 to around 0.40 depending on the scope's frequency response -- 0.35 is usually for scopes with a Gaussian response, whereas a slightly higher factor might be better for scopes with a "steeper" frequency response (i.e. more "wall-like")
I talk about this in my video on oscilloscope bandwidth:
https://youtu.be/FhT8TpuI7ek?t=621
The schematic helps indeed. Both 74LS parts used in the schematic are "slow" when it comes to rise time. The JK filpflop, according to the datasheet I checked, has a typical max clock frequency input of 20MHz, so close to what is used in this design.
The 6MHz signal, like you stated in your original post, comes out as 33% or 66% pulse width depending on which output is measured. On the green marked one it would be high for two clock periods and low for one. This can be seen on your scope image. But there it has a rise time of ~50ns which is indeed quite long even for the 74LS107.
So maybe what others have pointed out is that you are using 1x setting on your probes.
TBH I've never had my probes on anything other than x1.... so the idea to use x10 is quite novel to me!
Anyway...
So that's with the probes at x10 and otherwise default.
It's clearly represents what I would expect from a logical point of view. i.e. the blue trace is 1/3 of the yellow trace with a 2/3rds duty cycle.
And I take the Fourier comments from a point of view of someone who's done FFTs in the past so that is understood; just thought I was getting short changed from my 50MHz scope which is allegedly tweaked to 100MHz.
FWIW The scope has a Sinx/x setting... didn't seem to make much difference
You're leaving a lot of blanks, "some different components" makes all the difference.
As stated some of the logic on this board is provided by a (Konami) Custom Chip which is not documented. But logically that device just implements the logic that is found on similar boards... just in one custom package.
The whole point of x10 probes is high bandwidth with low loading of the circuit, using the x1 setting is seldom if ever useful due to it heavily loading the circuit (lots of capacitance) and having low bandwidth (typically 1/10th of the probe's x10 bandwidth).
TBH I've never had my probes on anything other than x1.... so the idea to use x10 is quite novel to me!
Anyway...
(Attachment Link)
So that's with the probes at x10 and otherwise default.
It's clearly represents what I would expect from a logical point of view. i.e. the blue trace is 1/3 of the yellow trace with a 2/3rds duty cycle.
And I take the Fourier comments from a point of view of someone who's done FFTs in the past so that is understood; just thought I was getting short changed from my 50MHz scope which is allegedly tweaked to 100MHz.
FWIW The scope has a Sinx/x setting... didn't seem to make much difference
Top trace shows a clean risetime of approx 7ns, which corresponds to a 50MHz response - as expected. That signal has sufficient signal integrity to be usable as a clock.
Bottom trace also has a clean 7ns falltime, but there is a lot of crap. It could not be used as a clock.
What could cause the crap? One obvious possibility is a poor probe ground connection. Make sure you have a short connection between the probe's shield and the ground on the IC driving the bottom trace.
On some of your screenshots you have channel 1 in AC mode.
TBH I've never had my probes on anything other than x1.... so the idea to use x10 is quite novel to me!
The rule is always use x10 divider except some rare cases when you really need x1. Only x10 divider has the smallest possible influence on the circuit and the signal you want to look at.
Using x1 instead of x10 is an old known catch for a young players.
Someone in a related topic gave an advice of switching your probes to x10 and wrapping the switches over with insulation tape to make them stay in that position, and that's a good advice.
I would only add that it's better to use a heat shrink tube for this: it looks better and does not leave a sticky residue.