How to convert a Sinclair ZX81 or Timex-Sinclair TS1000 into a programmable printer buffer
Not too many years ago, more than a million very-low-cost Sinclair ZX81 and Timex-Sinclair TS1000 computers were sold to consumers who wanted a taste of working with the new devices. Most of these computers are now stored away, just gathering dust due to obsolescence. If you’re lucky enough to have one of these tiny mites but haven’t used it in years and don’t know what to do with it, here’s a way to convert it into a Centronics-compatible parallel printer buffer that can free up your present computer during printing operations.
As an example of how effective the modification is, this manuscript tied up my computer for 11 minutes while printing. In contrast, using the ZX81/TS1000 as a printer buffer reduced this to 12 seconds!
You can do the conversion at a fraction of what it would cost you to buy a commercial buffer or build one from scratch. Converting a ZX81 or TS1000, as described here, offers a number of advantages not normally obtained with commercial or home-built buffers. Among these are: a power-on memory test/size-determination feature; a Multi-Copy Mode that lets you select up to 255 copies of a document to be printed; continuous display of buffer filled or copies remaining to be printed; a pause function for suspending printing; a clear key to reset the Buffer; and automatic cancelation of Multi-Copy Mode on buffer size overrun.
This project makes permanent hardware modifications to the computer to make it possible for all the printer buffer interfacing logic to be contained in the computer’s original case. Once the modifications are made, you will no longer be able to run any of the computer’s original software, of course.
About the Circuit
To transform the ZX81 and TS1000 from computer into Printer Buffer, the original r-f modulator and ULA (uncommitted logic array) and ROM chips must be removed. A 2716 EPROM programmed with the Printer Buffer Program (see listing) goes into the original ROM socket and then a small interface board with ICs and cables that go to the printer and your present computer plugs into the original ULA chip socket. A 1-digit hexidecimal display, also on the interface board, shows the status of the Printer Buffer. Once the modification has been performed, functions such as pause, multiple copies and clear-buffer are provided through the ZX81’s or TS1000’s keyboard.
Shown in Fig. 1 is the schematic diagram of the interface-board’s circuitry that converts the ZX81 and TS1000 into the Printer Buffer. The two halves of the 74LS139 dual 1-of-4 decoder used for IC1 decodes both the memory and I/O (input/output) space. Quad D flip-flop IC2 latches hexidecimal decoder/driver/display IC5. The TIL311 used for IC5 contains all decoding and driving circuitry as well as the LED hex display itself in a single IC package. The left and right decimal points (see Fig. 2), for example, are used as extensions of the contents of 4-bit hex display IC5, representing the fifth and sixth bits, respectively. As a result, the possible range of the display is from 0 to 63, displayed as “0” through “.F.”.
Programmable peripheral interface IC3 handles all electrical interfacing required between computer and printer and monitors the Buffer’s keyboard for operator commands. The system clock is derived from the TLC555 timer chip, shown as IC4 in Fig. 1. The TLC555 timer was chosen for this application because it has a free-running clock frequency of up to 2 MHz. The standard 555 timer’s clock frequency is much more restrictive and, thus, is not adequate for this application.
Of the 64K bytes of possible memory space available in the ZX81 and TS1000, the first 16K is allocated for ROM, while the second 16K is allocated for the standard 16K RAM pack. Though the third and fourth 16K spaces are not used by Sinclair, other manufacturers have built RAM packs that make use of these spaces. The Buffer’s hardware and software have been set up to accommodate this maximum of 48K of user RAM, but be advised that the project has not been tested with such RAM packs.
Construction
Two main procedures must be performed to convert the ZX81 and TS1000 from a computer into a Printer Buffer. First you must modify the computer’s motherboard to accommodate the preprogrammed 2716 EPROM and the interface board. Then you build the interface board and install it in the computer.
When you disassemble the ZX81 or TS1000, make certain to remove the three screws hidden under the rubber feet. If you work carefully, there should be no need to remove the two keyboard ribbon cables from their connectors. If you do remove them, however, be very careful when putting them back.
Once you have the computer open, remove the 8K ROM and ULA chips from their sockets. Then remove the r-f modulator and tie all anode leads of D1 through D8 to ground.
Now is an excellent time to program the EPROM you’ll be using in this project. The hexidecimal code for the Printer Buffer program is given in the Program Listing. When the Printer Buffer is operating, the amount of information accumulated at any instant is shown on the hex display as a whole number of kilobytes. (Actually, 1 KB = 1,024 bytes). Therefore, 1,500 bytes will be displayed as a “1”. If you prefer to round the number up to the next kilobyte so that it is displayed as a “2” (kilobytes implied), make the changes indicated in the Program Listing when you program the data into the EPROM. (If you don’t have an EPROM programmer, an excellent stand-alone model that handles up to 128K EPROMs can be built from plans featured in the February and March 1987 issues of Modern Electronics.–Editor)
To make the 2716 EPROM work in the original ROM socket, pin 18 (-CE) must be tied to ground and pin 21 (Vpp) must be tied to +5 volts. Alternatively, you can bend pins 18 and 21 on the 2716 itself away from the IC case, install the EPROM in the ROM socket, and solder the pins to ground and +5 volts via lengths of hookup wire.
If you decide to cut traces, keep in mind that you may also be cutting off signals that are needed elsewhere on the motherboard. In such a case, jumper wires will have to be used to reconnect the isolated sections back into the circuit.
Cut a piece of perforated board with holes on 0.1″ centers to the size and shape shown in Fig. 3. The board and component layout shown will fit both the ZX81 and TS1000 cases and motherboards. Any construction technique that will yield a low-profile wired modular assembly will do. The prototype shown in the photos was built using 3M’s Scotchflex Breadboarding System. Other choices include Vector Electronics’ wiring pencil, printed-circuit board layout, etc. In all cases, use low-profile sockets for all ICs.
Using sockets for all ICs and for plugging in the DIP connectors at the ends of the Centronics cables, wire the circuit exactly according to Fig. 1. All signals from top to bottom on the left side of the schematic diagram are from the original ULA chip socket, at the pin numbers indicated. You need adapter pins that can be soldered to the interface board and be plugged into the ULA chip socket in the computer. Square header pins are too large for this purpose and are not recommended. If you can’t find appropriate pins, try using pins removed from ribbon cable DIP connectors.
Plug the wired circuit board module into the ULA socket on the ZX81’s or TS1000’s motherboard. Make sure you plug it in so that the added pins line up exactly with the slots in the ULA socket and pins 1 through pin 40 are properly indexed. Then connect the cables from the interface board to your printer and the computer that will serve as the host. If your computer printer port doesn’t use the eighth data bit, be sure to ground the appropriate pin going into the Printer Buffer. Also, signal lines such as Paper Out, Error, etc., should be tied to the appropriate logic level if your printer controller interrogates these lines.
Without any RAM packs installed in the Buffer, power up the Buffer, printer and computer. Internal memory (1K in the ZX81 and 2K in the TS1000) is sufficient for testing the Printer Buffer. Go through all functions (see Operation below). Once the Buffer has tested okay, power down the system, plug in the RAM pack, power up the system again and repeat all function tests.
Before reassembling the modified ZX81 or TS1000, cut two holes in the case. Cut one hole in the top of the case to provide a window to view the hex display. Cut the other hole in the side for the printer cables. Make provisions for and install a strain relief for the printer cables as well.
Using the Buffer
Keyboard control for full operation of the Printer Buffer is provided by the “C” and “S” keys on the ZX81 and TS1000. These keys control the Clear and Start/Stop/Set Copy functions, respectively. Pressing the “C” key at any time resets the Buffer, which cancels in its entirety all settings and any print job in progress.
On power-up, the Buffer runs through a simple memory test and determines the amount of memory available. The display indicates the current kilobyte of memory being tested. With the 16K RAM pack, the display will cycle up from 0 to F and then pause briefly prior to becoming ready for use. The Buffer is now in the Buffer Mode.
- Buffer Mode. In this mode, the Buffer simply accepts data from the host computer and sends it to the printer. This is the default mode. The Buffer will always be in this mode unless the Multi-Copy Mode is selected. Hence, immediately after power-up, pressing “C” to clear the Buffer, or termination of a multi-copy job, this is the active mode.
Since the output speed of the host computer is considerably faster than the printing speed of the printer, data will accumulate in the Printer Buffer. The amount of accumulation at any moment in time is shown on the hex display in kilobytes.
In the Buffer Mode, pressing the “S” key temporarily suspends the printing operation. During suspension, the display flashes on and off, but data from the host computer will be accepted if the Buffer is not full. Pressing the “S” key once more resumes the printing operation.
- Multi-Copy Mode. This mode allows a block of data to be printed up to a maximum of 255 times without intervention from the host computer. This mode can be selected only after a power-on or pressing of the “C” key to clear the Buffer and while the Buffer is waiting for the first character from the host computer. The number of copies to be printed is then set.
Should any characters be received from the host before the number of copies is set, the multi-copy option expires and the Buffer reverts to its default Buffer Mode. If this occurs, you must turn the Buffer off and then on or press the “C” key to clear the buffer and then reenter the Multi-Copy mode.
You select the number of copies to be printed by pressing the “S” key once for each additional copy desired. Each time the “S” key is pressed, the display increments to indicate the number of copies set. The largest number that can be displayed unambiguously by the display is 63, which is shown as “.F.”. Consequently, if the number of copies to be printed exceeds 63, the display restarts from 0. However, the number of copies is not returned to 0, and the internal counter continues to register the correct number of copies, up to 255 maximum.
After selecting the number of copies, you instruct the host computer to download whatever is to be printed to the Buffer. Once data transfer has begun, the display will show the number of kilobytes transferred. When downloading is complete, press the “S” key to commence multi-copy printing. At this time, the display will go back to showing the number of copies to be printed, including the current copy being printed.
Should the Pause/Copy key be pressed prior to completion of downloading, multi-copy printing will commence immediately based only on that information already stored in the Buffer.
If during downloading the information exceeds the capacity of the Printer Buffer, the Buffer automatically switches back to Buffer Mode and printing commences immediately. Only one copy will be printed.
Once printing has commenced, the Printer Buffer will not accept any data from the host computer until the preset number of copies have been run out.
Conclusion
This reworking of the basic ZX81/TS1000 gives new life to these computers. With just a few dollars and a few hours of your time, you’ll restore an idle computer to useful service and more than recoup whatever monetary investment you made for it in the first place.
PARTS LIST
Semiconductors:
IC1 - 74LS139 dual 1-of-4 decoder
IC2 - 74LS175 Quad D flip-flop
IC3 - 8255A-5 programmable
peripheral interface
IC4 - TLC555 CMOS timer
IC5 - TIL311 hexidecimal decoder/
driver/display
Capacitors:
C1 - 200 pF disc
C2 - 10 F, 16-volt tantalum
Resistors (1/4 - watt, 5%):
R1,R2 - 820 ohms
R3 - 100 ohms
R4 - 330 ohms
Miscellaneous: Programmed MM2716-45 2K x 8 450-ns EPROM (see text); perforated board with 0.1″ hole centers(Radio Shack #276-158 or similar); low-profile sockets for all ICs and plug-ins for Centronics cables; adapter pins for plugging into sockets (see text); male and female Centronics-compatible printer cables with 14-pin DIP connectors at other end; hook-up wire; solder; etc.
NOTE: The source-code listing for the Printer Buffer Program is available in printed form from NAND Engineering, 1458 Meadowbrook Rd., Gloucester, Ontario, K1B 5G7 for 18.00 prepaid.




Listing 1. HEX listing of the Printer Buffer Program.
:20000000F33EB1D3C33E0DD3C33E40D340312740212B4011FFFF36AA7ABC20047BBD280326
:200020002318F3212B40220A40220C400100007EFEAA2025220C4003AFE5D5606911000408
:20004000A7ED5238033C18F9CBF7D340D1E17ABC20047BBD28032318D6210020CDA5022107
:200060000020CDA5021806DBC2CB4F2036110000010000D92A0A40220040220240AF3204B7
:2000800040320640320740320840321340322A403E013205403E4032104021010022114049
:2000A0002228402A2840110100A7ED522806222840C36B0121C8002228403A0740A7201278
:2000C0003A05403213403A2A40A7204D2113403518473A0840A72002180E3A2A40A7200878
:2000E0003A0640321340183108D9ED530E4060697CA720067DA72002180A3ABA02A7280400
:2001000011FF0319AF110004A7ED5238033C18F9ED5B0E4032134008D93A1040CB47200DBC
:20012000CBF7321040210100221140182D2A1140110100A7ED52221140201F3A1040CB77B0
:20014000280DCBB7321040210400221140180BCBF73210402106002211403A1040CB7728D9
:20016000073A1340CBF71801AFD340DBC2CB572060219600CDA502DBC2CB572054DBC2CB49
:200180005728FA219600CDA502DBC2CB5728EE3A0740A720112105407EFEFFCA9F01343ED0
:2001A00001322A40182B3A05403D280E3E01320840320540AF322A4018173A0440EE013224
:2001C0000440A73A10402004CB871802CBC73210403A0840A7205EED5B00402A0C40A7EDCD
:2001E00052280713AF3209401809ED5B0A403E013209402A0240A7ED52200EAF322A4032D7
:2002000006403E01320540182CDBC2CB6F2826DBC012ED530040D90313D93A0940A728042E
:20022000AF3206403A0740A7200B3A05403206403E013207403A2A40A7C26700DBC2CB4772
:20024000C267003A0440A7C26700ED5B02402A0040A7ED5220273A0640A728063D320640FC
:20026000200E320840D9110000010000D9C367003E01320840ED5B0A40D9424BD92A0C40E8
:20028000A7ED522803131804ED5B0A40ED5302401AD90BD9D3C13E0DD3C3CB87D3C3CBC744
:1C02A000D3C3C36700110100A7ED52280C380AED5AED52ED5AED5218ECC900013A
:00000001FF
Exchange these two bytes to enable the rounding-up feature, as discussed in the article.