A simple 6502 SBC. Request for comments
Re: A simple 6502 SBC. Request for comments
Well, several late evenings and one bored-of-hearing-about-it girlfriend later...
Here is the schematic for "release candidate 1", and an SVG of what I might sent to the board house. Unfortunately SVG is the best output I can find from Kicad's PCD editor. edit: Scratch that, the forum doesn't allow SVG attachments. I've printed the SVG as a PDF. (cf. https://xkcd.com/763/)
I've incorporated the flip-flop on the clock, jumper headers for modifying the memory map, an NMI button (debounced the same way as the reset signal, because I can't get a nice double pole switch for the SR flip-flop debouncer) and possibly some other bits...
I have one final question about AC construction - On the large DIP packages, it's very difficult to get the decoupling cap close to both power pins, they're just too far apart, and signals need to be routed between. I've mostly gone for putting the cap near the ground pin and then bridging it directly to the internal Vcc plane. Would placing one cap on each of the Vcc and ground pins be better? Or should I really be going back and finding a way to put a single cap equidistant and directly between the package's power pins?
I've excited, and apprehensive... the PCB will cost slightly over $100 in full 4 layer. The extra space left around the EEPROM is so that a ZIF socket will fit...
Here is the schematic for "release candidate 1", and an SVG of what I might sent to the board house. Unfortunately SVG is the best output I can find from Kicad's PCD editor. edit: Scratch that, the forum doesn't allow SVG attachments. I've printed the SVG as a PDF. (cf. https://xkcd.com/763/)
I've incorporated the flip-flop on the clock, jumper headers for modifying the memory map, an NMI button (debounced the same way as the reset signal, because I can't get a nice double pole switch for the SR flip-flop debouncer) and possibly some other bits...
I have one final question about AC construction - On the large DIP packages, it's very difficult to get the decoupling cap close to both power pins, they're just too far apart, and signals need to be routed between. I've mostly gone for putting the cap near the ground pin and then bridging it directly to the internal Vcc plane. Would placing one cap on each of the Vcc and ground pins be better? Or should I really be going back and finding a way to put a single cap equidistant and directly between the package's power pins?
I've excited, and apprehensive... the PCB will cost slightly over $100 in full 4 layer. The extra space left around the EEPROM is so that a ZIF socket will fit...
- Attachments
-
- 65m2-brd.pdf
- (79.69 KiB) Downloaded 114 times
-
- rc1.pdf
- (223.3 KiB) Downloaded 86 times
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: A simple 6502 SBC. Request for comments
If you have both a power plane and a ground plane (and they're true planes, not copper pours which don't qualify as a plane), I don't think it would matter which of the two ways you do it. Myself, I would put the capacitor next to the power pin, with the shortest possible connection from the pin to the capacitor, and from the capacitor to the ground plane. Dr. Howard Johnson had a good article on that, but now you can't see it anymore without paying, so my link is basically dead. [Edit: I'm not sure which article I was thinking of when I wrote this, but I found his articles available, free, in the archives, at https://web.archive.org/web/20120302190 ... eyword.htm .]
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: A simple 6502 SBC. Request for comments
Thanks, I'll do that. By placing the caps on the underside of the board, I should be able to put them really close to the ground supply pins. I am going for a proper 4 layer board with true Vcc and ground planes on the internal layers. It's twice as expensive, but everything I've read here suggests I should just do it. It also simplifies routing a lot, and I'm a bit of a board layout novice, so that's a big plus.
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: A simple 6502 SBC. Request for comments
Assuming you'll be assembling by hand, you can also put vias in the pads themselves, further saving board space and facilitating routing and reducing inductance. You can't do that for production unless these vias are plugged and plated over, because when they screen the solder paste on, anywhere there's a hole, the solder paste will squish out the other side and make a big mess. An exception might be in that now we have a supplier that doesn't make a silkscreen for solder paste, but they actually spray it on kind of like an inkjet printer works, so the tool-up cost is reduced since it's all controlled in software only.
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?
- BigDumbDinosaur
- Posts: 9426
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: A simple 6502 SBC. Request for comments
mdpye wrote:
I have one final question about AC construction...
The attached illustration of POC V2.1's four-layer PCB shows this layout arrangement—look at C8 and U8 (center) for an example.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: A simple 6502 SBC. Request for comments
Thanks. I notice you're using some pretty fat power traces in various places. I don't think they're going to be delivering loads of current, does a fatter trace help reduce noise on the power lines? I imagine the opposite would be true for a signal line, although that's an intuition, and my intuition about power is the opposite (like, the object is to stay stable, not switch quickly!)
Re: A simple 6502 SBC. Request for comments
Quote:
Assuming you'll be assembling by hand, you can also put vias in the pads themselves, further saving board space and facilitating routing and reducing inductance.
I'll probably move some of them back to the pads where it neatens things or shortens power delivery lines
- Alarm Siren
- Posts: 363
- Joined: 25 Oct 2016
Re: A simple 6502 SBC. Request for comments
mdpye wrote:
Thanks. I notice you're using some pretty fat power traces in various places. I don't think they're going to be delivering loads of current, does a fatter trace help reduce noise on the power lines? I imagine the opposite would be true for a signal line, although that's an intuition, and my intuition about power is the opposite (like, the object is to stay stable, not switch quickly!)
Fatter traces = less resistance and impedance, neither of which are things you want on a power line.
Want to design a PCB for your project? I strongly recommend KiCad. Its free, its multiplatform, and its easy to learn!
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: A simple 6502 SBC. Request for comments
I wouldn't worry too much about that. A .008" trace of 1oz copper is good for a half amp of current at 20°C rise, and has less than a fifth of an ohm's resistance at three inches' length, meaning a half an amp on that teeny trace would drop about one-tenth of a volt across three inches. 5mA, or 1% of half an amp, would cause about 1mV of drop across three inches. The ratio of width to separation from the ground plane does affect characteristic impedance for fast AC signals; but when there's a bypass capacitor from the power trace to ground right at the IC anyway, neither of these things matter.
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?
- Alarm Siren
- Posts: 363
- Joined: 25 Oct 2016
Re: A simple 6502 SBC. Request for comments
I agree that it is not of great importance in this case, but that is why one typically has fatter traces for power nets - or if you've got a lot of current. Even if its not necessary, if you have the room it can only help.
Want to design a PCB for your project? I strongly recommend KiCad. Its free, its multiplatform, and its easy to learn!
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.
Re: A simple 6502 SBC. Request for comments
Alarm Siren wrote:
I agree that it is not of great importance in this case, but that is why one typically has fatter traces for power nets - or if you've got a lot of current. Even if its not necessary, if you have the room it can only help.
But a fat VCC trace can actually be a disadvantage in certain troubleshooting situations, such as when a chip or a bypass cap has shorted. You're better off to have skinny VCC traces because their resistance is high enough that there'll be a measurable voltage drop across the trace that feeds the shorted component. (Have been there and done this IRL -- a tidy solution to an otherwise nasty situation.)
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: A simple 6502 SBC. Request for comments
Hmm, that's an odd kind of advantage! Seeing Garth's calculation of a tenth of a volt drop, I think I'd rather have the fat trace...
- BigDumbDinosaur
- Posts: 9426
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: A simple 6502 SBC. Request for comments
Dr Jefyll wrote:
But a fat VCC trace can actually be a disadvantage in certain troubleshooting situations, such as when a chip or a bypass cap has shorted.
x86? We ain't got no x86. We don't NEED no stinking x86!
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: A simple 6502 SBC. Request for comments
BigEd wrote:
Hmm, that's an odd kind of advantage! Seeing Garth's calculation of a tenth of a volt drop, I think I'd rather have the fat trace...
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: A simple 6502 SBC. Request for comments
BigEd wrote:
Hmm, that's an odd kind of advantage! Seeing Garth's calculation of a tenth of a volt drop, I think I'd rather have the fat trace...
FWIW, the troubleshooting case I cited involved heavy current and rather fat traces. But it's all a matter of proportion. The traces were not unnecessarily widened; if they had been then I'd have been sunk.
Last edited by Dr Jefyll on Fri Nov 10, 2017 6:50 pm, edited 1 time in total.
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