6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 09, 2024 11:51 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Driving the bus
PostPosted: Sun Dec 12, 2021 9:29 am 
Offline
User avatar

Joined: Tue Apr 03, 2018 2:10 pm
Posts: 125
I'm plodding away with my first 6502-based homebrew project (https://bit.ly/zolatron64). It's planned to run at 1MHz and no more.

I'm learning a lot (the entire reason for the project), mostly by making mistakes. Which is fun.

It's a backplane design and, currently, the signals from the 6502 just go straight to the backplane connector.

It has occurred to me that it might be better if these signals were buffered. I don't know why - just a hunch. So I was thinking of introducing something like 74HC245 tranceivers between 6502 and backplane, with the DIR pin connected to R/W. Does this make any sense?

_________________
I like it when things smoke.
BlogZolatron 64 project


Top
 Profile  
Reply with quote  
 Post subject: Re: Driving the bus
PostPosted: Sun Dec 12, 2021 9:40 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8538
Location: Southern California
Do go through the 6502 primer. Section 5, on 74xx logic families does address this. The W65C02S's pin drivers are a lot stronger than 74HC's are, so you definitely don't need the 74HC245 bus transceiver for strength. There might be some value in the 74HC's slower slew rates, for preventing AC-performance problems, but the most important thing to keep clean there will be the clock signal, not so much the address and data lines. In section 10, on expansion buses and interfaces, you'll see that I'm not fond of the card-cage idea anymore, and the reasons why it's not like things were 30 years ago.

_________________
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: Driving the bus
PostPosted: Sun Dec 12, 2021 10:04 am 
Offline
User avatar

Joined: Tue Apr 03, 2018 2:10 pm
Posts: 125
Thanks for that. I have read large portions of the primer, but obviously didn't recall that bit!

I understand the arguments against backplanes, but for a first project this approach offers a handy degree of modularity. Currently, the computer consists of three boards - a main board with CPU, RAM, ROM, clock and misc decoding. Then there's a VIA board with a single 6522 and a serial board with a 6551. I've just ordered PCBs for all this, but have already thought about improvements for the VIA board. The VIA and serial boards have their addresses selectable on the boards via jumpers, so I can add more VIA & serial boards if I like. Or add upgraded versions of either without changing other boards. I feel this mix'n'match approach is highly suitable to learning, which is what this is all about.

_________________
I like it when things smoke.
BlogZolatron 64 project


Top
 Profile  
Reply with quote  
 Post subject: Re: Driving the bus
PostPosted: Sun Dec 12, 2021 8:28 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
speculatrix wrote:
It has occurred to me that it might be better if these signals were buffered. I don't know why - just a hunch. So I was thinking of introducing something like 74HC245 tranceivers between 6502 and backplane, with the DIR pin connected to R/W. Does this make any sense?

My POC V1.2 unit is clocked at 20 MHz and runs fine without any bus drivers. My POC V1.3 runs at 16 MHz, also without bus drivers (its speed is timing-limited). As Garth notes, the WDC processors have strong output drive, much more so than the older CMOS and NMOS incarnations.

With the 65C816, a data bus driver is appropriate for timing reasons, not due to low drive.

I'd be cautious with using a backplane. They tend to produce transmission line effects that are not counteracted solely by bus drivers. These issues can arise even at relatively low clock speeds.

Quote:
I understand the arguments against backplanes, but for a first project this approach offers a handy degree of modularity. Currently, the computer consists of three boards - a main board with CPU, RAM, ROM, clock and misc decoding. Then there's a VIA board with a single 6522 and a serial board with a 6551.

I would consider that hardware de rigueur and would incorporate all of it onto a single mainboard (although I wouldn't be using the 6551). If you think you will be adding to it in the future, set up an expansion port.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: Driving the bus
PostPosted: Sun Dec 12, 2021 8:40 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8538
Location: Southern California
BigDumbDinosaur wrote:
I would consider that hardware de rigueur and would incorporate all of it onto a single mainboard (although I wouldn't be using the 6551). If you think you will be adding to it in the future, set up an expansion port.

or just leave places for the extra ICs on the board even if you don't initially put them in; or you can leave a prototyping area on the board to add stuff later. With the today's smaller packages (even SOJs, PLCCs, and SOICs which are still easy to solder by hand), and the higher-scale integration, the reduced pin count and number of connections afforded by things like SPI, and the greater memory densities, you can put more on a single board today than you could in a whole set of boards 30 years ago, and it can still be made modular, just in a different way.

_________________
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: Driving the bus
PostPosted: Sun Dec 12, 2021 8:46 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
GARTHWILSON wrote:
BigDumbDinosaur wrote:
I would consider that hardware de rigueur and would incorporate all of it onto a single mainboard (although I wouldn't be using the 6551). If you think you will be adding to it in the future, set up an expansion port.

or just leave places for the extra ICs...you can put more on a single board today than you could in a whole set of boards 30 years ago, and it can still be made modular, just in a different way.

Plus the cost of decent-sized PCBs has come down a lot in recent years, so building on a larger board to accommodate extra features without breaking the bank is possible.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: Driving the bus
PostPosted: Mon Dec 13, 2021 1:28 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10975
Location: England
(Just to note, I wouldn't want anyone to be put off building a backplane design, just because BDD doesn't like to.)


Top
 Profile  
Reply with quote  
 Post subject: Re: Driving the bus
PostPosted: Mon Dec 13, 2021 2:34 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1007
Location: Canada
I'm a fan of backplanes on computers used for experiments. They are much easier and quicker to reconfigure due to the inherent modularity . I'm also a fan of buffering them to protect the more expensive chips like CPU and memory from damage due to to failed experiments. It's a lot cheaper to replace a 74XX245 than a W65C02.

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject: Re: Driving the bus
PostPosted: Mon Dec 13, 2021 9:14 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
BigEd wrote:
(Just to note, I wouldn't want anyone to be put off building a backplane design, just because BDD doesn't like to.)

I'm merely pointing out the issues a backplane can introduce, and don't understand, Ed, why any time I mention the “cons” as well as the “pros” of anything you feel compelled to interject a snide remark into the discussion.

The OP says in his first post that he's learning, which implies he's not at the expert level with hardware. While I don't claim expert level as well, I've scratch-designed and built enough hardware to know what's what and where things can go wrong. If it offends you, Ed, for me to point out that it's not always unicorns and rainbows when it comes to this stuff, may I suggest you heed your own, often-repeated, advice and move on to something else.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


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 1 guest


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: