6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 17, 2024 6:30 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Aug 28, 2015 12:02 pm 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
I've been having a play with my new 'scope (Rigol DS1102E) and have taken what can only be descibed as the lowest res screen shot since the Commodore PET :wink: :P .
This is the 8MHz PHI2 signal on my original 65C02 project. Given my lack of experience with electronics, I was wondering what people might make of the "square" wave signal itself, the edge rise and fall times, etc.

Attachment:
8MHzSig.jpg
8MHzSig.jpg [ 41.06 KiB | Viewed 502 times ]


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 28, 2015 1:29 pm 
Offline

Joined: Tue Sep 03, 2002 12:58 pm
Posts: 336
That actually looks reasonable. One thing to check, though: do you have your probes switched to x10 mode? You won't get the full bandwidth of the scope unless they are. Unless you're measuring very small signals, there's no reason to use x1.

You might think that a scope with 100MHz input bandwidth would give beautiful square traces from an 8MHz input. But it won't. Square waves contain lots of harmonics, with 1/n of the amplitude at n times the fundamental frequency. The scope will attenuate the higher harmonics, leaving the overshoot and ripple that you see.

Here's a quick simulation of what you get if you feed a perfect 8MHz square wave through a perfect 100MHz brick-wall filter. If I've got attaching pictures right...

In reality, the scope doesn't have a perfect filter, and your source is not a perfect square wave, so you won't get exactly that either. But it should show that even in a perfect world, you'll get an imperfect trace.


Attachments:
square.png
square.png [ 13.04 KiB | Viewed 497 times ]
Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 28, 2015 1:54 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
In addition to having the probes switched to x10 mode, another important thing is attaching the ground lead that's located on the end of the scope probe to ground of the device under test. Although it's possible to attach to some alternative ground point of the scope, the resulting trace may show artifacts such as increased ringing, and isn't appropriate for critical situations.

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 28, 2015 3:41 pm 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
Okey dokey. I've moved the scope ground lead to VSS on the 65C02 and checked the PHI2 pin. Previously I was using different points elsewhere with the scope ground close to the PSU ground pin.

Looks slightly different now:
Attachment:
NewFile1.jpg
NewFile1.jpg [ 40.77 KiB | Viewed 489 times ]


Also, both the probes and the 'scope itself are in x10 mode, not x1 - been there, done that, got the T shirt previously :D.

Over-shoot on the rising and falling edges and the ringing look better and the rise/fall times themselves seem shorter - although that might just be happenstance.


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 28, 2015 4:50 pm 
Offline
User avatar

Joined: Mon May 25, 2015 2:25 pm
Posts: 680
Location: Gillies, Ontario, Canada
This is what the output from bit 0 of one of the counters on my 6502 project looks like with my 200MHz scope...

Image

Probes just crammed ad-hoc onto the breadboard through a 12 inch long wire.
So your signal looks about right!

Brad


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 28, 2015 7:08 pm 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
Yep looks pretty much the same. Just got to figure out why my set up barely tolerates 10MHz. In theory, it should be good to 14 at least.

[edit] 12MHz FTW!

[edit #2] It was the stupid 12MHz oscillator can. Took out the straight non-badged 12MHz one and popped in a IQX0-350B 12.288MHz one and it all works.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: