Why, oh lord why?

For discussing the 65xx hardware itself or electronics projects.
User avatar
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Why, oh lord why?

Post by BillO »

Hey guys,

So, I built the following circuit up on a solderless breadboard. I have included a schematic of the logic implemented in the GAL and a picture of my BB layout.

Here's the thing. My intention was to use this with a R65C02, so all the other chips are CMOS. The 2 74 series chips are AC (74ACXXX), the RAM, EPROM, ACIA and GAL are all CMOS. The clock speed is 1.8432MHz and the propagation delay to RAM or EPROM select it measured at 12ns and 20ns to the ACIA or memory register (74AC374) select. The EPROM and RAM are fairly fast devices @ 120ns. The GAL implements a PHI2 gated R/~W with a 12ns delay for the RAM. The EPROM contains a mini-monitor and EhBASIC 2.22. The ACIA is connected to a PC through a TTL to RS23 module that incoprporates a MAX232 (seen in the photo). I've checked the input and output logic levels of every chip in the circuit from their datasheets - they should be absolutely compatible. Everything should be honky dory, right?

Except it's not.

Using a R65C02-4 it has issues. Sometimes I can get a short program loaded in, but running it will produce errors and corrupt memory. Using a WD65C02 (modified to be plugable into a 6502 socket) it does not work at all - well I get a single space character output at the ACIA on reset - pffft!

However, using a good old NMOS 6502A it works like a charm.

What lunkhead thing am I doing wrong that prevents the CMOS CPUs from working?

Any help would be appreciated.
Attachments
Breadboard
Breadboard
GAL Logic
GAL Logic
Schematic
Schematic
Bill
DavidL
Posts: 31
Joined: 26 Nov 2016
Location: Dallas, Tejas

Re: Why, oh lord why?

Post by DavidL »

I'd suggest yours are noise problems. Good decoupling at the devices themselves is mandatory and you may need more extensive multi-stage decoupling at/near the devices. Protoboards are notorious for noise all by themselves and when you add in CMOS edge rates you've probably got quite a stew going on there.
User avatar
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Re: Why, oh lord why?

Post by BillO »

I do have 2 .1uf monolithic ceramic caps at each device as well as 10uf electrolytics at the top of each rail.

It is noisy though, but no more than I've seen other systems - like the Apple IIe enhanced which uses the R65C02 without issue and will run just fine on my modified W65C02.

I could put 1uf and .1uf monolithic ceramics beside each .1 to see if that helps, but I have my doubts. I'll try it tomorrow.
Bill
User avatar
GARTHWILSON
Posts: 8777
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Why, oh lord why?

Post by GARTHWILSON »

Solderless breadboards are the worst of all worlds for performance for this kind of thing, and bypassing is only a small part of the problem; nevertheless, good bypassing involves connecting the capacitors from an IC's Vcc pin to its ground pin with the connections as short as possible, not out at the rails like what I see in the picture. If you can put the capacitors over the ICs rather than making the connections go out and way around, it will help. Also, make the ground and Vcc connections from one IC to another (including the oscillator) as short and direct as possible. That all may not be enough though. The faster part has faster rise and fall times than the old NMOS one does, which will cause more ringing and groundbounce in such non-ideal layouts.
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
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Re: Why, oh lord why?

Post by BillO »

Some of those chips are pretty big and running the cap over the chip diagonally may actually lengthen the distance from the power pins. Not to mention I don't have any caps with leads long enough to span a 32 pin chip diagonally. However, I could snug things up a bit at the risk of lengthening one path by a bit. I think I have some axial lead caps that might span up to 18 or 20 pin packages.

This breadboard, despite being a US made 'quality' unit does have rather long distances to span from the chip leads to the power rails. I have some Chinese made units that have much shorter distances from rails to chips, but moving the project would be a last resort at this point. I'll know better next time.

They should design these things with the power rails between the dip leads (where the chanels are) and utilize a PCB base panel with power planes to distribute power to the solderless panels.

Another issue I'm dealing with is, even with power completely removed from the project I'm picking up 500mv peak to peak noise (the majority of what I'm measuring) between the power rails. I am under the belief this is coming from the LED lighting installed throughout the room I'm using. Has anyone else seen this? I'll earth the aluminum base to try to help with this.

IN any case, thanks for the responses. I'll do my best to improve the bypassing, but as it is now, most of what I want to accomplish with this phase can be done with the NMOS processor.

One more question. It seems like solderless breadboards are not the hot setup for experimenting with anything above 1 or 2 MHz. What do the rest of you use when doing experiments at higher clock speeds and with faster devices?

Edit: Changed 'substrate' to 'bass panel'
Last edited by BillO on Fri Jan 19, 2018 4:28 pm, edited 2 times in total.
Bill
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: Why, oh lord why?

Post by cbmeeks »

BillO wrote:
One more question. It seems like solderless breadboards are not the hot setup for experimenting with anything above 1 or 2 MHz. What do the rest of you use when doing experiments at higher clock speeds and with faster devices?
I'm guessing most of the guys around here that want to build faster circuits use wire wrap and/or custom PCB's.

Despite some design flaws on my latest PCB, they are ridiculously cheap these days. Especially for anything under 100x100mm.
Cat; the other white meat.
User avatar
GARTHWILSON
Posts: 8777
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Why, oh lord why?

Post by GARTHWILSON »

BillO wrote:
Some of those chips are pretty big and running the cap over the chip diagonally may actually lengthen the distance from the power pins.
Leads have inductance, and you need to minimize the lead length in the bypass capacitors between the power pin and the ground pin, splicing on extra wire if necessary to make the span. Oh how I wish they had foreseen the future rising edge rates and clock speeds when they came up with pinouts, and put the power and ground pins in the middle of the IC not out at the corners! I have worked with more-modern ones that put a power and ground pin right together on each side of the IC, as close as possible to the die, ie, the actual silicon chip inside, to minimize inductance where it's most important to minimize.

You can still have bypass capacitors at the power rails too of course.
Quote:
They should design these things with the power rails between the dip leads (where the chanels are) and utilize a PCB base panel with power planes to distribute power to the solderless panels.
What I've often done with solder-type breadboards (which I use when there's a lot of analog circuitry involved) is to put adhesive copper foil down the middle for ground. Here's the idea, although this one is purely analog (no digital), for work:
BBsigsSolderSide.jpg
Most of the components are on the other side; but it became convenient and helpful to put some on the solder side. It works out particularly well for bypass capacitors, since the ground pin can go to the copper ground strip directly with a super-short connection, and the Vcc pin can just have a leadless chip capacitor soldered between its solder pad and the ground copper ground strip. There aren't any chip capacitors on this particular board, but it's not uncommon for me to put them on other boards.
Quote:
Another issue I'm dealing with is, even with power completely removed from the project I'm picking up 500mv peak to peak noise (the majority of what I'm measuring) between the power rails. I am under the belief this is coming from the LED lighting installed throughout the room I'm using. Has anyone else seen this? I'll earth the aluminum base to try to help with this.

50/60Hz mains frequency, or MHz stuff?
Quote:
One more question. It seems like solderless breadboards are not the hot setup for experimenting with anything above 1 or 2 MHz. What do the rest of you use when doing experiments at higher clock speeds and with faster devices?
Like cbmeeks said, wire-wrap or custom PCBs. The 6502 primer has a page answering wire-wrap questions and doubts, at 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?
DerTrueForce
Posts: 483
Joined: 04 Jun 2016
Location: Australia

Re: Why, oh lord why?

Post by DerTrueForce »

CBMeeks is certainly right about the price. DirtyPCBs will make a 4-layer 100x100mm board for about US$45(shipping is about US$12 on top of that, at least to AU). It's cheaper if you only need 2-layer and/or smaller than 50mm in both directions. I can't yet speak for the quality of the boards, as mine only shipped yesterday afternoon.

Everyone else I've looked at starts at $100+. But I haven't looked at too many.
User avatar
GARTHWILSON
Posts: 8777
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Why, oh lord why?

Post by GARTHWILSON »

The 6502 primer also has a page on custom PC boards, at http://wilsonminesco.com/6502primer/CustomPCB.html, with a lot of good links, including to relevant topics on this forum, and to pages about CAD (including free CAD packages).
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
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Re: Why, oh lord why?

Post by BillO »

Thanks for all the suggestions folks! Much appreciated.

I did find some axial lead bypass capacitors at a (fairly) local parts shop with extraordinarily long leads. I'll be able to run them over the 32 and 28 pin packages with ease!
GARTHWILSON wrote:

50/60Hz mains frequency, or MHz stuff?
Fairly broad spectrum with a peak around 23KHz.
Bill
User avatar
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Re: Why, oh lord why?

Post by BillO »

So I tired all the suggestions I could up to and including soldering the cap right to the IC pins (where there was not enough holes in the breadboard or the chip needed to be removed often - eprom) and I have had some measure of success. The measured noise between Vcc and gnd is down 6db. The R65C02 does no better than before but the W65C02 works now - well at least as good as the R65C02. I am also able to push the NMOS 6502A to 3.8MHz where the limit was 2.5 before. I think it maybe the 65C51 crapping out. I need to try the W65C51 (with teh appropriate delay in the transmit routine) but I'll wait until I transfer the circuit to a stable base. I have had good luck with the boards pictured.
OMS-PBD-A.jpg
front.jpg
Bill
whartung
Posts: 1004
Joined: 13 Dec 2003

Re: Why, oh lord why?

Post by whartung »

How is a board like that used?

On a bread board, you have some bus lines on the edge (where all of the holes are tied together) with a bunch of holes in a grid, where lines of 5 are all connected together.

So, if you wanted to connect two components, you just need to ensure that they share a 5 hole line, or that there's a jumper from one line to the other. Finally, there are solder versions of the breadboards where you solder the components to the board, rather than just shove them in.

In these boards, you have couple of "bus" lines, but all of the other holes are not connected at all. So, how do you connect components?
Martin_H
Posts: 837
Joined: 08 Jan 2014

Re: Why, oh lord why?

Post by Martin_H »

Those prototyping boards look really useful. Where did you get them?
Martin A
Posts: 197
Joined: 02 Jan 2016

Re: Why, oh lord why?

Post by Martin A »

whartung wrote:
. So, how do you connect components?
Either wire wrap or in my case point to point soldering on the back with 30 awg wire.
User avatar
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Re: Why, oh lord why?

Post by BillO »

whartung wrote:
How is a board like that used?

On a bread board, you have some bus lines on the edge (where all of the holes are tied together) with a bunch of holes in a grid, where lines of 5 are all connected together.

So, if you wanted to connect two components, you just need to ensure that they share a 5 hole line, or that there's a jumper from one line to the other. Finally, there are solder versions of the breadboards where you solder the components to the board, rather than just shove them in.

In these boards, you have couple of "bus" lines, but all of the other holes are not connected at all. So, how do you connect components?
There are two separate power buses each with two lines, one on the left hand half of the board and one on the right. Component pads are arranged like 4 solderless breadboards. They are connected on the bottom of the board with .08" traces with a solder mask. Holes are plated through to allow for mounting components on either side. There are connector points for .2" screw terminals and for both double row and single row .1 spacing headers. There are 2 power supplies preconfigured to use LM78XX regulators with LED pilot lights. As well there are pads for 6 LED indicators with resistors, 2 pushbutton switches, a 3.5mm stereo jack, two barrel type power jacks, a 9-pin D connector and two areas for configuring 3-wire sensor/actuator headers.

Maybe the pictures here will give you a better idea.
Populated 3.jpg
Populated 1.jpg
Bill
Post Reply