6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 3:42 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Aug 18, 2008 9:59 pm 
Offline

Joined: Mon Aug 18, 2008 9:29 pm
Posts: 2
Hi,
I am designing a project with a 6502 and I need some information about the timing of the fetching of instructions from an external ROM chip. What I need to know is the maximum allowed time from after the 6502 places the instruction address on the address bus, to when that data must be present on the data bus for the 6502 to read.

Does anyone know what the max latency is for this?

Thanks,
Mark


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 19, 2008 2:29 am 
Offline

Joined: Wed Jul 30, 2008 2:11 am
Posts: 9
Location: Earth ?
The datasheet hosted here should have the answers
http://www.6502.org/documents/datasheet ... _r651x.pdf

_________________
Image
WW91IHdpbGwgbmV2ZXIgZ2V0IGJhY2sgdGhlIHRpbWUgeW91IHdhc3RlZCBkZWNvZGluZyB0aGlzIG1lc3NhZ2UgOkQ=


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 19, 2008 2:51 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
Take your cycle time (the inverse of your phase-2 frequency), subtract the address set-up time (tADS from the data sheet), and then subtract also the read data set-up time (tDSR also from the data sheet). You'll probably also have some address-decoding logic, so you'll have to subtract its guaranteed maximum propagation delay. You don't normally need any data buffers, but if you have them, they'll take extra too.

So for example, if you have a 14MHz WDC W65C02S and you're running it at 8MHz and 5V, your cycle time will be 125ns. From that, subtract the tADS which is 30ns max, and the tDSR which needs to be at least 10ns, and you get 85ns. Now let's say your address decoding takes a maximum of 25ns. That leaves you with 60ns for your ROM. Again, you don't normally need any data buffers, but if you have them, you'll have to subtract their delay as well, getting you down to approximately the very fastest of the common EPROMs or EEPROMs available, if you want it to be reliable.

It's highly unlikely that all of the parts will be at their worst guaranteed times, so with good design, you'll probably find that you can run the computer substancially faster than the data sheet numbers indicate-- but you can't count on it. If you're on the raggedy edge of it working, you might say, "It works great!", and then you find it doesn't work at all on a warmer day, since higher temperature slows it down. Lower power supply voltage will slow it down too. It would be good to increase the clock frequency until the computer starts having problems, just to feel for where the limit is, and then back it down a comfortable margin.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 19, 2008 9:04 pm 
Offline

Joined: Mon Aug 18, 2008 9:29 pm
Posts: 2
Thanks guys, this is exactly what I was looking for.
-Mark


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: barrym95838 and 37 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: