However, I *have* managed to unearth a WDC datasheet dated 1991, which *does* say so, as an erratum right at the end. I've attached a copy.
R65C02P4 fake chips
Re: R65C02P4 fake chips
GARTHWILSON wrote:
Something that would be good to test on the 816's: Early versions needed a NOP after REP and SEP above 4MHz. (I think that information came from the Eyes & Lichty manual, but I can't remember for sure.)
However, I *have* managed to unearth a WDC datasheet dated 1991, which *does* say so, as an erratum right at the end. I've attached a copy.
- Attachments
-
- WDCIS00025-1.pdf
- (4.25 MiB) Downloaded 215 times
- BigDumbDinosaur
- Posts: 9426
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: R65C02P4 fake chips
Chromatix wrote:
GARTHWILSON wrote:
Something that would be good to test on the 816's: Early versions needed a NOP after REP and SEP above 4MHz. (I think that information came from the Eyes & Lichty manual, but I can't remember for sure.)
However, I *have* managed to unearth a WDC datasheet dated 1991, which *does* say so, as an erratum right at the end. I've attached a copy.
Last edited by BigDumbDinosaur on Fri Jan 31, 2020 4:34 am, edited 1 time in total.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: R65C02P4 fake chips
If the SRAM has CMOS output drivers, it'll have no problem satisfying CMOS-style input thresholds.
I suspect that the modern WDC parts can also work with TTL inputs if they are put in a TTL system - and people *have* put a W65C02S in, for example a BBC Micro, with 74LS glue logic everywhere - but that timing margins are significantly worse in that case. In a 2MHz BBC Micro running at 5V, that's not noticeable.
One really amusing note is that the older datasheet lists the '816 and '802 as working down to as little as 1.2V, but only at 40kHz. Perfect for running off a single cell and a watch crystal. Someone should try that with the modern parts.
I suspect that the modern WDC parts can also work with TTL inputs if they are put in a TTL system - and people *have* put a W65C02S in, for example a BBC Micro, with 74LS glue logic everywhere - but that timing margins are significantly worse in that case. In a 2MHz BBC Micro running at 5V, that's not noticeable.
One really amusing note is that the older datasheet lists the '816 and '802 as working down to as little as 1.2V, but only at 40kHz. Perfect for running off a single cell and a watch crystal. Someone should try that with the modern parts.
- BigDumbDinosaur
- Posts: 9426
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: R65C02P4 fake chips
Dr Jefyll wrote:
gbm wrote:
If it executes 65C816 code and produces all those fancy 65C816 signals for cycle type and emulation mode identification, then it must be 65C816. Any other explanation of this phenomenon?
x86? We ain't got no x86. We don't NEED no stinking x86!
- BigDumbDinosaur
- Posts: 9426
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: R65C02P4 fake chips
Chromatix wrote:
If the SRAM has CMOS output drivers, it'll have no problem satisfying CMOS-style input thresholds.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: R65C02P4 fake chips
Chromatix wrote:
If the SRAM has CMOS output drivers, it'll have no problem satisfying CMOS-style input thresholds.
Chromatix wrote:
I suspect that the modern WDC parts can also work with TTL inputs if they are put in a TTL system - and people *have* put a W65C02S in, for example a BBC Micro, with 74LS glue logic everywhere
Bill
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: R65C02P4 fake chips
The 74xCT245 (74HCT245, 74ACT245, etc.) between the '816 and the system data bus make the thresholds irrelevant, as memory and other devices on the bus don't feed the '816 directly. The '245 is there to prevent bus contention with A16-A23 going into the '573, not give the '816 any additional drive strength (since it doesn't need any help anyway).
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: R65C02P4 fake chips
Interesting to score some '816 parts. It's worth noting that out-of-spec, failed, or rather old parts could turn up on these markets. If it seems to work in a given application, that sounds good to me. If it then fails to work in some other application, I wouldn't be too surprised. Don't go building medical equipment from such sources!
It is of course wrong to expect to get pristine chips from such sources, but I don't suppose anyone is expecting that. If you're inclined to want the genuine article, you know that you need to pay full price from a reputable channel.
It is of course wrong to expect to get pristine chips from such sources, but I don't suppose anyone is expecting that. If you're inclined to want the genuine article, you know that you need to pay full price from a reputable channel.
Re: R65C02P4 fake chips
BigDumbDinosaur wrote:
I too am skeptical. Try as I might, I see nothing in the test code that would conclusively prove the device under test is a genuine '816.
The screens below show EOR [83] and mode switching (see EMX letters changing case) with 24-bit addresses and 16-bit data. Hope this will convince you.
Another interesting point: the X mode output changes during the fetch of the next instruction after REP, so even if the CPU is already switched to 24-bit addressing, it doesn't say so. M output changes during the last cycle of REP - correctly. NOPs following mode switch seem to be a good idea regardless of timing issues.
And no, I will definitely NOT design any medical equipment using any 65xx.
Re: R65C02P4 fake chips
One could simply put a scope on pin-3. If it's any kind of 6502 you'd see a clock signal there. If it's a 65816 you won't.
Bill
- BigDumbDinosaur
- Posts: 9426
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: R65C02P4 fake chips
BillO wrote:
One could simply put a scope on pin-3. If it's any kind of 6502 you'd see a clock signal there. If it's a 65816 you won't.
gbm wrote:
NOPs following mode switch seem to be a good idea regardless of timing issues.
BigEd wrote:
Interesting to score some '816 parts. It's worth noting that out-of-spec, failed, or rather old parts could turn up on these markets.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: R65C02P4 fake chips
Okay, question for my own purposes: is there a difference in the behaviour of the MX signal between the old 65816 and the current one? Running the same code sequence on a genuine current '816 and carefully sampling the signal should answer that question. It's a test I can incorporate into the 6502 Fake Finder, if there is indeed a detectable difference.
Re: R65C02P4 fake chips
BigDumbDinosaur wrote:
BillO wrote:
One could simply put a scope on pin-3. If it's any kind of 6502 you'd see a clock signal there. If it's a 65816 you won't.
Bill
Re: R65C02P4 fake chips
gbm wrote:
I don't know of any other 65xx chip which outputs VPB, VDA and VPA signals, and without these it would not be possible to decode the cycle type info.
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: R65C02P4 fake chips
On another subject, the sad truth is that increasing numbers of modern 5 volt CMOS devices (example: many RAMs, and at least one CPLD I'm aware of) do not produce rail-to-rail voltage swings on their outputs. The logic high falls short of Vcc (even short of a valid CMOS logic high, as BDD noted).
That may seem absurd -- after all, the C in CMOS means complementary! But the effect is as if the chip's internal Vcc is somewhat lower than the +5 that arrives from the outside world. And indeed that may actually be the case.
Somewhere (here on this forum?) I heard an explanation which seems plausible although I can't verify it. Modern geometries are smaller than those used in legacy 5 volt stuff, and smaller translates to more cost-effective for the manufacturer. But modern geometries are also low voltage, 3.3 volt for instance. So, nowadays manufacturers are in some cases supplying the 5V market with chips that operate at a lower supply voltage internally. It's trivially easy to make the inputs 5-volt tolerant. The outside world won't "notice" this aspect of low-voltage operation. But with outputs it's a different story.
Does anyone have authoritative details on this? The datasheets don't explain reasons, of course. But they do tell us not to expect symmetrical (ie, rail-to-rail) voltage swings on the outputs.
-- Jeff
That may seem absurd -- after all, the C in CMOS means complementary! But the effect is as if the chip's internal Vcc is somewhat lower than the +5 that arrives from the outside world. And indeed that may actually be the case.
Somewhere (here on this forum?) I heard an explanation which seems plausible although I can't verify it. Modern geometries are smaller than those used in legacy 5 volt stuff, and smaller translates to more cost-effective for the manufacturer. But modern geometries are also low voltage, 3.3 volt for instance. So, nowadays manufacturers are in some cases supplying the 5V market with chips that operate at a lower supply voltage internally. It's trivially easy to make the inputs 5-volt tolerant. The outside world won't "notice" this aspect of low-voltage operation. But with outputs it's a different story.
Does anyone have authoritative details on this? The datasheets don't explain reasons, of course. But they do tell us not to expect symmetrical (ie, rail-to-rail) voltage swings on the outputs.
-- 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