The Final Twists of the Twistor

Author(s): N. A. Pashtoon
Publication: LISTing Newsletter
Date: May - June 1985
Pages: 31-34

BACKGOUND:

For those of you who may be picking LIST for the first time , the TWISTOR was a bus adaptor for Spectrum peripherals especially the Microdrives, which when used with the TS2068 ( equipped with a Spectrum emulator) , made the combination work properly. The first article was published in the Dec./Jan. issue of LIST. That design worked with my two computers properly. Later it was discovered that it did not work as intended with all TS2068 computers. In the Feb.85 issue of LIST a modified design, which upon extensive testing did work . The solution in the Feb. issue was an interim solution, which required caps on some timing critical lines as well as a hanging wire from Sinclair’s Interface 1 to the Emulator cartridge. In the same issue mention was made of experiments utilizing the ROMCS signal from I/F 1 and other bus signals for switching banks via the BE input to the TS2068. These circuits did switch banks properly, but it did not solve the timing problem we were faving. In the mean time we had feedback from our readers. Recently we were lucky to get two excellent solutions simultaneously from Wes Brzozowski in the SINCUS NEWS as well as letter from John Oliger. John’s letter is reproduced on P.15. Since both solutions implement the same logical expression we will call the solution the B/O solution.

MODIFIED TWISTOR DESIGN:

Our objective is to prepare a list of recommendations for the manufacture of the TWISTOR in the light of what was said above, as well as taking the TC2068 and TIMEX Disk Drive bus into consideration.

An introductory word to LIST newcomers. The Sinclair I/F 1-Microdrives switches in an 8K ROM , which shadows the lower 8K of HOME ROM , whenever a syntax error is detected. This causes the system to do a RST08. When the op code fetch of the RST08 commences , the address 0008H on the address lines is decoded by the hardware inside the I/F 1 , switching off the Home ROM and switching-in the shadow ROM. Exactly the same principle of operation is utilized by the TIMEX Disk Drive Interface. The I/F 1 gives an indication of this on the ROMCS line. The ROMCS line goes active high when the shadow ROM is switched-in. Otherwise it is tri-state and stays in the Hi-z state.

To utilize the ROMCS from I/F 1, in my Feb. experiments I always conditioned it with MREQ as well as some other signals (see the Feb. issue of LIST). Now if you look at the timing diagram of the Z80 bus, one discovers that MREQ goes low exactly half a T state ( 180 nS) later than the address lines. Consequently the BE input of the computer was brought active low barely enough in time for some computers , and some others refused to work. Wes and John show clear headed thinking in omiting the MREQ coditioning , thus gaining themselves the 180 nS. While I was concerrned with the speed of the EPROM in the emulator and the transmission delay in the decoding, they made that discussion academic , by gaining such a substantial time. So congratulations Wes and John for a very neat solution.

When the B/O solutions arrived I didnot have the 74LS10 and the 74LS151 in my junk box. From my Feb. experiments I had a 74LS138 on my TWISTOR. The only modification that I had to make was to get rid of the MREQ coditioning. The circuit works properly and every time. Gone are the capacitors, as well as the hanging wire.

In Fig.1 a schematic of Wes’ circuit as well as John’s circuit is shown. I also show my modified circuit which I used for making the TIMEX Disk drives work with the TS2068. The logical function these circuits realize is shown in equation form in John’s letter on P.15. ( Please note that John forgot to complement the expression). Wes’ circuit realizes the same logical function. If you look up a data book for LS151 , the logical expression for the chip is intimidating. But , if you look at the circuit carefully , all the inputs are asserted high, except I4. The contribution of all these inputs to the logical expression for the chip is zero. This simplifies the expression tremendously.

In words all three circuits generate an active low output when ROMCS is active high ( i.e. the shadow ROM needs attention) and when A14 , and A15 are low ( i.e. when the lower 16K of memory is addressed). The circuits follow:

Fig. 1 Brzozowski, Oliger and modified Pashtoon BE circuits
Fig. 1 Brzozowski, Oliger and modified Pashtoon BE circuits

In Fig.2 (REFERENCE SHEET) we show the TS2068, Spectrum, TC2068 , and ZX81 buses. The slots are purposedly aligned. My recommendations for the finalized TWISTOR design is to adopt the TC2068 bus , lock – stock- and barrel. Here are the recommendations ( Enter Lengua and TEJ Electronics take note):

1) Use any of the above circuits or equivalent for feeding back the ROMCS information to the computer via the BE input.

2) Use only one regulator ( the original TWISTOR had only one) preferably ; a 9 volt regulator. The TC2068 bus has no provision for connection of 12 volts to pins 22T , and 23T.

3) Pin 20T of the Spectrum , which is supposed to be -5 volts , is comnected to raw DC in the TC2068. In my TWISTOR I didnot follow this part of the recipe. Both the Microdrive and the Disk Drive are working properly.

4)Bring out the complete TS2068 bus to the TWISTOR board.

5) In line with 4 , I would like to urge you to provide for a small prototyping area , where the the one time use video signals can be taken care of. The space provided should accomodate , say, a SYNC stripper circuit like the one recommended by TIMEX.

6) Make a provision for a switch that will either connect or disconnect the M1 line from say the microdrives. The line will be pulled high on the Microdrive side of the TWISTOR. This way there is no need to disconnect the TWISTOR when a user likes to use his/her machine in the TS2068 mode.

                         REFERENCE SHEET                    [illegible]

SPECTRUM-LIKE BUSES                                                 TS2068-LIKE BUSES
SPECTRUM                     TC 2068                           REF  TS 2068                      ZX 81
TOP                  BOTTOM  TOP      BOTTOM                   #    TOP                BOTTOM    TOP     BOTTOM
                             B        GND                      31   GND                GND
                             G        Con[illegible] to PAL ?  30   SOUND              VIDEO
                             R        SYNCH                    29   IOA5               BUSISO
NC                   A11     NC       A11                      28   B̅E̅                 B
A10                  A9      A10      A9                       27   R̅O̅S̅C̅S̅              G
A8                   B̅U̅S̅A̅C̅K̅  A8       B̅U̅S̅A̅C̅K̅                   26   E̅X̅R̅O̅M̅              R
R̅F̅S̅H̅                 R̅O̅M̅C̅S̅   R̅F̅S̅H̅     R̅O̅M̅S̅C̅S̅                   25   R̅F̅S̅H̅B̅              NC        R̅F̅S̅H̅    R̅O̅M̅C̅S̅
M̅1̅                   A4      M̅1̅       A4                       24   M̅1̅                 A4        M̅1̅      A4
+12V.                A5      NC       A5                       23   R̅E̅S̅E̅T̅              A5        R̅E̅S̅E̅T̅   A5
+12V.                A6      NC       A6                       22   B̅U̅S̅R̅Q̅              A6        B̅U̅S̅R̅Q̅   A6
W̅A̅I̅T̅                 A7      W̅A̅I̅T̅     A7                       21   W̅A̅I̅T̅               A7        W̅A̅I̅T̅    A7
-5V.                 R̅E̅S̅E̅T̅   +9V      R̅E̅S̅E̅T̅                    20   B̅U̅S̅A̅C̅K̅             A8        B̅U̅S̅A̅C̅K̅  A8
W̅R̅                   B̅U̅S̅R̅Q̅   W̅R̅       B̅U̅S̅R̅Q̅                    19   W̅R̅B̅                A9        W̅R̅      A9
R̅D̅                   V       R̅D̅       NC                       18   R̅D̅B̅                A10       R̅D̅      A10
I̅O̅R̅Q̅                 U       I̅O̅R̅Q̅     NC                       17   I̅O̅R̅Q̅B̅              A11       I̅O̅R̅Q̅    A11
M̅R̅E̅Q̅                 Y̅       M̅R̅E̅Q̅     NC                       16   M̅R̅E̅Q̅B̅              A12       M̅R̅E̅Q̅    A12
H̅A̅L̅T̅                 VIDEO   H̅A̅L̅T̅     VIDEO                    15   H̅A̅L̅T̅               A13B      H̅A̅L̅T̅    A13
N̅M̅I̅                  GND     N̅M̅I̅      GND                      14   N̅M̅I̅                A14B      N̅M̅I̅     A14
I̅N̅T̅                  I̅O̅R̅Q̅G̅E̅  I̅N̅T̅      NC                       13   I̅N̅T̅                A15B      I̅N̅T̅     A15
D14                  A3      D4       A3                       12   D4                 A3        D4      A3
D3                   A2      D3       A2                       11   D3                 A2        D3      A2
D5                   A1      D5       A1                       10   D5                 A1        D5      A1
D6                   A0      D6       A0                       9    D6                 A0        D6      A0
D2                   CLK     D2       CLK                      8    D2                 CLK       D2      CLK
D1                   GND     D1       GND                      7    D1                 GND       D1      GND
D0                   GND     D0       GND                      6    D0                 GND       D0      GND
SLOT                 SLOT    SLOT     SLOT                     5    SLOT               SLOT      SLOT    SLOT
NC                   +9V     NC       +9V.                     4    DZIN               NC        R̅A̅M̅C̅S̅   +9V
D7                   +5V.    D7       +5V                      3    D7                 +5V       D7      +5V.
A13                  A12     A13      A12                      2    A7RB               +15V.
A15                  A14     A15      A14                      1    EAR                TAPE out
                             E̅X̅R̅O̅M̅    B̅E̅                       0    GND                GND

                                              NAP  Apr. 29,'85
Fig. 2 Reference sheet: Spectrum, TC2068, TS2068 and ZX81 buses (NAP Apr. 29 '85)
Fig. 2 Reference sheet: Spectrum, TC2068, TS2068 and ZX81 buses (NAP Apr. 29 '85)

So much for the recommendations. I think all of us are interested in knowing about the Microdrive compatibilty of the TC2068, and how it is achieved. Fig.3 shows the circuit utilized in the TC2068. I have not tested the circuit in a TS2068. I do want to follow the cardianl rule to the letter ” DON’T BREAK ANY TRACES IN THE TS2068!”. I can obey this directive since a friend desoldered and socketed every chip in sight ( except the SCLD) in one of my TS2068s using industrial desoldering equipment. None of the chips got damaged. Guranteed that none of the traces is broken either !!! I will report on this experiment in the future.

Fig. 3 TC2068 Microdrive compatibility circuit
Fig. 3 TC2068 Microdrive compatibility circuit

NOTE: The diodes in Fig 1 are necessary. If you monitor the BE line in TS2068, when you are inputting a line, a strobe (probably 10 a sec.) appears. Either the circuit diagram for TS2068 does not show this, or the SCLD designer goofed, by not buffering this input.

NOTE

We were planning to publish an article on the use of ZX-81 peripherals with the TS2068. For than a month we have the prototypes for the bus adaptor. My apologies to club member who were interested in this project. Next issue we will write the article. We had also to postpone the article on RS232 & networking, as well as the TAXAN 8210 monitor. Next issue I hope!

NAP Apr. 29, ’85

Transcription note: The bus sheet is typed as lettered. Its D14 stands where the other charts in this newsletter have D4, and U and V are swapped against those charts. ROMSCS is underlined, not corrected.