6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 5:05 pm

All times are UTC




Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: 1st design
PostPosted: Tue Dec 21, 2021 12:11 am 
Offline

Joined: Sun Nov 29, 2015 11:19 pm
Posts: 18
I'm trying out my hand at creates a 6502 system. Its a 6502, 3 VIAs, RAM and ROM. I was wondering if anyone would mind taking a look at it and seeing if I made any mistakes before I get a PCB made. Or really have any comments at all. I'm still learning all this and the most I've done so far is a much smaller breadboard setup.

I've attached the schematic as a PDF but I've also put it on on EasyEDA.

Thanks
- jzaun


Attachments:
File comment: Schematic
6502.pdf [233.83 KiB]
Downloaded 69 times
Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Tue Dec 21, 2021 12:38 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Hi, jzaun. Glad to hear about your project. But I guess you didn't see this recent thread:
Quote:
I'd be glad to help. But, honestly, I find it too laborious reading a schematic like this.

There are several fairly clear comments in the posts that follow. You should probably read them. Message is, you need a real schematic if you're hoping folks will volunteer their assistance.

I did notice one little thing. This capacitor isn't connected properly. Do I need to explain? Cheers,

Jeff


Attachments:
6502 issue.png
6502 issue.png [ 12.29 KiB | Viewed 1018 times ]

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Tue Dec 21, 2021 2:02 am 
Offline

Joined: Sun Nov 29, 2015 11:19 pm
Posts: 18
Dr Jefyll wrote:
Hi, jzaun. Glad to hear about your project. But I guess you didn't see this recent thread:
Quote:
I'd be glad to help. But, honestly, I find it too laborious reading a schematic like this.

There are several fairly clear comments in the posts that follow. You should probably read them. Message is, you need a real schematic if you're hoping folks will volunteer their assistance.


Thanks, I'll read through that now.


Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Tue Dec 21, 2021 3:57 am 
Offline

Joined: Sun Nov 29, 2015 11:19 pm
Posts: 18
I've worked on sheet 1 based on the other thread I was pointed to. I've connected things directly rather than a bunch of netlists. But before I work on the other sheets, I'd like feedback on this one. Is this easier to follow? Are their ways to make it easier to understand or changes I should make to the layout?

Thanks for taking a look,
- Justin


Attachments:
Schematic_6502_2021-12-20.png
Schematic_6502_2021-12-20.png [ 467.41 KiB | Viewed 997 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Tue Dec 21, 2021 4:50 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
jzaun wrote:
I've worked on sheet 1 based on the other thread I was pointed to. I've connected things directly rather than a bunch of netlists. But before I work on the other sheets, I'd like feedback on this one. Is this easier to follow? Are their ways to make it easier to understand or changes I should make to the layout?

Thanks for taking a look,
- Justin

It seems there are missing connections in there. Or, is it in color?

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


Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Tue Dec 21, 2021 10:45 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
Welcome, Justin!


Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Thu Dec 23, 2021 7:59 am 
Offline

Joined: Sun Nov 29, 2015 11:19 pm
Posts: 18
BigDumbDinosaur wrote:
It seems there are missing connections in there. Or, is it in color?


Hi BigDumbDinosaur. Not sure how but the colors of some of the wire junctions went to red, I've verified on the EasyESD forum that the color is just a setting and doesn't mean anything. I've set the colors all to white.

BigEd wrote:
Welcome, Justin!


Hi BigEd. Thanks :)


I've updated the schematics to remove most netlists that are contained on the same sheet. The exception is the last sheet as I couldn't figure out a clean way to connect the display. The existing netlists are setup as inputs on the left and outputs on the right.

Any feedback on the schematic of the 6502 computer or on the schematic layout would be very welcome.

Thanks for looking,
-- Justin


Attachments:
6502.pdf [510.83 KiB]
Downloaded 46 times
Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Thu Dec 23, 2021 1:42 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Justin, I think folks are a little busy at this time of year, and that's one reason you've had little response. But these schematics are much better!

The color scheme could still use improvement, IMO. I know you have to wrestle with EDA to control this, but it's probably worth the effort.

Meanwhile you're waiting for some design feedback! To speed things up I've reproduced your drawing in the style I (and many people) prefer.

-- Jeff


Attachments:
Image1.png
Image1.png [ 127.59 KiB | Viewed 856 times ]
Image2.png
Image2.png [ 63.25 KiB | Viewed 856 times ]
Image3.png
Image3.png [ 79.23 KiB | Viewed 856 times ]
Image4.png
Image4.png [ 81.37 KiB | Viewed 856 times ]
Image5.png
Image5.png [ 114 KiB | Viewed 856 times ]

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Thu Dec 23, 2021 5:13 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
What is the purpose of the CD4082? 4000-series logic is very slow, even at elevated voltages.

Also, it would be more informative if gates are drawn as gates, not boxes with pins. An AND gate drawn as an AND gate is much more informative than a collection of six AND gates in a rectangle. Try as I might, I just can't remember all the part numbers and what they do.

Something else I noticed is components don't have component IDs, such as R2 or U3. Was that an omission of oversight or intent?

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


Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Thu Dec 23, 2021 7:35 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
BigDumbDinosaur wrote:
What is the purpose of the CD4082? 4000-series logic is very slow, even at elevated voltages.

It's a dual 4-input AND gate. It wasn't in my NSC books, so I had to look it up online. Its max prop delay at 5V is 250ns! It should be ok of the IRQ\ ANDing, but Justin, for the EEPROM address decoding, if you ever go beyond 1MHz, you'll want to use at least 74HC logic. I know it will require two gates to replace the one, but the combined propagation will still be much, much faster.

Quote:
Also, it would be more informative if gates are drawn as gates, not boxes with pins. An AND gate drawn as an AND gate is much more informative than a collection of six AND gates in a rectangle. Try as I might, I just can't remember all the part numbers and what they do.

Justin, it will always be good to draw out the actual gates, rather than drawing rectangles with, in this case, A, B, C, D,... down the sides. I expanded the "General Steps For A Successful Project" page of the 6502 primer to add a section (actually now the entire last half of the page) on "Getting help on the 6502.org forum."

Dr Jefyll wrote:
To speed things up I've reproduced your drawing in the style I (and many people) prefer.

Thanks. I wasn't able to read the dark blue labels against the black background without getting up off my chair and getting really close to the monitor. It looked like there might be something there, but that was the extent of it, even though my vision is very clear.

Why are there two clock circuits with their outputs tied together? Are they just options to plug in two different sizes of packages, and only one will be there at a time? (Otherwise you definitely don't want two outputs fighting each other.)

On sheet 4, I strongly recommend putting at least a ground connection on the PORTA and PORTB connectors, if not also the +5V. Further, you could use dual-row pin headers (so you can plug standard-sized IDCs into them) and put ground pins on opposite corners, and Vcc pins on the remaining two opposite corners, so if something gets plugged in backwards, the power and ground will still be correct and you won't destroy anything. Standard IDC (insulation-displacement connectors, which you press onto ribbon cables) come in 10, 14, 16, 20, 26, 34, 40, and 50 connections.

Be sure to add debouncing to your reset circuit. The potential problem and remedy is described in the reset page of the 6502 primer. Be sure to go through the entire 6502 primer though. It was initially written about 20 years ago to address problems and questions that kept coming up on the forum, then I finally got my own site and got it posted in 2012, and I keep making improvements to it regularly. It's in 22 logically organized sections. It will save you a lot of grief.

I'd like to see comments about the USB keyboard circuit from anyone who has looked into USB more than I. I have a fat book about it, but have not looked in depth at the timing.

_________________
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: 1st design
PostPosted: Thu Dec 23, 2021 8:12 pm 
Offline
User avatar

Joined: Mon Aug 30, 2021 11:52 am
Posts: 287
Location: South Africa
GARTHWILSON wrote:
BigDumbDinosaur wrote:
What is the purpose of the CD4082? 4000-series logic is very slow, even at elevated voltages.

It's a dual 4-input AND gate. It wasn't in my NSC books, so I had to look it up online. Its max prop delay at 5V is 250ns! It should be ok of the IRQ\ ANDing, but Justin, for the EEPROM address decoding, if you ever go beyond 1MHz, you'll want to use at least 74HC logic. I know it will require two gates to replace the one, but the combined propagation will still be much, much faster.
Getting a bit side-tracked but... if you need a 4-input AND gate then try a SN74F21DR or it's sibling the 4-input NAND gate SN74F20DR. If you're using a breadboard you'll need to solder them onto a SOP14 adapter first. They have typical propagation delays listed as 3.3ns. I have one chugging along at 65MHz quite happily.

Check your voltage levels though, I don't know if F plays nicely with HC. There's a gotcha if you're using it in a 3.3V setup but it looks like you're using 5V everywhere (for 3.3V the inputs can be 3.3V but the supply must be 5V to get at least a 2.4V high out).


Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Thu Dec 23, 2021 10:10 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
AndrewP wrote:
Getting a bit side-tracked but... if you need a 4-input AND gate then try a SN74F21DR or it's sibling the 4-input NAND gate SN74F20DR. If you're using a breadboard you'll need to solder them onto a SOP14 adapter first. They have typical propagation delays listed as 3.3ns. I have one chugging along at 65MHz quite happily.

74F logic is a power hog and performs no better, on average, than 74AC. I'm somewhat amazed that 74F devices are still available through distribution.

Quote:
Check your voltage levels though, I don't know if F plays nicely with HC.

74F has TTL-level outputs, so problems might ensue in attempting to drive 74HC. I absolutely do not recommend the use of 74F in new designs and would not even use 74F to repair old equipment that was built with it.

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


Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Fri Dec 24, 2021 8:45 am 
Offline
User avatar

Joined: Mon Aug 30, 2021 11:52 am
Posts: 287
Location: South Africa
BigDumbDinosaur wrote:
74F logic is a power hog and performs no better, on average, than 74AC. I'm somewhat amazed that 74F devices are still available through distribution.
Gah! That would explain why my current draw is so high. I just cannot find other 4 input NAND / AND gates that interface with the LVC ICs I'm using.


Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Fri Dec 24, 2021 1:21 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
I'm not fond of the 74F series. But the chips are fast, and the family does offer certain gates/functions that're unavailable elsewhere. For me that's the only argument in favor of using a 74F chip. If I use 74F at all, it would be just a single chip or maybe two, certainly not the entire project.

Sometimes there's a specific problem to be solved, and no entirely comfortable answer. The rational approach is to list the pros and cons of using 74F, then assign a weight to each of those factors according to prevailing circumstances.

For example, if the project is to be battery operated then 74F's hunger for power weighs heavily against it, probably outweighing the appeal of the sought-after gate/function. An alternative can usually be found, awkward though the alternative may be. This too needs to be weighed.

In other circumstances, a few extra mA won't matter much, and the availability of a key function may tip the decision in 74F's favor. Been there, done that. Had to hold my nose, but it was the right decision.

-- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
 Post subject: Re: 1st design
PostPosted: Fri Dec 24, 2021 8:51 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
AndrewP wrote:
BigDumbDinosaur wrote:
74F logic is a power hog and performs no better, on average, than 74AC. I'm somewhat amazed that 74F devices are still available through distribution.
Gah! That would explain why my current draw is so high. I just cannot find other 4 input NAND / AND gates that interface with the LVC ICs I'm using.

All 74AC devices will run at and accept 3.3 volt inputs.

_________________
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  [ 44 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 30 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: