Newbie shopping list
Newbie shopping list
Hello, I'm a hobbyist who recently got the itch to do a retro computer build. I've been lurking the net, and have just enough scattered knowledge on 6502 builds to be dangerous, but not enough to pull the trigger on some parts. I plan on using Mouser (out of habit I guess), but I'm open to suggestion.
Okay, first the 6502. MY first romantic notion was to get a few original MOS parts. I still have a romantic notion of doing his, but have convinced myself that a modern CMOS part is a more reasonable direction. WDC seems to be the name I see the most, but they have more than one option.
So I want as close to an original 6502 experience I can get with a modern CMOS part. Which WDC part fills that bill?
My next question might determine the answer to the last one. What logic family for glue logic will be the most trouble free? I plan to run at 1 Mhz. Would 74HC be fine?
Ok, every video I see the builder never seems to specifically say what RAM and ROM chips they use. I have no idea what to get. I just want something that works. The ROM I'd think EEPROM, and hopefully one that can be written without to much extra hardware. Are there such chips?
About the PIA. I'm not completely clear what its for, since every video I see, there is some sort of micro-controller being used with it. I guess my question is, what does the PIA do, and what is the micro-controller doing? My immediate goal is just to get a working computer that can talk to my modern computer via a serial connection. I plan to use a Bus Pirate as a serial to USB adapter, but I'm not clear exactly how to get the serial from the CPU. I know the PIA is part of that equation, just not exactly which part. I also thought a seven segment display driven by an AVR (that's the MCU I'm most familiar with) would be nice. I'm thinking maybe a Raspberry PI for getting keyboard/screen I/O. Open to suggestion on all of this.
Long term goal is a computer that is not dependent on modern interfaces for keyboard/screen/storage. That's a distant goal. I just want to get something working for now. Ok, with those goals in mind, what is my Mouser shopping list for chips? What CPU, what PIA, and how much more do I need to get a serial I/O interface with my Bus Pirate?
Thanks for your patience!
Okay, first the 6502. MY first romantic notion was to get a few original MOS parts. I still have a romantic notion of doing his, but have convinced myself that a modern CMOS part is a more reasonable direction. WDC seems to be the name I see the most, but they have more than one option.
So I want as close to an original 6502 experience I can get with a modern CMOS part. Which WDC part fills that bill?
My next question might determine the answer to the last one. What logic family for glue logic will be the most trouble free? I plan to run at 1 Mhz. Would 74HC be fine?
Ok, every video I see the builder never seems to specifically say what RAM and ROM chips they use. I have no idea what to get. I just want something that works. The ROM I'd think EEPROM, and hopefully one that can be written without to much extra hardware. Are there such chips?
About the PIA. I'm not completely clear what its for, since every video I see, there is some sort of micro-controller being used with it. I guess my question is, what does the PIA do, and what is the micro-controller doing? My immediate goal is just to get a working computer that can talk to my modern computer via a serial connection. I plan to use a Bus Pirate as a serial to USB adapter, but I'm not clear exactly how to get the serial from the CPU. I know the PIA is part of that equation, just not exactly which part. I also thought a seven segment display driven by an AVR (that's the MCU I'm most familiar with) would be nice. I'm thinking maybe a Raspberry PI for getting keyboard/screen I/O. Open to suggestion on all of this.
Long term goal is a computer that is not dependent on modern interfaces for keyboard/screen/storage. That's a distant goal. I just want to get something working for now. Ok, with those goals in mind, what is my Mouser shopping list for chips? What CPU, what PIA, and how much more do I need to get a serial I/O interface with my Bus Pirate?
Thanks for your patience!
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: Newbie shopping list
Dan, welcome.
Before you get much further, I would like to strongly recommend Garth's excellent primer pages:
http://wilsonminesco.com/6502primer/index.html
Get yourself a cup of coffee and go for a browse ... I promise that you won't regret it.
Mike B.
Before you get much further, I would like to strongly recommend Garth's excellent primer pages:
http://wilsonminesco.com/6502primer/index.html
Get yourself a cup of coffee and go for a browse ... I promise that you won't regret it.
Mike B.
Re: Newbie shopping list
Thanks. I did stumble upon that, and it's definitely the most complete resource I've found yet.
I'm not even likely to start just yet. I have another more modern project that I need to see through before I get side tracked. I just want to have the parts. On hand so I can hit it on a whim
I'm not even likely to start just yet. I have another more modern project that I need to see through before I get side tracked. I just want to have the parts. On hand so I can hit it on a whim
- BigDumbDinosaur
- Posts: 9426
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Newbie shopping list
Dan Moos wrote:
Hello, I'm a hobbyist who recently got the itch to do a retro computer build. I've been lurking the net, and have just enough scattered knowledge on 6502 builds to be dangerous, but not enough to pull the trigger on some parts.
Quote:
I plan on using Mouser (out of habit I guess), but I'm open to suggestion.
Quote:
So I want as close to an original 6502 experience I can get with a modern CMOS part. Which WDC part fills that bill?
Quote:
My next question might determine the answer to the last one. What logic family for glue logic will be the most trouble free? I plan to run at 1 Mhz. Would 74HC be fine?
Quote:
Ok, every video I see the builder never seems to specifically say what RAM and ROM chips they use. I have no idea what to get. I just want something that works.
Quote:
The ROM I'd think EEPROM, and hopefully one that can be written without to (sic) much extra hardware. Are there such chips?
It is possible to reprogram an EEPROM in-circuit, but it's not a trivial matter to set up such a thing. I recommend that you invest in an inexpensive EPROM programmer and do it that way. There are sources on eBay.
Quote:
About the PIA. I'm not completely clear what its for...
Although not something about which you should think as you design your first build, there are lots of I/O devices that can be interfaced to a 65C02. You're not limited to just the WDC products.
Quote:
My immediate goal is just to get a working computer that can talk to my modern computer via a serial connection. I plan to use a Bus Pirate as a serial to USB adapter, but I'm not clear exactly how to get the serial from the CPU. I know the PIA is part of that equation, just not exactly which part. I also thought a seven segment display driven by an AVR (that's the MCU I'm most familiar with) would be nice. I'm thinking maybe a Raspberry PI for getting keyboard/screen I/O. Open to suggestion on all of this.
Ultimately, what you do depends on how much a purist you want to be and how much dependence on other hardware you are willing to accept. Some builders have used MCUs as I/O devices or even as bus logic controllers. My opinion is offloading that stuff to an opaque piece of hardware takes away some of the learning opportunity you would get working with basic discrete logic devices. Modern MCus do offer convenience—you just have to decide how much convenience you want vs. how much learning experience you want.
Quote:
Long term goal is a computer that is not dependent on modern interfaces for keyboard/screen/storage.
First thing for you to do, however, is read Garth's primer in its entirety, which will stimulate your thought processes and give you a broad picture of the world of 65C02 computing.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Newbie shopping list
Dan Moos wrote:
I just want to have the parts. On hand so I can hit it on a whim 
Another excellent site you can check out is Daryl Rictor's. Daryl (aka 8BIT) is another of our forum members, and you may just decide to build one of the projects he has listed there.
Welcome!
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: Newbie shopping list
Welcome Dan!
Finding a way to program your first ROM is a bit of a hurdle... I think your options are
- buy a programmer
- build a programmer
- ask someone to burn a ROM for you and post it
As a starting point, perhaps try this thread:
Any suggestions for an EEPROM Programmer?
Finding a way to program your first ROM is a bit of a hurdle... I think your options are
- buy a programmer
- build a programmer
- ask someone to burn a ROM for you and post it
As a starting point, perhaps try this thread:
Any suggestions for an EEPROM Programmer?
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Newbie shopping list
BigDumbDinosaur wrote:
The 65C21 peripheral interface adapter (PIA) is used to drive an external device from your system. The PIA provides two eight bit parallel ports whose individual bits can be programmed as inputs or outputs. For example, a PIA could be used to interface a parallel port printer to a 65C02 system. That said, most builds use the more capable 65C22 versatile interface adapter (VIA) due to it including a precision timer and a bi-directional serial shift register, as well as the two parallel ports of the PIA.
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: Newbie shopping list
GARTHWILSON wrote:
Another disadvantage I found the '21 PIA has compared to the '22 VIA is that access to the data-direction registers on the PIA is only indirect, requiring more instructions, making it pretty clumsy to emulate open-drain outputs when needed.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Newbie shopping list
I'm not necessarily going for "purist", but I'm leaning more that way. So using that buggy chip from the '70s has a certain attraction. I for sure like to do as much myself as I can, so while I might start with an MCU just to prove the thing is working, I do want more period correct stuff eventually. I'm thinking an incremental approach that becomes more "purist" as my chops grow.
My background in the hobby is varied. I started building tube guitar amps, so in some ways an 8 bit computer is a move up in time! My current project is an AVR driven guitar pedal switching system.
I have a decent lab setup with a few decent scopes, a logic analyzer, and the usual stuff, so I think my cost of entry is gonna be pretty cheap here. Get the appropriate big chips, a kit full of 74HC logic, and a few appropriate crystal oscillators.
My background in the hobby is varied. I started building tube guitar amps, so in some ways an 8 bit computer is a move up in time! My current project is an AVR driven guitar pedal switching system.
I have a decent lab setup with a few decent scopes, a logic analyzer, and the usual stuff, so I think my cost of entry is gonna be pretty cheap here. Get the appropriate big chips, a kit full of 74HC logic, and a few appropriate crystal oscillators.
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Newbie shopping list
Dan Moos wrote:
so I think my cost of entry is gonna be pretty cheap here. Get the appropriate big chips, a kit full of 74HC logic, and a few appropriate crystal oscillators.
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: Newbie shopping list
GARTHWILSON wrote:
Dan Moos wrote:
so I think my cost of entry is gonna be pretty cheap here. Get the appropriate big chips, a kit full of 74HC logic, and a few appropriate crystal oscillators.
When I designed my POC V1 unit, I decided to give it as much contiguous memory as possible, 52KB, stretching from $0000 to $CFFF. I put the I/O block at $D000-D7FF and ROM at $E000-$FFFF, 8KB worth. It was patent that such a memory map couldn't be realized with minimal glue logic. Since some of the challenge was to venture out into the unknown (the machine has a 65C816 instead of the more common 65C02—the '816 adds some design challenges), I decided that figuring out the required glue logic would be good exercise for the cerebrum. Accordingly, there is a complement of six glue logic chips:
- 74AC00 quad two-input NAND
- 74AC04 hex inverter
- 74AC08 quad two-input AND
- 74AC20 dual four-input NAND
- 74AC32 quad two-input OR
- 74AC138 3-to-8 decoder
As finally worked out, there are no more than two gates between the address bus and individual devices, which keeps the propagation delay down to a minimum. Although your first machine probably won't be run fast enough for prop delay to be a performance limiter, figuring out the total prop delay is a worthwhile exercise in understanding how it all works.
Obviously, you don't need to be this elaborate on a first build—I was going for a machine that would have enough oomph to run some fairly complicated software, as well as leave some room for I/O expansion—hence the 74AC138 decoder. Also, I just like to design and build complicated stuff.
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: Newbie shopping list
BigDumbDinosaur wrote:
As Garth noted, you can build a working machine with very little glue logic. Your limitation with that approach will be a rather "coarse" memory map and limited I/O
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: Newbie shopping list
GARTHWILSON wrote:
BigDumbDinosaur wrote:
As Garth noted, you can build a working machine with very little glue logic. Your limitation with that approach will be a rather "coarse" memory map and limited I/O
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Newbie shopping list
Thanks for all the great help guys! I went ahead and ordered some stuff. Even if some of it turns out to be not correct, I get a warm fuzzy feeling the more parts I have in my drawers, so I still win (people doing spring cleaning of their drawers please contact me!)
Here's what I ordered.
From Mouser:
2x W65C02S6TPG-14 CPUs
2x W65C22S6TPG-14 VIAs
2x W65C51N6TPG-14 Asynchronous Comm
4x 71256SA15TPG 32x8 SRAM
4x ECS-2100-AX-1.0 mHz oscillators
4x ECS-2200-AX-2.0 mHz oscillators
From Amazon:
1x AT 28C256 32k by 8 eeprom
This eeprom programmer:
https://www.amazon.com/gp/aw/d/B00K73TS ... ref=plSrch
And a kit with a large assortment of 74HC logic, so I can be prepared for anything.
Also got one of those UV eeprom erasers, just in case I ever go that route. (What is the advantage of the eproms with the UV window over the one I got anyway?)
Assuming my lab is well stocked with passives, LEDs, seven segs, breadboard supplies, a regulated PSU, and decent test gear, and a few options to connect a UART to a PC, is this all I need to get something going? (besides actual firmware to put in the ROM of course)
Here's what I ordered.
From Mouser:
2x W65C02S6TPG-14 CPUs
2x W65C22S6TPG-14 VIAs
2x W65C51N6TPG-14 Asynchronous Comm
4x 71256SA15TPG 32x8 SRAM
4x ECS-2100-AX-1.0 mHz oscillators
4x ECS-2200-AX-2.0 mHz oscillators
From Amazon:
1x AT 28C256 32k by 8 eeprom
This eeprom programmer:
https://www.amazon.com/gp/aw/d/B00K73TS ... ref=plSrch
And a kit with a large assortment of 74HC logic, so I can be prepared for anything.
Also got one of those UV eeprom erasers, just in case I ever go that route. (What is the advantage of the eproms with the UV window over the one I got anyway?)
Assuming my lab is well stocked with passives, LEDs, seven segs, breadboard supplies, a regulated PSU, and decent test gear, and a few options to connect a UART to a PC, is this all I need to get something going? (besides actual firmware to put in the ROM of course)
Re: Newbie shopping list
BTW, as you can see, I got extras of everything except the ROM (Mouser didn't have any, and I got the last one Amazon had Prime on)
3 reasons:
I won't be stopped if some magic smoke escapes
I don't have to disassemble the breadboard prototype when it's PCB time. That way I still have a working unit to reference.
I bet this won't be the last one of these I do!
3 reasons:
I won't be stopped if some magic smoke escapes
I don't have to disassemble the breadboard prototype when it's PCB time. That way I still have a working unit to reference.
I bet this won't be the last one of these I do!