Jump to content

ZX Interface 1

From Wikipedia, the free encyclopedia

The ZX Interface 1 with the ZX Microdrive connected

The ZX Interface 1, launched in 1983, was a peripheral from Sinclair Research for its ZX Spectrum home computer. Originally intended as a local area network interface for use in school classrooms, it was revised before launch to also act as the controller for up to eight ZX Microdrive high-speed tape-loop cartridge drives. It also included a DE-9 RS-232 interface capable of operating at up to 19.2 kbit/s. At hardware level it was fundamentally a voltage adaptor, the serial protocol being implemented in software by bit-banging. This led to problems when receiving data, but not when transmitting.

A wedge-shaped device fitting underneath the ZX Spectrum, for correct fitment 2 screws needed to be removed from the underside of the Spectrum, the existing screwholes being used by longer screws running through the ZX Interface 1 to stop it from inadvertently becoming detached, the ZX Interface 1 contained 8 kB of ROM comprising the control software for the Microdrives, an RS-232 port and network interface. This extended the error handler in the Sinclair BASIC to allow extra keywords to be used. As this became an official standard, other developers quickly used this mechanism to create language extensions to Sinclair BASIC.

Two further revisions of the device's firmware were made following launch.[1] These aimed to improve ZX Microdrive cartridge formatting and access time, printing functions via the RS-232 interface, and other bugs in the firmware held in the device's internal 8K ROM. Machine code software which used the officially documented entry points ('hook codes') would experience few incompatibility issues; however, programs using non-standard entry points risked incompatibility due to the presence of revised entry points.

The same protocol, renamed QLAN, was later used on the Sinclair QL. This was intended to be interoperable with ZX Net, but due to timing differences interoperability was found to be problematic.

The ZX Interface 1 was incompatible with some later ZX Spectrum models such as the +2A and +3, due to differences in ROM and in the expansion connector. It was therefore impossible to connect and use the Microdrive units with these later models. It did, however, work with the original +2, although the much larger case made the interface an awkward fit.

Network

[edit]
ZX Spectrum peripheral ZX Interface 1
Sinclair QL rear

The device offered two network ports, allowing up to 64 ZX Spectrums to be daisy-chained using network leads up to 3 metres (10 ft) long. The network, called ZX Net, used a bidirectional wire with a proprietary CSMA-like protocol. Data could be sent or received at 100 kbit/s either to or from a numbered workstation, or broadcast to all nodes, allowing one machine to act as a server.

Station number 0 is used to indicate broadcast. Data is transmitted in packets, each a maximum of 255 bytes long; the packet and the header are protected by a checksum. Character transmission uses 1 start bit, 8 data bits and 1 stop bit (the common 8-N-1 configuration).

Main commands:[2]

FORMAT "n";<station number>
SAVE * "n";<station number>
LOAD * "n";<station number>

Select for example 1 as the address of the first computer (station number):[2]

FORMAT "n";1
SAVE * "n";2

Select 2 for the second computer address:[2]

FORMAT "n";2
LOAD * "n";1

Which will then transfer the program from "1" to "2".

Other commands:[2]

CAT # Lists the file and directory contents of unit #
LOAD * "m";1;"name" # Loads the program "name" from "microdrive" unit 1

See also

[edit]
  • ZX Interface 2 – an interface providing joystick and ROM cartridge ports
  • ZX8302 – ULA integrated circuit designed for the Sinclair QL

References

[edit]
  1. ^ Interface 1, Issue 10, December 1984, Your Spectrum 10
  2. ^ a b c d worldofspectrum.org - Microdrive and Interface 1 manual, 1983, file date
[edit]