Newsgroups: comp.sys.sinclair
Path: ulke.hiMolde.no!trane.uninett.no!sunic!sunic.sunet.se!seunet!news2.swip.net!plug.news.pipex.net!pipex!edi.news.pipex.net!pipex!uknet!newsfeed.ed.ac.uk!hwcee!cee.hw.ac.uk!ceeggg
From: ceeggg@cee.hw.ac.uk (Delicious Pain)
Subject: Re: Old Videoface on +3, help!
Message-ID: <DB6suG.I0L@cee.hw.ac.uk>
Lines: 59
Sender: ceeggg@cscd4c20.caledonia.hw.ac.uk (Delicious Pain)
Reply-To: ceeggg@cee.hw.ac.uk (Delicious Pain)
Organization: Digital Equipment Corporation
References:  <626.9506271346@atlas>
Date: Tue, 4 Jul 1995 10:23:04 GMT


|>> >I'm trying to fix an old Videoface (which uses a port which clashes
|>> >with the +3's memory ports) so it uses a different port. From looking
|>> >at the software, it uses the ports BCh, BDh, BEh and BFh, and does
|>> >both input and output.
|>> 
|>> >I've opened it up and looked at which pins of the expansion port it
|>> >connects to. It connects (in total) to D0-7, A7, A6, A1, A0, /IORQ,
|>> >/RD and connects both GNDs together.
|>[...]
|>> OK, so your interface uses A7, A6, A1 and A0.  It probably assumes that
|>> 
|>>  ^A6 /\  A1 /\  A0  -> port BF is being used
|>>  ^A6 /\  A1 /\ ^A0  -> port BE is being used
|>>  ^A6 /\ ^A1 /\  A0  -> port BD is being used
|>>  ^A6 /\ ^A1 /\ ^A0  -> port BC is being used
|>> 
|>> (I don't know what A7 would be for).  I've now argued myself into a corner
|>> somewhat, because above I have suggested that whenever you access ports
|>> BC or BE the Spectrum thinks you are accessing port 254 as well.
|>> 
|>> Now then, how this affects the +3 I have no idea, because the +3's ports
|>> all have A6=1 so accessing them should not cause the video device to do
|>> anything unless the A6 connection isn't working properly.  On the other
|>> hand, it is hard for me to imagine that the +3's decoder for the FD ports
|>> works the "cheap" way, which is the only reason why accessing the device
|>> should confuse the +3.
|>
|>It seems to be one of the memory ports it's clashing with (presumably
|>the one which is additional to the 128's one, as the device is claimed
|>to work on a 128).
|>
|>Hmm. If I remember rightly, the software for the Videoface uses OUT (xx),A
|>rather than OUT (C),A. What does this result in A8-A15 being? Is it
|>random, or FFh, or...?
|>
|>> So I thought I would be able to answer your question, but as it turns
|>> out I haven't a clue...
|>
|>Oh I don't know, you may have helped a bit. If I move the A1 and A0
|>connections to (for example) A3 and A2, would that avoid the +3's
|>internals sufficiently? In other words, of A0-A7, is it *only* A1 and
|>A0 that the +3 uses?
|>
Im not sure If im totally correct in this but Im sure that the spectrum handled
IO ports by attaching diferent lines to diferent devices and you were only
supposed to put one line low at a time. As far as I can see the 128K spectrums
used a bug in the Z80 processor to allow them 16 IO devices rather than only
8 as under the 48k spectrums. ie the instruct is out (bc),a not out (c),a.
I hope this helps.

--
-Delicious Pain
 _____________________________________________________________________________
( "There is no pleasure but for pain"|  With a flash of purifying light the   )
 )       ceeggg@cee.hw.ac.uk         |  World was destroyed, then there was  (
(   http://www.cee.hw.ac.uk/~ceeggg  |  Darkness. Out of the Darkness arose   )
 )      "Happiness in Slavery"       |   the dark avenger - Delicious Pain   (
(____________________________________|________________________________________)
