Strange memory write problems
- floobydust
- Posts: 1394
- Joined: 05 Mar 2013
Re: Strange memory write problems
Just to chime in... attached is a pic of an old CPU only (2-layer) PCB I did over a decade ago. The actual design dates back to the 80's... but it's quite similar to what you have. 7400, 7430, 74138, RAM, ROM, CPU. The layout is compact and there's a 30-pin dual header for attaching I/O.
I built up 3 of these with an I/O board that uses a 65C22 and 65C51... I've run them at 4MHz without issue (with a Rockwell R65C51P4). I've also used the same Alliance memory on this board along with both 74HCT and 74HC logic chips without issues. The full design is on my github.
It's still quite odd that you're having such problems. The design is almost identical and I've never had a single issue... go figure.
I built up 3 of these with an I/O board that uses a 65C22 and 65C51... I've run them at 4MHz without issue (with a Rockwell R65C51P4). I've also used the same Alliance memory on this board along with both 74HCT and 74HC logic chips without issues. The full design is on my github.
It's still quite odd that you're having such problems. The design is almost identical and I've never had a single issue... go figure.
Regards, KM
https://github.com/floobydust
https://github.com/floobydust
-
adrianhudson
- Posts: 169
- Joined: 30 Apr 2022
- Location: Devon. UK
- Contact:
Re: Strange memory write problems
floobydust wrote:
Just to chime in... attached is a pic of an old CPU only (2-layer) PCB I did over a decade ago.
floobydust wrote:
It's still quite odd that you're having such problems. The design is almost identical and I've never had a single issue... go figure.
-
adrianhudson
- Posts: 169
- Joined: 30 Apr 2022
- Location: Devon. UK
- Contact:
Re: Strange memory write problems
Quick question.
I'm just finishing the glue logic wiring. On my schematic I have drawn the CS1 pins of my VIAs (and CS0 of my ACIAs) as pulled high to 5V - no resistor. Is this okay or should I really connect ALL pulled high signals via resistors? Do they have their own current limiting resistors internally?
Thanks!
I'm just finishing the glue logic wiring. On my schematic I have drawn the CS1 pins of my VIAs (and CS0 of my ACIAs) as pulled high to 5V - no resistor. Is this okay or should I really connect ALL pulled high signals via resistors? Do they have their own current limiting resistors internally?
Thanks!
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Strange memory write problems
adrianhudson wrote:
I'm just finishing the glue logic wiring. On my schematic I have drawn the CS1 pins of my VIAs (and CS0 of my ACIAs) as pulled high to 5V - no resistor. Is this okay or should I really connect ALL pulled high signals via resistors? Do they have their own current limiting resistors internally?
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?
-
adrianhudson
- Posts: 169
- Joined: 30 Apr 2022
- Location: Devon. UK
- Contact:
Re: Strange memory write problems
Thanks Garth. Did you mean "unused" I was talking about CS0 on the 65C51 or CS1 on the 65C22. Not so much unused as pulled to logic 1. I am selecting thise devices with just CS1B and CS2B respectively.
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Strange memory write problems
I meant unused in the sense that you're not connecting it to an output from something else. The ACIA or VIA definitely takes the logic state into account to determine when it's being selected and de-selected though. The fact that these have more than one select input allows you to simplify your address-decode logic.
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?
-
adrianhudson
- Posts: 169
- Joined: 30 Apr 2022
- Location: Devon. UK
- Contact:
Re: Strange memory write problems
Thank you Garth
-
adrianhudson
- Posts: 169
- Joined: 30 Apr 2022
- Location: Devon. UK
- Contact:
Re: Strange memory write problems
I have completed my rebuild.
It works.
I don't (yet) have theory why it works - or rather, why the old one didn't.
The old one worked with a Rockwell 65C02 so its wiring was correct as per the schematic. It did'nt work with the WDC 65C02.
This one works and is steady as a rock. It has run a memory test program for 48 hours now.
I will think about it some more and post my thoughts soon.
EDIT: I may have found the issue. I made one change in the new build. I replaced the Alliance AS 6C62256 RAM chip with a Samsung KM62256CLP-7L which as far as I can see is pretty much identical in spec. This is the one that has just undergone 48 hrs testing.If I replace it with the Alliance chip, I get errors. I have two other Alliance chips, all the same - 6C62256 - various levels of crash.
I can't determine if it is timing problems or all three Alliance chips are damaged. I will make a ram tester with some breadboard and an Arduino when I get a moment.
Thank you once again for all the help and thoughts from everyone.
It works.
I don't (yet) have theory why it works - or rather, why the old one didn't.
The old one worked with a Rockwell 65C02 so its wiring was correct as per the schematic. It did'nt work with the WDC 65C02.
This one works and is steady as a rock. It has run a memory test program for 48 hours now.
I will think about it some more and post my thoughts soon.
EDIT: I may have found the issue. I made one change in the new build. I replaced the Alliance AS 6C62256 RAM chip with a Samsung KM62256CLP-7L which as far as I can see is pretty much identical in spec. This is the one that has just undergone 48 hrs testing.If I replace it with the Alliance chip, I get errors. I have two other Alliance chips, all the same - 6C62256 - various levels of crash.
I can't determine if it is timing problems or all three Alliance chips are damaged. I will make a ram tester with some breadboard and an Arduino when I get a moment.
Thank you once again for all the help and thoughts from everyone.
Last edited by adrianhudson on Wed Nov 23, 2022 7:41 am, edited 1 time in total.
Re: Strange memory write problems
Glad to hear that you are successful. Also interested that you have had the same experience with the Alliance chips that I did in my reply on Nov7. It would be interesting to understand exactly why this is the case as you have 3 and I have 2 that would make us very skeptical of where and how to use them in future designs. It is also interesting that floobydust and plasmo have not noted these issues in their experience. My hardware skills are limited so I don't expect to solve this on my own but will follow any future discussion with interest.
Re: Strange memory write problems
Hi Adrian,
I'd love to see the wire wrap side of your completed working board!
I'd love to see the wire wrap side of your completed working board!
"The key is not to let the hardware sense any fear." - Radical Brad
Re: Strange memory write problems
adrianhudson wrote:
I can't determine if it is timing problems or all three Alliance chips are damaged.
You didn't mention whether the Alliance chips work properly when the TTL-compatible Rockwell CPU is in use... Might be interesting to try that if you haven't already. Just a suggestion...
-- 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: Strange memory write problems
adrianhudson wrote:
I will make a ram tester with some breadboard and an Arduino when I get a moment.
It would be interesting if the tester included a socket for a '245 transceiver on the RAM's data bus. Then you'd have the option to put either an 'HC245 or an 'HCT245 in there, and compare results. (You might find this idea preferable to swapping WDC vs Rockwell CPU's in your SBC... a process with which you understandably may've grown frustrated!)
Alternatively, you could 'scope the RAM's output levels while the test runs (presumably at fairly low frequency). I expect you'd get much cleaner traces than those taken from the SBC.
-- 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
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Strange memory write problems
Adding to Jeff's post: See his post at viewtopic.php?f=4&t=6594 which graphically shows the differences in signal voltage thresholds, and his subsequent posts at viewtopic.php?p=83609#p83609 and viewtopic.php?p=83654#p83654 .
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?
-
adrianhudson
- Posts: 169
- Joined: 30 Apr 2022
- Location: Devon. UK
- Contact:
Re: Strange memory write problems
Dr Jefyll wrote:
adrianhudson wrote:
I can't determine if it is timing problems or all three Alliance chips are damaged.
You didn't mention whether the Alliance chips work properly when the TTL-compatible Rockwell CPU is in use... Might be interesting to try that if you haven't already. Just a suggestion...
-- Jeff
Last edited by adrianhudson on Wed Nov 23, 2022 5:47 pm, edited 2 times in total.
-
adrianhudson
- Posts: 169
- Joined: 30 Apr 2022
- Location: Devon. UK
- Contact:
Re: Strange memory write problems
Paganini wrote:
Hi Adrian,
I'd love to see the wire wrap side of your completed working board!
I'd love to see the wire wrap side of your completed working board!