A simple 6502 computer (doesn't work though)

For discussing the 65xx hardware itself or electronics projects.
jgroth
Posts: 60
Joined: 15 Sep 2016
Location: UK

Re: A simple 6502 computer (doesn't work though)

Post by jgroth »

Chromatix wrote:
Clearly the correct operation of zero-page and the stack page is the most critical. Without them, a significant proportion of 6502 opcodes become useless. But I think we can now assume that the VIA and ROM are working correctly.
Your code is on my list to try out.
LIV2
Posts: 173
Joined: 12 Feb 2014
Location: Sweden

Re: A simple 6502 computer (doesn't work though)

Post by LIV2 »

If the RAM is known to be good in another system then that just leaves something like a bad/incorrect connection. if the circuit is configured as per the diagram it should be working
Chromatix
Posts: 1462
Joined: 21 May 2018

Re: A simple 6502 computer (doesn't work though)

Post by Chromatix »

Yes, I had that in mind when writing the test code. You'll notice that there's a write to the VIA between filling the RAM with test values and verifying those values, which should catch cases where the decode is incorrect.
User avatar
floobydust
Posts: 1394
Joined: 05 Mar 2013

Re: A simple 6502 computer (doesn't work though)

Post by floobydust »

Despite having a fair number of bypass caps on your prototyping breadboard, I would suggest placing a 0.1uF directly at the SRAM chip to pins 14 and 28. I would also note that there's other differences between your implementation and Garth's original schematic. On U3b, move pin 5 directly to +5V and also use the PHI2 out on the CPU to drive U3a pin 1 and the 65C22 clk line. All are simple changes.

Lastly, I would also look to meter all of the lines for the SRAM to ensure your don't have any intermittent or bad lines between the SRAM and the CPU.
jgroth
Posts: 60
Joined: 15 Sep 2016
Location: UK

Re: A simple 6502 computer (doesn't work though)

Post by jgroth »

So I finally found out what's wrong with the circuit. The quality of that breadboard was so bad that the VIA didn't get high enough voltage to register a one although I did measure it and it looked OK. When I changed the breadboards to Global Specialities ones everything just started to work. :P So moved on replacing the 74XX00 with an ATF22V10 GAL and that works just fine as well. So my next SBC will have a GAL as an address decoder instead of a Lattice MACH4A.
All's well that ends well.
BTW the old breadboards have been binned, any prototyping will hereinafter be done with GS breadboards.
Chromatix
Posts: 1462
Joined: 21 May 2018

Re: A simple 6502 computer (doesn't work though)

Post by Chromatix »

Ah, the joys of dynamic versus static behaviour. You have no idea how much I have to explain to people who *should* know better that transient behaviour sometimes matters more than the steady state.
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: A simple 6502 computer (doesn't work though)

Post by BigDumbDinosaur »

jgroth wrote:
So moved on replacing the 74XX00 with an ATF22V10 GAL...
What did you use to program the ATF22V10?
x86?  We ain't got no x86.  We don't NEED no stinking x86!
jgroth
Posts: 60
Joined: 15 Sep 2016
Location: UK

Re: A simple 6502 computer (doesn't work though)

Post by jgroth »

BigDumbDinosaur wrote:
jgroth wrote:
So moved on replacing the 74XX00 with an ATF22V10 GAL...
What did you use to program the ATF22V10?
I used an XGecu PRO TL866II plus, that is the original programmer and not a clone.
xgecuprotl866iiplus.jpg
xgecuprotl866iipluslabel.jpg
Post Reply