It begins! (Wren Prototype build log)

Building your first 6502-based project? We'll help you get started here.
gfoot
Posts: 871
Joined: 09 Jul 2021

Re: It begins! (Wren Prototype build log)

Post by gfoot »

That's great, it's always good when things work in the end!

I'd suggest also running a full RAM test, to check you can write and read all RAM locations without corrupting others. You could also consider running the Dormann test site, which I only started using recently, but which has already caught a few failures in my systems.
User avatar
drogon
Posts: 1671
Joined: 14 Feb 2018
Location: Scotland
Contact:

Re: It begins! (Wren Prototype build log)

Post by drogon »

allisonlastname wrote:
IT'S ALIVE!
Well done!

-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
User avatar
allisonlastname
Posts: 88
Joined: 06 Mar 2023
Location: UK
Contact:

Re: It begins! (Wren Prototype build log)

Post by allisonlastname »

Strange issue: the RAM doesn't seem to be accepting write cycles. I've checked the connections and they're all correct, so I have no idea what could be going wrong.
probably the youngest person on this forum
No True Scotsman
Posts: 127
Joined: 22 Mar 2023

Re: It begins! (Wren Prototype build log)

Post by No True Scotsman »

Is it still the same circuit as posted here?
allisonlastname wrote:
Here's the current version that I have on the breadboard.
output.pdf
User avatar
allisonlastname
Posts: 88
Joined: 06 Mar 2023
Location: UK
Contact:

Re: It begins! (Wren Prototype build log)

Post by allisonlastname »

Yes.
probably the youngest person on this forum
User avatar
and3rson
Posts: 163
Joined: 17 Feb 2023
Location: Lviv, Ukraine
Contact:

Re: It begins! (Wren Prototype build log)

Post by and3rson »

allisonlastname wrote:
Strange issue: the RAM doesn't seem to be accepting write cycles. I've checked the connections and they're all correct, so I have no idea what could be going wrong.
The schematic seems to have no issues to me. Maybe double-check NAND wiring (U5A & U5D)? Do you have a logic analyzer? If so - you could check if RAM's /CS & /WE are properly asserted during RAM write cycles.

EDIT: Are you using decoupling capacitors? I don't see any on your schematic nor on the breadboard. To quote BDD:
BigDumbDinosaur wrote:
Each device should be paired with a bypass (aka decoupling) capacitor. Time and time again, we have seen unstable or DOA designs that were victims of nothing more than inadequate or non-existing bypassing. Typical practice places a 0.1µF ceramic (MLCC) capacitor so it is as physically close to the device's VCC pin as possible. Capacitor connections should be as short and direct as possible. I use 50 volt, X7R capacitors in my builds. Bypass capacitors are cheap, don't be shy about using them. :D
I even like to squeeze them right under the chips - it saves a lot of space and allows the traces to run under the capacitor (especially when doing PCB designs):
cap.jpg
BigDumbDinosaur wrote:
and3rson wrote:
Just wondering - is there a reason why you're pulling /RST high? DS1813 should work just fine without it.

The pullup inside the DS1813 is weak.  An external pullup makes the circuit a lot less noise-sensitive.
I actually found its weak pull-up to be a very helpful indicator that I forgot to add capacitors near power-hungry components. :) In my case, ESP-01 was often triggering reset during WiFi reconnects, and this issue went away after I added an extra 10uF cap near it.
/Andrew

deck65 - 6502 slab with screen and keyboard | ПК-88 - SBC based on KM1810VM88 (Ukrainian i8088 clone) | leo80 - simple Z80 SBC
nice65 - 6502 assembly linter | My parts, footprints & 3D models for KiCad/FreeCAD
User avatar
allisonlastname
Posts: 88
Joined: 06 Mar 2023
Location: UK
Contact:

Re: It begins! (Wren Prototype build log)

Post by allisonlastname »

and3rson wrote:
The schematic seems to have no issues to me. Maybe double-check NAND wiring (U5A & U5D)? Do you have a logic analyzer? If so - you could check if RAM's /CS & /WE are properly asserted during RAM write cycles.

EDIT: Are you using decoupling capacitors? I don't see any on your schematic nor on the breadboard.
I'm single-cycling it using an arduino, and by poking the board with an LED I can see that /CE and /WE are behaving correctly. There are some decoupling caps on the board, but they might be hard to see because they're only little 100nf ceramic ones.
probably the youngest person on this forum
Paganini
Posts: 516
Joined: 18 Mar 2022

Re: It begins! (Wren Prototype build log)

Post by Paganini »

When you checked the wiring, did you look at VCC and GND too? If you happen to be using those little jumpers shaped like staples it's really easy to get them off by one row and accidentally leave (e.g.) your RAM's power pin floating. This sort of thing can be frustratingly pernicious, and can be pretty tough to spot (at least by my middle-aged vision) without a magnifier of some type.
"The key is not to let the hardware sense any fear." - Radical Brad
User avatar
allisonlastname
Posts: 88
Joined: 06 Mar 2023
Location: UK
Contact:

Re: It begins! (Wren Prototype build log)

Post by allisonlastname »

There's 4.98V between Vcc and ground on the RAM chip, which is well within limits according to the datasheet.
probably the youngest person on this forum
User avatar
allisonlastname
Posts: 88
Joined: 06 Mar 2023
Location: UK
Contact:

Re: It begins! (Wren Prototype build log)

Post by allisonlastname »

Ok, I've tested the RAM chip by false-feeding it on a separate breadboard, and no matter what I do I can't make it accept writes properly. I also tested a few others I got in the same order, and all of those exhibited the same behaviour. I find it hard to believe that all of them were dead on arrival, but it seems to be the only explanation.
probably the youngest person on this forum
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: It begins! (Wren Prototype build log)

Post by GARTHWILSON »

allisonlastname wrote:
Ok, I've tested the RAM chip by false-feeding it on a separate breadboard, and no matter what I do I can't make it accept writes properly. I also tested a few others I got in the same order, and all of those exhibited the same behaviour. I find it hard to believe that all of them were dead on arrival, but it seems to be the only explanation.
These things are hard to troubleshoot at a distance.  Where did you get them?  I will comment that I have never gotten a defective IC from a legitimate distributor; and I've been responsible for probably millions of ICs at work.  However, see the links in the second paragraph in our sticky topic at viewtopic.php?f=1&t=1953, about China's counterfeit IC market.  Also, how are you handling them?  Any MOS (CMOS, NMOS, PMOS, etc. silicon is vulnerable to damage from static discharge; so you should exercise adequate anti-static handling precautions when you're building.  I still suspect some simple forehead-slapper error that you'll eventually find.
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
allisonlastname
Posts: 88
Joined: 06 Mar 2023
Location: UK
Contact:

Re: It begins! (Wren Prototype build log)

Post by allisonlastname »

I got them from Mouser. And yeah, it probably is a stupid error, but I can't think what. I've triple-checked all the pins and run it with false-fed signals and it still doesn't work.
probably the youngest person on this forum
User avatar
Michael
Posts: 633
Joined: 13 Feb 2013
Location: Michigan, USA

Re: It begins! (Wren Prototype build log)

Post by Michael »

Not sure what your flash programmer looks like but you might use that with minor hardware/software modifications to test your RAM chips...
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: It begins! (Wren Prototype build log)

Post by GARTHWILSON »

allisonlastname wrote:
I got them from Mouser. And yeah, it probably is a stupid error, but I can't think what. I've triple-checked all the pins and run it with false-fed signals and it still doesn't work.
Mouser is definitely a legitimate distributor, so no worries there.  I have no doubt that the parts were all good when they arrived at your house.  After some more head-banging, you'll be telling us what you figured out, and that you got it working.  In the mean time, maybe spending a few days away from it will result in your coming back to it with fresh eyes that see something you didn't catch earlier when you were only seeing what you were expecting to see, or you'll think of something you didn't earlier when you got tunnel-visioned.
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
Dr Jefyll
Posts: 3525
Joined: 11 Dec 2009
Location: Ontario, Canada
Contact:

Re: It begins! (Wren Prototype build log)

Post by Dr Jefyll »

allisonlastname wrote:
no matter what I do I can't make it accept writes properly
Just a reminder that you won't know if a write was successful unless you're capable of doing a successful read. IOW, don't be too sure it's the write that's failing.

I agree with Garth. You might find some new insight after setting the problem aside for a while. (Also, do the reads and writes achieve the appropriate levels noted for reads and writes in the data sheet's Truth Table? Just checking!)

-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Post Reply