6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Sep 19, 2024 5:34 pm

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Mon Sep 13, 2021 5:25 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8384
Location: Midwestern USA
Dr Jefyll wrote:
Alright, here's a bare-bones schematic, based on the discussion above...Edit to the diagram: remove inverter between A15 and /CE,

That could be further reduced to a single quad NAND. Jus' sayin'...

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


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 13, 2021 11:42 am 
Offline

Joined: Sun May 30, 2021 2:16 am
Posts: 374
BigDumbDinosaur wrote:
Jmstein7 wrote:
But, what wires connect to /OE and /CE (or /CS) on the chip? I.e., what wires get connected to Output Enable, Chip Enable, and, I guess, /RW?

Sorry for the earlier terse post. My wife called me to dinner right as I was posting and around here, a juicy chuck roast with corn-on-the-cob has priority over computers. :D


No problem - I fell asleep while putting my kids to sleep. :lol: Just got up, heading to work. To be continued!

Jon


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 14, 2021 4:16 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
As noted earlier, there's more than one "right answer" to the question. Here again is the "classic" schematic -- the arrangement which uses a pair of NAND gates to generate qualified /Read and /Write signals from Phi2 and the CPU's R/W output. I added the Truth Table for typical RAMs.
Attachment:
basic 816 glue_.png
basic 816 glue_.png [ 13.06 KiB | Viewed 431 times ]


Now here's a schematic which, by comparison, has both advantages and disadvantages. Therefore it's reasonable to make your choice according to prevailing priorities and circumstances.
Attachment:
basic 816 glue v2.png
basic 816 glue v2.png [ 13.31 KiB | Viewed 431 times ]


The classic circuit requires more gates, but it may be a better choice if you're keen to run an old-ish RAM at the highest possible speed. /CE is what "wakes up" the chip and moves it from "power-down" to "selected," and the classic circuit allows /CE to go true ASAP. Then later when Phi2 rises we get the actual Read or Write. These four modes are shown in the Truth Table (and the "classic" version uses all four modes)

The new circuit is simpler but the RAM remains in "power-down" until Phi2 rises; then it transitions directly into either Read or Write. (The "selected" mode never occurs.) The lack of an advance wake-up results in a performance penalty which you may or may not deem significant.

It may seem odd that /OE is grounded; however, in the Truth Table you'll see that the state of /OE doesn't matter (it's a "don't care") if /WE is low. /WE and /CE alone are sufficient to select the three modes we need: power-down, read and write.

( Whether you do or don't choose the classic circuit is a general decision -- it has no specific bearing on the use of the '816 as opposed to '02 or 'C02. )

-- Jeff

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


Last edited by Dr Jefyll on Tue Sep 14, 2021 12:04 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 14, 2021 12:03 pm 
Offline

Joined: Sun May 30, 2021 2:16 am
Posts: 374
I laid this out late last night. I just have to label what everything is :lol:

Image

edit: I already see an error. Abort isn't tied high.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 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: