6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 16, 2024 8:42 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: At last!
PostPosted: Mon Jan 05, 2015 10:56 pm 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
Hi guys

It's been a while since I last posted regarding my first 6502 project. I previously managed to breadboard and then do a soldered design for a simple 65C02S CPU, 32K SRAM, 32K ROM, and 65C22S VIA setup. Unfortunately, I ran into bus stability issues -especially when interfacing with the VIA- with the soldered version. Despite a lot of helpful advice from here and me spending a lot of time trying to diagnose the PCB, I couldn't get the wretched thing to behave.

I've now finished the wirewrap version ... and it works! I can reliably write to and read back from RAM, run instructions and set the VIA port A to output a bit pattern.

Here are a few pics (see below).
Many thanks to all the guys who helped me months back with advice and also for the excellent documentation on this website/these forums :)


Attachments:
IMG_3227.JPG
IMG_3227.JPG [ 241.47 KiB | Viewed 835 times ]
IMG_3235.JPG
IMG_3235.JPG [ 152.28 KiB | Viewed 836 times ]
IMG_3232.JPG
IMG_3232.JPG [ 159.93 KiB | Viewed 836 times ]
IMG_3221.JPG
IMG_3221.JPG [ 171.96 KiB | Viewed 836 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: At last!
PostPosted: Mon Jan 05, 2015 11:01 pm 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
BTW the extra PCB with the LEDs on it is a (very crude!) bus monitor outputting A0-15, D0-7, /RAM select, /ROM select, /VIA select. All LEDs are current limited to draw 1-2mA each


Top
 Profile  
Reply with quote  
 Post subject: Re: At last!
PostPosted: Mon Jan 05, 2015 11:15 pm 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
Here's the very basic test code I used first for testing RAM and then for VIA:

RAM check
Code:
' setting up the reset vector. no need for IRQ/NMI handling for this test so
' don't bother with that

' address to se the vectors to
resetV=&F000
irqV=&EF00

' set the IRQ vector address
P%=&FFFE
EQUW irqV

' set the RESET vector address
P%=&FFFC
EQUW resetV

' IRQ handler
P%=irqV
RTI

' Main code
P%=resetV
LDX#&FF
TXS
SEI
CLD

.loop
LDA#&AA
STA &1918
LDA &1918
JMP loop



65C22S VIA test (port A output):
Code:
' setting up the reset vector. no need for IRQ/NMI handling for this test so
' don't bother with that

' address to se the vectors to
resetV=&F000
irqV=&EF00

' set the IRQ vector address
P%=&FFFE
EQUW irqV

' set the RESET vector address
P%=&FFFC
EQUW resetV

' IRQ handler
P%=irqV
RTI

' Main code
P%=resetV
LDX#&FF
TXS
SEI
CLD

.loop

' set DDRA output
LDA#&FF
STA &6003

' set ORA to 10101010
LDA#&AA
STA &6001

JMP loop


Top
 Profile  
Reply with quote  
 Post subject: Re: At last!
PostPosted: Mon Jan 05, 2015 11:22 pm 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
Here's the circuit diagram


Attachments:
6502project_6a2_bw.png
6502project_6a2_bw.png [ 291.84 KiB | Viewed 834 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: At last!
PostPosted: Mon Jan 05, 2015 11:34 pm 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
Just in case anyone is interested here's the assembler output:


Attachments:
File comment: VIA 65C22S port A output setup test
6502via_check.png
6502via_check.png [ 72.26 KiB | Viewed 832 times ]
File comment: RAM write then read check
6502ram_check.png
6502ram_check.png [ 65.7 KiB | Viewed 832 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: At last!
PostPosted: Tue Jan 06, 2015 2:35 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1748
Location: Sacramento, CA
Congrats! It always feels good to have one work as planned. What's next?

Daryl

_________________
Please visit my website -> https://sbc.rictor.org/


Top
 Profile  
Reply with quote  
 Post subject: Re: At last!
PostPosted: Tue Jan 06, 2015 9:23 am 
Offline

Joined: Mon Jan 07, 2013 2:42 pm
Posts: 576
Location: Just outside Berlin, Germany
Congratulations! And thank you for the circuit diagram, it's always great to be able to look at another working example ...

Was this your first time wire-wrapping? Anything you can recommend to those who are about to start to learn how?


Top
 Profile  
Reply with quote  
 Post subject: Re: At last!
PostPosted: Tue Jan 06, 2015 6:16 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8541
Location: Southern California
scotws wrote:
Was this your first time wire-wrapping? Anything you can recommend to those who are about to start to learn how?

Answering Wire-Wrap (WW) Questions and Doubts:
http://wilsonminesco.com/6502primer/WireWrap.html

_________________
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: At last!
PostPosted: Tue Jan 06, 2015 6:25 pm 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
@8BIT
Cheers :). I think the next stage is to get some form of input and output sorted. possibly an LCD display and a basic keyboard. Otherwise I won't have much to muck around with :)

@SCOTWS
No worries and thanks :). It was indeed my first try which is why I'm a bit surprised (in a good way!) that it worked so well.
Regarding recommendations: The wire wrap stuff was surprisingly easy once I got the hang of it with only the odd botched one. Garth's guide (http://wilsonminesco.com/6502primer/WireWrap.html) was invaluable - especially with regard to the type of wire wrap tool to buy (I got mine off of ebay for roughly £40 - don't skimp on this if you can avoid it).
Testing wise, I got a small piece of perf board, put in a wire wrap DIL socket on it, anchored it with a bit of bluetak and practiced on that. Most of it is not forcing the wire wrap tool, but simply gently turning the tool at a slow but consistent rate and without pressing down so that the wire layers on top of itself vertically. If you try to force it then it all goes wrong plus you also can't feel it going wrong either (which you can if you're doing it correctly). I recommend doing a comparrison of any test ones you do against the pictures that Garth has in his Q&A guide.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: