Identifying what 6502s from Aliexpress really are
Identifying what 6502s from Aliexpress really are
Usually I have quite good experience with vintage electronic parts bought on Aliexpress. They work as they should.
Unfortunately there is also a negative aspect - chips are usually "refurbished" by sanding off original descriptions and applying new ones, to make chips look "brand new". So in fact you can never be sure if your MOS6502 is genuine MOS part, some compatible CPU by other manufacturer or completely different DIP40 chip. Usually I do not mind as long they work properly, but today I encountered weird situation.
Some time ago I've ordered dozen of 6502 on Aliexpress. Package arrived today. I tried to test them with my homemade computer, which works fine with different 6502 (albo bought on Aliexpress). I put first chip in the socket and for a moment it looked like it was running fine. It showed cold/warm boot message and executed EhBasic. So it was running 6502 code. Unfortunately just one moment later some error message from EhBasic had been printed and since then I wasn't able to run it once again. Even after reset or power cycle nothing happened. I've tried several other chips from the same order, but with no luck - EhBasic didn't run. After putting original CPU everything went back to normal.
Normally I would simply assume that chips are fake - completely different parts with fake designations, having nothing in common with 6502. I would, but one of them was able to run 6502 code for one brief moment.
So maybe they are some counterparts from different manufacturer, with slightly different application. Maybe some pin is left not pulled up or down and because of thet CPU can;t maintain stable operation? Is it possible?
Chips are described as:
"MOS
6502AD
4210"
Unfortunately there is also a negative aspect - chips are usually "refurbished" by sanding off original descriptions and applying new ones, to make chips look "brand new". So in fact you can never be sure if your MOS6502 is genuine MOS part, some compatible CPU by other manufacturer or completely different DIP40 chip. Usually I do not mind as long they work properly, but today I encountered weird situation.
Some time ago I've ordered dozen of 6502 on Aliexpress. Package arrived today. I tried to test them with my homemade computer, which works fine with different 6502 (albo bought on Aliexpress). I put first chip in the socket and for a moment it looked like it was running fine. It showed cold/warm boot message and executed EhBasic. So it was running 6502 code. Unfortunately just one moment later some error message from EhBasic had been printed and since then I wasn't able to run it once again. Even after reset or power cycle nothing happened. I've tried several other chips from the same order, but with no luck - EhBasic didn't run. After putting original CPU everything went back to normal.
Normally I would simply assume that chips are fake - completely different parts with fake designations, having nothing in common with 6502. I would, but one of them was able to run 6502 code for one brief moment.
So maybe they are some counterparts from different manufacturer, with slightly different application. Maybe some pin is left not pulled up or down and because of thet CPU can;t maintain stable operation? Is it possible?
Chips are described as:
"MOS
6502AD
4210"
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Identifying what 6502s from Aliexpress really are
Link to Ed's topic, "Bargain chips bought online - buyer beware!": viewtopic.php?f=12&t=5946
Link to our sticky topic "65xx parts sources, genuine and fake": viewtopic.php?f=1&t=1953
Link to our sticky topic "65xx parts sources, genuine and fake": viewtopic.php?f=1&t=1953
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Identifying what 6502s from Aliexpress really are
Atlantis wrote:
Maybe some pin is left not pulled up or down and because of thet CPU can;t maintain stable operation? Is it possible?
Have a look to see what attaches to pin 36 on the CPU socket.
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Identifying what 6502s from Aliexpress really are
Atlantis wrote:
4210
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Identifying what 6502s from Aliexpress really are
There are a number of different hardware variants in the 6502 family, each with slightly different pinouts and auxiliary functionality - most famously the cut-down 28-pin 6504 and 6507, but also some full-fat 40-pin versions. The modern W65C02S is *mostly* a superset of these, but…
Consider the humble BBC Micro. It uses an NMOS 6502, right? Correct. The later BBC Master uses a 65C02, right? Wrong. Examining the above photo of an expanded Master Turbo, you should be able to find two CPUs. The one on the actual motherboard belongs to the Master proper - it's a 65SC12, lacking both the Rockwell instructions, a RDY input, and a Phi1 clock output - but unlike a 6502, it does have a Data Bus Enable pin, which might save you an octal transceiver in some applications. And the one on the daughterboard front and centre is a 65C102, which take a quadrupled clock and produces a quadrature clock for you, convenient for high-performance DRAM interfacing, as this 4MHz internal Second Processor card does. As proof, there's a 16MHz crystal visible.
In the NMOS family, there's also the 6512 which requires Phi1 as an input. Normally it's produced as an output (and many SBCs happily ignore it).
For a quick diagnosis, the good old NOP generator might be a good idea. Refer to the WDC datasheet, and make sure all inputs for the WDC part are correctly provided. Your chips should all do something recognisable with that. Then look for signals *not* provided by your SBC but required by the WDC part. Finally, check the cheat sheet below to see if there's a chip that lacks a signal your SBC relies on, or handles so much differently that things may be going very wrong.
Consider the humble BBC Micro. It uses an NMOS 6502, right? Correct. The later BBC Master uses a 65C02, right? Wrong. Examining the above photo of an expanded Master Turbo, you should be able to find two CPUs. The one on the actual motherboard belongs to the Master proper - it's a 65SC12, lacking both the Rockwell instructions, a RDY input, and a Phi1 clock output - but unlike a 6502, it does have a Data Bus Enable pin, which might save you an octal transceiver in some applications. And the one on the daughterboard front and centre is a 65C102, which take a quadrupled clock and produces a quadrature clock for you, convenient for high-performance DRAM interfacing, as this 4MHz internal Second Processor card does. As proof, there's a 16MHz crystal visible.
In the NMOS family, there's also the 6512 which requires Phi1 as an input. Normally it's produced as an output (and many SBCs happily ignore it).
For a quick diagnosis, the good old NOP generator might be a good idea. Refer to the WDC datasheet, and make sure all inputs for the WDC part are correctly provided. Your chips should all do something recognisable with that. Then look for signals *not* provided by your SBC but required by the WDC part. Finally, check the cheat sheet below to see if there's a chip that lacks a signal your SBC relies on, or handles so much differently that things may be going very wrong.
Re: Identifying what 6502s from Aliexpress really are
Dr Jefyll wrote:
Yup. For example, perhaps the CPU's you bought are newer ones that use pin 36 as a Bus Enable input (which needs to be pulled high) but your computer has no connection to pin 36 on the CPU socket because it was designed to use older CPU's such as NMOS 6502 or Rockwell 65C02.
I tried to put it into my other design, utilizing WDC CPU. It also didn't work.
Is there some other variant? Normally I'd ignore it coming to the conclusion that chips are completely different parts, relabeled as 6502s. But one of them was able to briefly run 6502 code...
BigDumbDinosaur wrote:
A 2010 date code wouldn't be valid for an NMOS part.
Also: chips came stacked up on each other and wrapped in packing foil. Is it very likely that they were damaged during packing/unpacking, by the static discharge?
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Identifying what 6502s from Aliexpress really are
Chromatix wrote:
For a quick diagnosis, the good old NOP generator might be a good idea. Refer to the WDC datasheet, and make sure all inputs for the WDC part are correctly provided. Your chips should all do something recognisable with that. Then look for signals *not* provided by your SBC but required by the WDC part. Finally, check the cheat sheet below to see if there's a chip that lacks a signal your SBC relies on, or handles so much differently that things may be going very wrong.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Identifying what 6502s from Aliexpress really are
Yes, I'd say that's a likely candidate for those symptoms. As well as the WDC parts, my cheat sheet says it's on the '102 and '112 parts; where the "bus tristate" column contains "address & data".
If you can't figure it out, or find that those chips work but are somehow useless for you, I'll gladly take them off your hands for use in my 6502 Fake Finder project. I'm going to need test cases, after all!
If you can't figure it out, or find that those chips work but are somehow useless for you, I'll gladly take them off your hands for use in my 6502 Fake Finder project. I'm going to need test cases, after all!
Re: Identifying what 6502s from Aliexpress really are
Chromatix wrote:
... the Master proper - it's a 65SC12, lacking both the Rockwell instructions, a RDY input, and a Phi1 clock output ...
Re: Identifying what 6502s from Aliexpress really are
BigEd wrote:
Hmm, I see there are sources which say the 65CSC12 lacks RDY, but it's there on the schematic of the Master! And it works for both read and write cycles, so (IIRC) the Master doesn't need the clock stretching that the Beeb uses.
http://archive.6502.org/datasheets/cmd_ ... family.pdf
Specifically, table 1 on the first page is inconsisent with the later pinouts, which indicate RDY present on all devices.
Dave
Re: Identifying what 6502s from Aliexpress really are
Is it possible to design some "universal" CPU board, which would be able to support any member of 6502 family?
I would like to modify my CPU board design by adding some jumpers of dip switches, to test different processors. Which pins are common for all 6502 CPUs an which differ in function somehow?
I would like to modify my CPU board design by adding some jumpers of dip switches, to test different processors. Which pins are common for all 6502 CPUs an which differ in function somehow?
Re: Identifying what 6502s from Aliexpress really are
The humble Throw-Together Computer is built to accept different 65xx processors. Though not completely "universal" it does support the '816, the WDC version of the 'C02 and the original NMOS 6502 (whose pinout is the same as older C02's such as Rockwell). Perhaps you'll find this diagram from my notes helpful.
A red dot shows where a pin's function varies from that of its counterparts. (In some cases WDC has assigned new names even though the function remains the same.) The notations in blue show what the TTC motherboard attaches to each specific pin.
Although RDY (pin 2) is unused I gave it a pullup, rather than tying it straight to VCC. That's to protect WDC CPU's, which sometimes drive RDY low.
-- Jeff
A red dot shows where a pin's function varies from that of its counterparts. (In some cases WDC has assigned new names even though the function remains the same.) The notations in blue show what the TTC motherboard attaches to each specific pin.
Although RDY (pin 2) is unused I gave it a pullup, rather than tying it straight to VCC. That's to protect WDC CPU's, which sometimes drive RDY low.
-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: Identifying what 6502s from Aliexpress really are
The 6502 Fake Finder is effectively a simple SBC with universal 40-pin 65xx support. The hard parts are the NMOS 6512 (the only one to require a Phi1 input), and supporting both the '816 and the '102 variant - as the '816 doesn't have a Phi2 output, but on everything else it's the most reliable way to adapt the bus timing to the possibility of encountering a '102. I figured out a way to do this with two jumpers and a small number of passive components; I figure the 6512 and '816 will be rare enough on the Chinese fakes market that you can leave them set for a standard 6502, most of the time.
This approach works because many of the pins and signals are indeed common across the 65xx family, enough to boot the machine and interface it to RAM, ROM and basic I/O devices. The rest can be tied off to safe input values where necessary, or ignored as outputs. I don't completely ignore the unused outputs though, but wire them through a multiplexer to a pair of shift registers and the input port of a 6522 VIA. By sampling a time history of those signals while executing a known instruction sequence, I can distinguish between all of the models listed in my cheat-sheet.
This approach works because many of the pins and signals are indeed common across the 65xx family, enough to boot the machine and interface it to RAM, ROM and basic I/O devices. The rest can be tied off to safe input values where necessary, or ignored as outputs. I don't completely ignore the unused outputs though, but wire them through a multiplexer to a pair of shift registers and the input port of a 6522 VIA. By sampling a time history of those signals while executing a known instruction sequence, I can distinguish between all of the models listed in my cheat-sheet.
Re: Identifying what 6502s from Aliexpress really are
I had some free time last evening, so I testem entire batch of ordered 6502 CPUs. Out of a dozen only one works perfectly fine with my computer. I left it running simply BASIC code for night and it was still running in the morning.
I am not quite sure what to think about the rest of them. Normally I'd simply assume they are damaged, if not the aforementioned situation with one of them working for a short while.
Anyway, I've ordered ten more from different seller. I hope this time I will have more luck...
I am not quite sure what to think about the rest of them. Normally I'd simply assume they are damaged, if not the aforementioned situation with one of them working for a short while.
Anyway, I've ordered ten more from different seller. I hope this time I will have more luck...
Re: Identifying what 6502s from Aliexpress really are
Atlantis wrote:
Out of a dozen only one works perfectly fine with my computer.
I'd chuck each CPU into a breadboard wired up with NOP pull-ups/downs on the data bus. You'll need to pull up the interrupt pins, etc., too, and make sure you both have plenty enough power to run an NMOS chip (200 mA or more should be fine, since you won't have any memory or I/O chips), and that you have a full 5 V or very close to it on the Vcc pin. (Also make sure you use bypass caps somewhere near each power pin.) Clock the chips at 800 kHz - 1 MHz. After bringing /RESET low than high again, see if the address bus is counting up as expected. (You should see a 500 kHz square wave on A0, 250 kHz on A1, etc.)
I've got six used "R65C02" CPUs from various vendors (including at least four from AliExpress), and of those fully half of them are actually relabeled 1 MHz NMOS parts.
Curt J. Sampson - github.com/0cjs