65XX SBC general help and color display help needed
-
backspace119
- Posts: 346
- Joined: 25 Jan 2019
- Location: Knoxville, TN
Re: 65XX SBC general help and color display help needed
Some more questions as I assign PCB footprints to symbols:
What are the dimensions of the WDC chips? I can't find the dimensions for them anywhere and there are a few options for PDIP-40 packaging. (I just need the width)
I have the WE\ for the EEPROM on board behind a switch to go to the WRITE\ signal. I've put a 100k resistor to pull up the WE\ line to logic high, and if the switch is closed the WRITE\ signal should be able to pull it low. Is 100k the right value for this? I chose a very weak pullup to ensure that WRITE\ would be able to pull it down.
Do I need bypass capacitors for oscillators? I believe the answer is yes, so I've already put them down, but if not, I can remove them.
Garth, I see you posted right as I'm writing this, thanks for your response to my previous questions. What value of resistor would be appropriate for driving an LED from one of these lines? I generally use 10k.
What are the dimensions of the WDC chips? I can't find the dimensions for them anywhere and there are a few options for PDIP-40 packaging. (I just need the width)
I have the WE\ for the EEPROM on board behind a switch to go to the WRITE\ signal. I've put a 100k resistor to pull up the WE\ line to logic high, and if the switch is closed the WRITE\ signal should be able to pull it low. Is 100k the right value for this? I chose a very weak pullup to ensure that WRITE\ would be able to pull it down.
Do I need bypass capacitors for oscillators? I believe the answer is yes, so I've already put them down, but if not, I can remove them.
Garth, I see you posted right as I'm writing this, thanks for your response to my previous questions. What value of resistor would be appropriate for driving an LED from one of these lines? I generally use 10k.
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 65XX SBC general help and color display help needed
backspace119 wrote:
What are the dimensions of the WDC chips? I can't find the dimensions for them anywhere and there are a few options for PDIP-40 packaging. (I just need the width)
Quote:
I have the WE\ for the EEPROM on board behind a switch to go to the WRITE\ signal. I've put a 100k resistor to pull up the WE\ line to logic high, and if the switch is closed the WRITE\ signal should be able to pull it low. Is 100k the right value for this? I chose a very weak pullup to ensure that WRITE\ would be able to pull it down.
Quote:
Do I need bypass capacitors for oscillators? I believe the answer is yes, so I've already put them down, but if not, I can remove them.
Quote:
Garth, I see you posted right as I'm writing this, thanks for your response to my previous questions. What value of resistor would be appropriate for driving an LED from one of these lines? I generally use 10k.
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?
-
backspace119
- Posts: 346
- Joined: 25 Jan 2019
- Location: Knoxville, TN
Re: 65XX SBC general help and color display help needed
GARTHWILSON wrote:
backspace119 wrote:
What are the dimensions of the WDC chips? I can't find the dimensions for them anywhere and there are a few options for PDIP-40 packaging. (I just need the width)
Quote:
I have the WE\ for the EEPROM on board behind a switch to go to the WRITE\ signal. I've put a 100k resistor to pull up the WE\ line to logic high, and if the switch is closed the WRITE\ signal should be able to pull it low. Is 100k the right value for this? I chose a very weak pullup to ensure that WRITE\ would be able to pull it down.
Quote:
Do I need bypass capacitors for oscillators? I believe the answer is yes, so I've already put them down, but if not, I can remove them.
Quote:
Garth, I see you posted right as I'm writing this, thanks for your response to my previous questions. What value of resistor would be appropriate for driving an LED from one of these lines? I generally use 10k.
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 65XX SBC general help and color display help needed
backspace119 wrote:
Just out of curiosity, about how many mA can most of the CMOS pins on these chips drive?
The best I can answer is what I have in the 11th bullet point in the "Hardware differences" part of my article on the many differences between the NMOS and CMOS '02, and to some extent the '816 which I suspect uses the same pin drivers:
- CMOS has stronger bus-drive capability, far stronger than the datasheets let on. I have done some brief tests on WDC's W65C816S's pin drivers which I suspect are the same ones used they used on the W65C02S. Their behavior was pretty much symmetrical, able to pull up just as hard as they can pull down, unlike TTL which cannot pull up as hard as down. If you had to boil my test results down to approximations and treat the circuits as just a resistance, the data pin drivers acted very roughly like a SPDT switch with 50Ω in series with the common terminal (ie, the output); and the address bus pins, as a SPDT switch with 60Ω in series. The time constant of 60Ω times the capacitive load of 10 CMOS loads is around 3ns, which is less added delay than you'll get from a bus transceiver IC.
In a separate test on WDC's W65C22S VIA (not the W65C22N) I/O pins years earlier, I found they were each able to pull to within 0.8V of either rail with a 220-ohm resistor to the opposite rail, meaning a 19mA load, even pulling up, and give 50mA into a dead short. Rockwell's R65C22 could pull down with 100mA into a dead short, but could not pull up as hard, not being symmetrical like WDC's.
(That's not to say I would want to leave a dead short on for very long, let alone on several pins at once!)
Quote:
Also, my clock goes through a D flipflop, so I assume both need to be as close to the CPU as possible correct?
Yeah, keep them pretty close.
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?
-
backspace119
- Posts: 346
- Joined: 25 Jan 2019
- Location: Knoxville, TN
Re: 65XX SBC general help and color display help needed
GARTHWILSON wrote:
backspace119 wrote:
Just out of curiosity, about how many mA can most of the CMOS pins on these chips drive?
The best I can answer is what I have in the 11th bullet point in the "Hardware differences" part of my article on the many differences between the NMOS and CMOS '02, and to some extent the '816 which I suspect uses the same pin drivers:
- CMOS has stronger bus-drive capability, far stronger than the datasheets let on. I have done some brief tests on WDC's W65C816S's pin drivers which I suspect are the same ones used they used on the W65C02S. Their behavior was pretty much symmetrical, able to pull up just as hard as they can pull down, unlike TTL which cannot pull up as hard as down. If you had to boil my test results down to approximations and treat the circuits as just a resistance, the data pin drivers acted very roughly like a SPDT switch with 50Ω in series with the common terminal (ie, the output); and the address bus pins, as a SPDT switch with 60Ω in series. The time constant of 60Ω times the capacitive load of 10 CMOS loads is around 3ns, which is less added delay than you'll get from a bus transceiver IC.
In a separate test on WDC's W65C22S VIA (not the W65C22N) I/O pins years earlier, I found they were each able to pull to within 0.8V of either rail with a 220-ohm resistor to the opposite rail, meaning a 19mA load, even pulling up, and give 50mA into a dead short. Rockwell's R65C22 could pull down with 100mA into a dead short, but could not pull up as hard, not being symmetrical like WDC's.
(That's not to say I would want to leave a dead short on for very long, let alone on several pins at once!)
Quote:
Also, my clock goes through a D flipflop, so I assume both need to be as close to the CPU as possible correct?
Yeah, keep them pretty close.
Lightning EDIT: I pulled up the page on that RTC and I see it doesn't have a through hole package.
I can do SMT soldering, but I hate it, and my results are often a bit messy and unprofessional looking. Also, I haven't implemented I2C yet, (really probably should do that right now) and I think I'd rather use an SPI one if it's available (except, I dumped all my SPI lines onto other things.... I may remove one of the SPI pin headers and put it there if I get an SPI one).
That one that has the multiplexed address/data bus is still calling my name. I've seen 74 chips that are "demultiplexers" how would I go about implementing this?
-
backspace119
- Posts: 346
- Joined: 25 Jan 2019
- Location: Knoxville, TN
Re: 65XX SBC general help and color display help needed
So I read on how to demultiplex the bus, and I think I have a basic understanding of it, but when looking around at alternative chips I actually happened upon a RTC with a watchdog timer in it as well that has a Parallel interface here.
It's expensive, but not prohibitively. I'm going to use this for ease of integration, because I don't want to mess up on demultiplexing the bus of the other one, and I'd prefer to have one that has everything included (crystal, battery).
After I integrate this, I should have the whole schematic 100% done. I'll upload it here so everyone can point out how many noob mistakes I made. (hopefully only a few). In particular, I'd like to make sure that I'm demultiplexing the 65c816 Data/A16-23 bus correctly.
It's expensive, but not prohibitively. I'm going to use this for ease of integration, because I don't want to mess up on demultiplexing the bus of the other one, and I'd prefer to have one that has everything included (crystal, battery).
After I integrate this, I should have the whole schematic 100% done. I'll upload it here so everyone can point out how many noob mistakes I made. (hopefully only a few). In particular, I'd like to make sure that I'm demultiplexing the 65c816 Data/A16-23 bus correctly.
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 65XX SBC general help and color display help needed
Non-volatile RAM is always nice, but make sure it's fast enough for what you want. Note also that you cannot replace the battery, and it's only good for ten years.
The demultiplexing has to do with latching the 816's address high byte. It is not related to what kind of RTC you use. It's not clear that you're seeing it this way.
The demultiplexing has to do with latching the 816's address high byte. It is not related to what kind of RTC you use. It's not clear that you're seeing it this 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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
-
backspace119
- Posts: 346
- Joined: 25 Jan 2019
- Location: Knoxville, TN
Re: 65XX SBC general help and color display help needed
GARTHWILSON wrote:
Non-volatile RAM is always nice, but make sure it's fast enough for what you want. Note also that you cannot replace the battery, and it's only good for ten years.
The demultiplexing has to do with latching the 816's address high byte. It is not related to what kind of RTC you use. It's not clear that you're seeing it this way.
The demultiplexing has to do with latching the 816's address high byte. It is not related to what kind of RTC you use. It's not clear that you're seeing it this way.
Here's the schematic, in PDF form so you can zoom:
EDIT: I went back and checked it, it has a 70ns latency for read and write at 5v operation. This is too slow for clock speeds much higher than what I'm wanting to run default, which is 5Mhz. I may see if there's a faster one that's pin compatible.
EDIT 2: there doesn't seem to be one by Maxim, but I'll look at other brands. All of their EDIP ones are 70ns.
EDIT 3: Actually, after reading further, it seems to suggest that valid outputs are on the databus before the end of the 70ns cycle....could this mean that it may be fast enough? I'm looking at the timing graph and working on understanding it, to me it looks like as long as my enables to the chip are fast it will only take a max of 35ns to get data on the bus. (which is still a bit too slow for 16Mhz but not by a lot).
-
backspace119
- Posts: 346
- Joined: 25 Jan 2019
- Location: Knoxville, TN
Re: 65XX SBC general help and color display help needed
To get an idea of the components and spacing involved, I dumped the components into the layout editor and looked at the 3D view, here it is:
Re: 65XX SBC general help and color display help needed
backspace119 wrote:
Here's the schematic, in PDF form so you can zoom:
I don't have time right now to go into it in detail, but those 7805 regulators though... You ought to use bypass/decoupling capacitors physically next to them, else they have a tendency to oscillate. Typically it's 0.2µF on the input and 0.1µF on the output. (This is in addition to the big 470µF tanks you've put on them).
I see 2 x 7805's though - are you running 2 in parallel, or do you have separate blocks being fed off separate 5v sources?
I'd really not like to wire those in parallel - what might happen is the one with the highest output will supply most of the current and get hot... (This happened by accident on the first Raspberry Pi board - there was a 3.3v linear regulator on the board, but also another inside the USB chip which was connected to the board 3.3v lines rather than a decoupling capacitor - the USB chip did get rather hot on those early Pi's!)
And speaking of hot - a standard 7805 in a TO220 case is rated to one amp, and if you're feeding these from 12v, then they are going to get very hot - so make sure you have whacking big heatsinks on them and/or use the higher powered TO3 variants, but if they're under an amp each then do consider using SMPS drop-in replacements - these run much cooler and are far more efficient. I power my SBC from a USB connection and it takes about 150mA - the majority of that is for the GAL and LEDs.
But good luck - exciting time ahead!
Cheers,
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
-
backspace119
- Posts: 346
- Joined: 25 Jan 2019
- Location: Knoxville, TN
Re: 65XX SBC general help and color display help needed
drogon wrote:
backspace119 wrote:
Here's the schematic, in PDF form so you can zoom:
I don't have time right now to go into it in detail, but those 7805 regulators though... You ought to use bypass/decoupling capacitors physically next to them, else they have a tendency to oscillate. Typically it's 0.2µF on the input and 0.1µF on the output. (This is in addition to the big 470µF tanks you've put on them).
I see 2 x 7805's though - are you running 2 in parallel, or do you have separate blocks being fed off separate 5v sources?
I'd really not like to wire those in parallel - what might happen is the one with the highest output will supply most of the current and get hot... (This happened by accident on the first Raspberry Pi board - there was a 3.3v linear regulator on the board, but also another inside the USB chip which was connected to the board 3.3v lines rather than a decoupling capacitor - the USB chip did get rather hot on those early Pi's!)
And speaking of hot - a standard 7805 in a TO220 case is rated to one amp, and if you're feeding these from 12v, then they are going to get very hot - so make sure you have whacking big heatsinks on them and/or use the higher powered TO3 variants, but if they're under an amp each then do consider using SMPS drop-in replacements - these run much cooler and are far more efficient. I power my SBC from a USB connection and it takes about 150mA - the majority of that is for the GAL and LEDs.
But good luck - exciting time ahead!
Cheers,
-Gordon
Re: 65XX SBC general help and color display help needed
backspace119 wrote:
They're for separate blocks, one is dedicated to the display backlight (half an amp). I may look at other regulator packages, but I want to stick with THT if I can. I may run a 3rd regulator for powering the DIN 5 connector to the keyboard, as it draws 300ma
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
-
backspace119
- Posts: 346
- Joined: 25 Jan 2019
- Location: Knoxville, TN
Re: 65XX SBC general help and color display help needed
drogon wrote:
backspace119 wrote:
They're for separate blocks, one is dedicated to the display backlight (half an amp). I may look at other regulator packages, but I want to stick with THT if I can. I may run a 3rd regulator for powering the DIN 5 connector to the keyboard, as it draws 300ma
-Gordon
I'll look at that regulator, I've know about the 7805 for a long time is why I used it, I'll happily upgrade though
Re: 65XX SBC general help and color display help needed
backspace119 wrote:
To get an idea of the components and spacing involved, I dumped the components into the layout editor and looked at the 3D view, here it is:
I must make an effort to learn KiCad myself though - been stuck in Fritzing for the past 6 years or so and while it's worked very well for me and I've made a few dozen different designs with it, it's more or less a dead-end project now.
Cheers,
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
-
backspace119
- Posts: 346
- Joined: 25 Jan 2019
- Location: Knoxville, TN
Re: 65XX SBC general help and color display help needed
drogon wrote:
backspace119 wrote:
To get an idea of the components and spacing involved, I dumped the components into the layout editor and looked at the 3D view, here it is:
I must make an effort to learn KiCad myself though - been stuck in Fritzing for the past 6 years or so and while it's worked very well for me and I've made a few dozen different designs with it, it's more or less a dead-end project now.
Cheers,
-Gordon