Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II » Apple IIe bus timing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Apple IIe bus timing [message #354579] Tue, 17 October 2017 00:42 Go to next message
anthonypaulo is currently offline  anthonypaulo
Messages: 531
Registered: September 2013
Karma: 0
Senior Member
I want to make sure I'm reading Sathers' bus timing right (pages 4-7 and 4-8) and would appreciate confirmation or correction :

If I'm a peripheral card and want to write to the Apple II bus :

Place address on Address Bus and set R/W' LOW no more than 124ns after Phase 0 falls and place data on Data Bus no more than 108ns after Phase 0 rises; is this right? If so, how long do I need to keep the data there before it gets latched or 'clocked'?

Thanks in advance,

Anthony
Re: Apple IIe bus timing [message #354581 is a reply to message #354579] Tue, 17 October 2017 01:41 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: Jorge

On Tuesday, October 17, 2017 at 6:43:00 AM UTC+2, Anthony Ortiz wrote:
> I want to make sure I'm reading Sathers' bus timing right (pages 4-7 and 4-8) and would appreciate confirmation or correction :
>
> If I'm a peripheral card and want to write to the Apple II bus :

1.- PULL DOWN /DMA

> Place address on Address Bus and set R/W' LOW no more than 124ns after Phase 0 falls and place data on Data Bus no more than 108ns after Phase 0 rises; is this right? If so, how long do I need to keep the data there before it gets latched or 'clocked'?

Until the falling edge of Ø2 which is ~= Ø0 in the Apple II.

--
Jorge.
Re: Apple IIe bus timing [message #354582 is a reply to message #354579] Tue, 17 October 2017 01:51 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Brooks

On Monday, October 16, 2017 at 9:43:00 PM UTC-7, Anthony Ortiz wrote:
> I want to make sure I'm reading Sathers' bus timing right (pages 4-7 and 4-8) and would appreciate confirmation or correction :
>
> If I'm a peripheral card and want to write to the Apple II bus :
>
> Place address on Address Bus and set R/W' LOW no more than 124ns after Phase 0 falls and place data on Data Bus no more than 108ns after Phase 0 rises; is this right? If so, how long do I need to keep the data there before it gets latched or 'clocked'?
>
> Thanks in advance,
>
> Anthony

These are good references:

http://www.1000bit.it/support/manuali/apple/technotes/aiie/t n.aiie.02.html

and for cards to work on the //e & GS:

http://www.1000bit.it/support/manuali/apple/technotes/iigs/t n.iigs.068.html
http://www.1000bit.it/support/manuali/apple/technotes/iigs/t n.iigs.028.html

-JB
@JBrooksBSI
Re: Apple IIe bus timing [message #354587 is a reply to message #354582] Tue, 17 October 2017 02:59 Go to previous messageGo to next message
anthonypaulo is currently offline  anthonypaulo
Messages: 531
Registered: September 2013
Karma: 0
Senior Member
Oh man, those are some great references and supplements to Sathers' IIe book, thanks!
Re: Apple IIe bus timing [message #354592 is a reply to message #354587] Tue, 17 October 2017 05:46 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: Jorge

Lol, even at this the IIe is worse than the original:

The DMA device must allow 130 ns for the MD IN/OUT line to change, plus the delay for the 74LS245 to change directions which takes 25 ns, for a total of 155 ns.
After this 155 ns, the data must be valid on the bus within 55 ns, because the RAM requires data be setup at the CAS falling edge, which occurs 210 ns into 0o. This does not leave any time to spare, since, for example, a 74LS245 has a 40 ns enable time

--
Jorge
Re: Apple IIe bus timing [message #354643 is a reply to message #354581] Tue, 17 October 2017 20:07 Go to previous messageGo to next message
anthonypaulo is currently offline  anthonypaulo
Messages: 531
Registered: September 2013
Karma: 0
Senior Member
Question: what if, when Phase 0 falls and I place address on address bus and set R/W' to LOW so I can write a byte to RAM, I also place the data on the bus right away and hold it there until a little bit after Phase 0 falls.... will that achieve the same effect? Or is putting data down early mess things up?
Re: Apple IIe bus timing [message #354680 is a reply to message #354643] Wed, 18 October 2017 11:24 Go to previous messageGo to next message
Michael J. Mahon is currently offline  Michael J. Mahon
Messages: 1767
Registered: October 2012
Karma: 0
Senior Member
Anthony Ortiz <anthonypaulo@gmail.com> wrote:
> Question: what if, when Phase 0 falls and I place address on address bus
> and set R/W' to LOW so I can write a byte to RAM, I also place the data
> on the bus right away and hold it there until a little bit after Phase 0
> falls... will that achieve the same effect? Or is putting data down early mess things up?
>

Extra setup time is usually a good thing, as long as it doesn't extend back
into somebody else's hold time. ;-)

--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com
Re: Apple IIe bus timing [message #354710 is a reply to message #354643] Wed, 18 October 2017 17:03 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: Jorge

On Wednesday, October 18, 2017 at 2:07:15 AM UTC+2, Anthony Ortiz wrote:
> Question: what if, when Phase 0 falls and I place address on address bus and set R/W' to LOW so I can write a byte to RAM, I also place the data on the bus right away and hold it there until a little bit after Phase 0 falls.... will that achieve the same effect? Or is putting data down early mess things up?

You can't drive the data bus except in Ø0, and in the IIe it seems that you must (should?) NOT drive the data bus until after 155ns past the rising edge of Ø0, and then you've got only 55ns to put the data in there or the RAM may fail to grab it properly. The IIe is rubbish in so many uncountable ways...

See the previous message, it's in the tech notes J.Brooks has posted.

Then when Ø0 falls you've got to release it asap, in ns.
--
Jorge.
Re: Apple IIe bus timing [message #354744 is a reply to message #354710] Thu, 19 October 2017 10:15 Go to previous messageGo to next message
anthonypaulo is currently offline  anthonypaulo
Messages: 531
Registered: September 2013
Karma: 0
Senior Member
Thanks guys, and @John that link you sent was perfect, a 'for dummies' walk through of the dma hardware protocol. I am now able to write to the Apple IIgs although I am experiencing about 5 errors every 10 million writes, but i think I know what the problem is and I just need to tweak a delay. You guys are a wealth of knowledge, thanks again!
Re: Apple IIe bus timing [message #354745 is a reply to message #354744] Thu, 19 October 2017 10:21 Go to previous message
anthonypaulo is currently offline  anthonypaulo
Messages: 531
Registered: September 2013
Karma: 0
Senior Member
Speaking of doing this on the IIgs, can I assume that it would work on other Apple II's? The doc you sent states that since the IIe is more sensitive to timing, if it works on the IIe it will work on the other II's; is that also the case for the IIgs?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Apple IIgs mouse movement erases pixels on the screen in hi-res modes
Next Topic: PCPI Applicard Diagnostic?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Apr 19 21:45:56 EDT 2024

Total time taken to generate the page: 0.07239 seconds