6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Tue Nov 12, 2024 3:35 pm

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu Apr 08, 2021 4:58 am 
Offline

Joined: Thu Apr 08, 2021 4:53 am
Posts: 4
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


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 6:17 am 
Offline

Joined: Thu Aug 29, 2019 9:05 pm
Posts: 11
Location: France
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).


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 6:37 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8482
Location: Midwestern USA
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!


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 7:25 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10977
Location: England
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.

Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 2:13 pm 
Offline

Joined: Thu Apr 08, 2021 4:53 am
Posts: 4
I think that my 6502 it's fake because the letters of the top were make with laser.


Attachments:
Screenshot_20210408-091552.png
Screenshot_20210408-091552.png [ 3.41 MiB | Viewed 1288 times ]
MOS_6502AD_4585_top.jpg
MOS_6502AD_4585_top.jpg [ 19.57 KiB | Viewed 1291 times ]


Last edited by sprx128 on Thu Apr 08, 2021 2:19 pm, edited 1 time in total.
Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 2:18 pm 
Offline

Joined: Thu Apr 08, 2021 4:53 am
Posts: 4
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
Screenshot_20210408-091552.png [ 3.41 MiB | Viewed 1289 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 2:20 pm 
Offline

Joined: Thu Apr 08, 2021 4:53 am
Posts: 4
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?


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 3:24 pm 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
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)


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 3:33 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8539
Location: Southern California
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?


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 5:06 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10977
Location: England
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.


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 5:13 pm 
Offline

Joined: Sat Jan 02, 2016 10:22 am
Posts: 197
Is there any info, printed or in the molding on the under side ?


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 5:50 pm 
Offline

Joined: Thu Aug 29, 2019 9:05 pm
Posts: 11
Location: France
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.


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 08, 2021 6:47 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8482
Location: Midwestern USA
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!


Top
 Profile  
Reply with quote  
PostPosted: Sat Apr 10, 2021 4:57 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8539
Location: Southern California
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:
Attachment:
74xx14RCosc.gif
74xx14RCosc.gif [ 5.23 KiB | Viewed 1183 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?


Top
 Profile  
Reply with quote  
PostPosted: Sat Apr 10, 2021 6:55 am 
Online

Joined: Tue Sep 03, 2002 12:58 pm
Posts: 336
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

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: