6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 9:15 pm

All times are UTC




Post new topic Reply to topic  [ 63 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: Sat Feb 25, 2023 1:48 pm 
Offline

Joined: Sat Oct 09, 2021 11:21 am
Posts: 718
Location: Texas
Look ma', no bodges! ;)

The boards came in and I just soldered everything. It took about 1.5 - 2.0 hours to solder everything and tidy it up. And most importantly, no bodges.

I did learn a few things here though:

1) The purple board is unusually dark for me, and I don't have a lot of good lighting in the office anyways. I was basically soldering blind. My daughter chose purple because it's technically her computer :) I prefer the classic green.

2) Some of the silkscreen from the gerbers didn't show up on the board! None of the 5 boards from JLCPCB had one particular silkscreen label. I checked the gerbers and they have it, so... IDK there.

3) In the future I need to look more closely at physical dimensions of components on Mouser. My expansion port 1x20 pin headers are super tall, and my 0.1uF bypass caps were not my favorite with the bent leads for easy insertion.

The next thing to do is try to attach the 6522 VIA through the expansion port. That will be a fun exercise!

More updates to come when they come. Thanks everyone!

Chad


Attachments:
20230225_073002.jpg
20230225_073002.jpg [ 2.08 MiB | Viewed 1741 times ]
20230225_072931.jpg
20230225_072931.jpg [ 2.48 MiB | Viewed 1741 times ]
20230225_073022.jpg
20230225_073022.jpg [ 1004.85 KiB | Viewed 1741 times ]
20230225_073040.jpg
20230225_073040.jpg [ 1.95 MiB | Viewed 1741 times ]
Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 25, 2023 4:52 pm 
Offline

Joined: Fri Mar 18, 2022 6:33 pm
Posts: 491
Looking good Chad! Are you starting to think about case / mounting options?

_________________
"The key is not to let the hardware sense any fear." - Radical Brad


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 25, 2023 7:50 pm 
Offline

Joined: Sat Oct 09, 2021 11:21 am
Posts: 718
Location: Texas
Paganini wrote:
Looking good Chad! Are you starting to think about case / mounting options?


Thanks! This board has a Mini-ITX form factor, so it can actually fit in any ol' desktop PC case, or smaller ones too. That's why it's such a huge board with so much wasted space near the bottom. I personally would like to just use 2 pieces of plexiglass eventually.

Chad


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 25, 2023 11:35 pm 
Offline

Joined: Sat Oct 09, 2021 11:21 am
Posts: 718
Location: Texas
Alright! Now the 6522 VIA is working also! Attached are pictures.

I have made *one* tiny little bodge now, adding PHI2 to my expansion port. Like, why *didn't* I design it like that. Duh.

I have also updated my Github with the adjusted schematics and gerbers.

Still more testing to do. I would like to see if I can get the PS/2 Keyboard exclusively off of the VIA. And of course an LCD is in the future. Lastly, I'd like to hook up the Genesis controller and somehow play Tetris and Space Invaders with that! :)

Thanks everyone. Today was a good day.

Chad


Attachments:
20230225_172950.jpg
20230225_172950.jpg [ 2 MiB | Viewed 1684 times ]
20230225_172922.jpg
20230225_172922.jpg [ 1.69 MiB | Viewed 1684 times ]
Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 27, 2023 11:29 am 
Offline

Joined: Fri Jul 09, 2021 10:12 pm
Posts: 741
Hi Chad, great that the new board is working!

I had a couple of questions about the PCB design:

1. What settings do you use for trace widths and clearances?

2. Did you figure out why some of the graphics were missing? Was it on the wrong layer, or maybe lines that were too thin to print?


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 27, 2023 1:07 pm 
Offline

Joined: Sat Oct 09, 2021 11:21 am
Posts: 718
Location: Texas
gfoot wrote:
Hi Chad, great that the new board is working!

I had a couple of questions about the PCB design:

1. What settings do you use for trace widths and clearances?

2. Did you figure out why some of the graphics were missing? Was it on the wrong layer, or maybe lines that were too thin to print?


Hi George! Glad to hear from you!

1) Um... good question. I would have to look at my computer at the house again. Almost all signal traces and vias are the default KiCad values, which I *hear* are pretty large. The power/ground traces and via's are a bit larger. I will see about getting those specifics to you later.

2) Are you talking about page 1 stuff? So CLK is my 25.175 MHz clock and /CLK is inverted. I had been using /CLK for latching and shifting the sync signals and color data. I needed to use CLK instead. Essentially it latches that sync and color data when PHI2 rises, when before I was trying to do it too early. Ever since I used the CLK signal instead it has been super solid and no issues at all. I see a tiny tiny amount of jail bars when the page is full-white, but the monitor and even televisions have been happy with it.

Thanks!

Chad


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 27, 2023 1:40 pm 
Offline

Joined: Fri Jul 09, 2021 10:12 pm
Posts: 741
sburrow wrote:
2) Some of the silkscreen from the gerbers didn't show up on the board! None of the 5 boards from JLCPCB had one particular silkscreen label. I checked the gerbers and they have it, so... IDK there.

I meant regarding this point, I'm interested in why they left it out.


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 27, 2023 2:55 pm 
Offline

Joined: Sat Oct 09, 2021 11:21 am
Posts: 718
Location: Texas
gfoot wrote:
sburrow wrote:
2) Some of the silkscreen from the gerbers didn't show up on the board! None of the 5 boards from JLCPCB had one particular silkscreen label. I checked the gerbers and they have it, so... IDK there.

I meant regarding this point, I'm interested in why they left it out.


Oh! I have no clue. I see the silkscreen on the gerbers. No indication as to why it would be missing. Oh well, I'll double check on JLCPCB gerber view later.

For the sizes of the traces:

Power and Ground: Track 0.02000 in, Vias 0.03500 in / 0.01500 in
Signals: Track 0.25 mm, Vias 0.8mm / 0.4 mm (KiCad defaults)

Chad


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 27, 2023 6:03 pm 
Offline

Joined: Fri Jul 09, 2021 10:12 pm
Posts: 741
Great, thanks. So far I've been quite cautious, using a coarse grid (0.05 in I think) so lots of space between traces, but I recently looked up the fab's capabilities and reduced this down (grid size of 0.025in, trace width 0.25mm for signals 0.42mm for power/gnd, minimum clearance of 0.2mm but generally more like 0.3mm or 0.4mm due to the grid size). You have a few cases there with a lot of traces routed very close to each other, closer than I am doing I think, so I'm glad to hear it works well as it gives me hope for my design, which is quite densely-packed and very congested!


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 27, 2023 6:43 pm 
Offline

Joined: Wed Jun 23, 2021 8:02 am
Posts: 166
Last PCB I had made was 0.1mm trace, 0.1mm clearance, vias 0.4mm outer, 0.2mm inner. 4 layer boards allow finer traces than 2 layer (0.09mm versus 0.127mm at JLCPCB). There didn't seem to be any problems with the board, although I notice they have increased their minimum via size to 0.45mm now.


Attachments:
M68K_V2-F_Cu.pdf [173.15 KiB]
Downloaded 44 times
M68K_V2-B_Cu.pdf [144.78 KiB]
Downloaded 42 times
Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 28, 2023 5:56 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 989
Location: Potsdam, DE
I'm a little more conservative: I generally use 6 thou/0.15mm for signal traces with 0.6mm/0.3mm vias. Again, JLCPCB.

I found a European PCB house that offered sane prices for prototype board but their smallest vias were 0.7mm/0.3 which broke my PCBs. (And I can't recall which one it was, so I can't check if it's changed!)

Neil


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 28, 2023 8:00 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
barnacle wrote:
I found a European PCB house that offered sane prices for prototype board but their smallest vias were 0.7mm/0.3 which broke my PCBs.

What I've done many times is to shave pads, like this:
Attachment:
shavedPads.gif
shavedPads.gif [ 14.74 KiB | Viewed 1544 times ]
These holes are .040" for .025" square posts (which are .035" across the corners, and then I leave a little more room for tolerance, as for example finished hole sizes are often specified to be ±.003"), and the pads are .010" additional on each side for .060" total.  This allows for some inaccuracy in the drilling (like the bit wandering a little) and still leaves some pad all the way around the hole which is initially drilled bigger than you requested and then the thru plating brings it down to the final size.  So on .100" centers, I had .040" space, and ran three traces between, with .007"/.007" trace/space.  The shaving is of course kept away from where a trace comes into a pad so it's not like the trace just falls down in the hole, as you want the dependability that comes from having some pad around the hole on each side of where a trace comes in.  The bright yellow-green is the hole in the soldermask which I didn't bother to shave.  The dark green is the ground plane on the back of this 2-layer board, red is top copper, and light yellow is the legend.  Pad-shaving can be done on any layer independently of the others, but I don't remember ever doing it on inner layers of a multilayer board.

_________________
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  
PostPosted: Thu Mar 02, 2023 11:18 am 
Offline

Joined: Sat Oct 09, 2021 11:21 am
Posts: 718
Location: Texas
I have a question, but let me lead up to it first.

So I have the VIA attached to the board, and it uses a lot of signals directly from the 6502. Everything is working fine, but when I probe the R/W line everything crashes. If I unattach the VIA and probe that line, it's fine.

Initially I had a 10K pull-up on the R/W line, because I'm using BE and it floats for a tiny bit and figured it wouldn't hurt to have it on there. I just changed it to a 3.3K pull-up and it no longer crashes when I probe the R/W line anymore, even with the VIA attached.

I mean, sure, it could be a timing issue. But it seems to happen when I probe the /RESET line also, which is weird and definitely not a timing issue. I tap the probe on the /RESET line and it either crashes or resets the system. Hm. I have a MCP130 with 5K internal pull-up plus a 10K external pull-up on the /RESET line, btw.

Attached are schematics.

My question(s): Why would probing a line make the system crash? Obviously the probe itself is changing the signal, but in what way? I cannot unprobe it and *see* what it looks like, then probe it and see what it looks like, so I cannot compare/contrast between the two states. I remember there was a video Garth had mentioned, something like, "I just probed it and it crashed!" or some such, would that have the answer? Is this behavior due to AC performance (what *does* AC stand for anyways?) because I have the VIA tethered to the 6502 on a separate breadboard?

I added that 10K pull-up to R/W just because, figuring it was not necessary, but it seems I needed something even more than that!

Thanks for any insight.

Chad


Attachments:
Schematics-Color.pdf [332.97 KiB]
Downloaded 52 times
Schematics-Mono.pdf [328.19 KiB]
Downloaded 47 times
Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 02, 2023 12:24 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Your probes should be set to 10x, and the scope adjusted accordingly, so that probing puts less load on the signal being probed.
viewtopic.php?p=89780#p89780

But perhaps you should share a photo - maybe you are probing in some unexpected way. You should, for example, be picking a reference ground that's close the signal you're probing. And, naturally, you need to be very careful not to disturb or short anything while probing. (Perhaps you yourself should also have an antistatic wrist strap and a good ground. Especially if you're the kind of person who gets static shocks.)


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 02, 2023 4:02 pm 
Offline

Joined: Fri Mar 18, 2022 6:33 pm
Posts: 491
sburrow wrote:
My question(s): Why would probing a line make the system crash? Obviously the probe itself is changing the signal, but in what way? I cannot unprobe it and *see* what it looks like, then probe it and see what it looks like, so I cannot compare/contrast between the two states. I remember there was a video Garth had mentioned, something like, "I just probed it and it crashed!" or some such, would that have the answer? Is this behavior due to AC performance (what *does* AC stand for anyways?) because I have the VIA tethered to the 6502 on a separate breadboard?


Here's the video: https://www.youtube.com/watch?v=MJpDFnRQw8s

It's worth watching a few times; it's only 12 minutes long!

AC is "alternating current."

_________________
"The key is not to let the hardware sense any fear." - Radical Brad


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 63 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 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: