How can I probe the 6502?

Building your first 6502-based project? We'll help you get started here.
sprx128
Posts: 4
Joined: 08 Apr 2021

How can I probe the 6502?

Post by sprx128 »

Recently, I bought a 6502, and I want make a pc with it, but I think that mine is dead, so how can I test it, without another integrated or something too hard? Because I'm waiting for more stuff and in this moment, I just have the 6502, but I have too an Arduino and rpi3 and a lot of resistances and wires, and i don't know if I can use them
ojanhk
Posts: 11
Joined: 29 Aug 2019
Location: France
Contact:

Re: How can I probe the 6502?

Post by ojanhk »

Hi, you could do a free run using a few resistor and led on a breadboard.
If you wire properly the different signals to VCC and GND, you just have to wire data bus so it always reads $EA(NOP).
If you have LEDs on the address bus, you should see it incrementing.
The only thing is you have to provide a clock signal, if it’s a recent 65c02, you can do it by hand with a button, but if it’s an older 6502 you’ll need to provide a real clock(can be a 555 timer).
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: How can I probe the 6502?

Post by BigDumbDinosaur »

sprx128 wrote:
Recently, I bought a 6502, and I want make a pc with it, but I think that mine is dead, so how can I test it, without another integrated or something too hard? Because I'm waiting for more stuff and in this moment, I just have the 6502, but I have too an Arduino and rpi3 and a lot of resistances and wires, and i don't know if I can use them
From where did you purchase this 6502? Can you post a closeup photo of it so we can see the markings on it?
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: How can I probe the 6502?

Post by BigEd »

Welcome, sprx128! As noted above, if you search for "NOP test" or "NOP generator" you'll get the information you need. But we're always happy to help with further questions.

As BDD implies, any IC which isn't sold as new by a major distributor will carry some risk of not being exactly what it's sold as. It might be slightly different or totally different. These risks are, if you like, built in to the very low prices. We've had many previous discussions on this phenomenon, so it would be nice not to hash it all out again here. See for example
Bargain chips bought online - buyer beware!
and perhaps
65xx parts sources, genuine and fake
Last edited by BigEd on Mon Jul 12, 2021 5:30 pm, edited 1 time in total.
sprx128
Posts: 4
Joined: 08 Apr 2021

Re: How can I probe the 6502?

Post by sprx128 »

I think that my 6502 it's fake because the letters of the top were make with laser.
Attachments
Screenshot_20210408-091552.png
MOS_6502AD_4585_top.jpg
Last edited by sprx128 on Thu Apr 08, 2021 2:19 pm, edited 1 time in total.
sprx128
Posts: 4
Joined: 08 Apr 2021

Re: How can I probe the 6502?

Post by sprx128 »

BigDumbDinosaur wrote:
sprx128 wrote:
Recently, I bought a 6502, and I want make a pc with it, but I think that mine is dead, so how can I test it, without another integrated or something too hard? Because I'm waiting for more stuff and in this moment, I just have the 6502, but I have too an Arduino and rpi3 and a lot of resistances and wires, and i don't know if I can use them
From where did you purchase this 6502? Can you post a closeup photo of it so we can see the markings on it?
Sure
Attachments
Screenshot_20210408-091552.png
sprx128
Posts: 4
Joined: 08 Apr 2021

Re: How can I probe the 6502?

Post by sprx128 »

ojanhk wrote:
Hi, you could do a free run using a few resistor and led on a breadboard.
If you wire properly the different signals to VCC and GND, you just have to wire data bus so it always reads $EA(NOP).
If you have LEDs on the address bus, you should see it incrementing.
The only thing is you have to provide a clock signal, if it’s a recent 65c02, you can do it by hand with a button, but if it’s an older 6502 you’ll need to provide a real clock(can be a 555 timer).
I don't have any problem with the clock I have a 555 and cd4017, but can you give me the esquematic?
User avatar
barrym95838
Posts: 2056
Joined: 30 Jun 2013
Location: Sacramento, CA, USA

Re: How can I probe the 6502?

Post by barrym95838 »

sprx128 wrote:
ojanhk wrote:
Hi, you could do a free run using a few resistor and led on a breadboard.
If you wire properly the different signals to VCC and GND, you just have to wire data bus so it always reads $EA(NOP).
If you have LEDs on the address bus, you should see it incrementing.
The only thing is you have to provide a clock signal, if it’s a recent 65c02, you can do it by hand with a button, but if it’s an older 6502 you’ll need to provide a real clock(can be a 555 timer).
I don't have any problem with the clock I have a 555 and cd4017, but can you give me the esquematic?
Garth has spent considerable effort on his excellent primer pages, and I highly recommend them for beginners and experts alike.

Happy hacking!
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: How can I probe the 6502?

Post by GARTHWILSON »

Welcome.

sprx128 wrote:
I don't have any problem with the clock I have a 555 and cd4017, but can you give me the esquematic?

I'm on a short vacation, away from home, so I'll have to wait probably until at least tomorrow to provide any schematics. Are you in a part of the world where it's difficult to get parts? If so, what other parts do you have? The CD4000 (and 74Cxx) series is generally too slow at 5V for even the old NMOS 6502, and I don't recommend it. (This is covered in the "74xx Logic Families and Timing Margins" page of the 6502 primer which I strongly recommend you go through. (I see Mike recommended it while I was looking stuff up and writing. Thanks, Mike.) Section 6 is on clock generation. I see now that I should add a diagram there for a 74xx14 relaxation oscillator there with a single resistor and capacitor also, which is simpler than a 555 and has much better rise and fall times. (Looking at Wikipedia just now, I'm not finding such a diagram even there.) I can't think of any good reason to use a 555 anymore.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: How can I probe the 6502?

Post by BigEd »

Just to note: just because a chip is relabelled doesn't mean it isn't something like what the label says. The resellers are doing whatever they feel helps them in the marketplace.

As far as I understand the anecdotal evidence, there's a fair chance that NMOS and CMOS 6502s will appear in each other's clothing. For some hobby purposes, it's not too important which one you have. For other purposes, it will matter.
Martin A
Posts: 197
Joined: 02 Jan 2016

Re: How can I probe the 6502?

Post by Martin A »

Is there any info, printed or in the molding on the under side ?
ojanhk
Posts: 11
Joined: 29 Aug 2019
Location: France
Contact:

Re: How can I probe the 6502?

Post by ojanhk »

If you can’t wait until Garth comes back you can have a look there : https://coronax.wordpress.com/2012/11/1 ... n-circles/
It helped me a lot when I started playing with 6502 a few years ago.
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: How can I probe the 6502?

Post by BigDumbDinosaur »

sprx128 wrote:
BigDumbDinosaur wrote:
From where did you purchase this 6502? Can you post a closeup photo of it so we can see the markings on it?
Sure
Production of NMOS 6502s ceased many years ago, before the widespread use of laser marking. Most likely, you have a fake, and it may not even be a microprocessor at all.

As for Ø2 clock generation, the 555 timer is not a good choice, as said by Garth. The rise and fall times are slow. You would be better served with a CMOS clock oscillator.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: How can I probe the 6502?

Post by GARTHWILSON »

GARTHWILSON wrote:
Section 6 is on clock generation. I see now that I should add a diagram there for a 74xx14 relaxation oscillator there with a single resistor and capacitor also, which is simpler than a 555 and has much better rise and fall times.
Here's the simplest RC oscillator I can think of, using a section of a CMOS 74AC14 or 74HC14 (no "T") hex Schmitt-trigger inverter:
74xx14RCosc.gif
74xx14RCosc.gif (5.23 KiB) Viewed 1719 times

I see I did put in link to a forum topic covering it, in the third-to-last paragraph of the page. With a 74AC14, you should get a little under 1MHz with a 100pF capacitor and 8.2K resistor. The exact values for a given frequency, or the exact frequency you'll get from particular values, will depend partly on the size of the hysteresis of the Schmitt-trigger input relative to the output swing, and this may vary somewhat from one manufacturer to another and from one lot to another; so these are just starting points. Keep in mind that the frequency will be approximately inversely proportional to the capacitance multiplied by the resistance. For a 74HC14, the frequency may be just a tad lower than for the 74AC14. In the forum topic I linked to on that page, I showed how I had capacitor choices and a trimmer variable resistor too, to make a variable-frequency oscillator (VFO). It has a link to a newer, higher-frequency one as well. If you don't have a real frequency counter, you can get a close approximation from an oscilloscope, or your DMM might have a frequency-counter function, although for the DMM you'll probably need a divider to get down to the frequency range your DMM can handle, or at least buffer it with subsequent inverter section so the probes don't affect the frequency.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
John West
Posts: 383
Joined: 03 Sep 2002

Re: How can I probe the 6502?

Post by John West »

Since you have an Arduino, it's worth keeping in mind that it can generate the clock too. There are advantages to this, for the initial "does it work at all?": you can connect address lines to its inputs, have it read them on each cycle, and print them in a nice readable format.
Post Reply