This article is a continuation of the series which began in the October 1989 issue of QZX. The purpose is to explain the function of the SCL logic chip in the ZX and TS1000 series of Sinclair computers. This chip is a custom chip designed particularly for our computers. The previous articles gave some background on the chip, provided a functional diagram, and listed 17 separate functions performed by the chip. These and succeeding articles discuss these functions individually and provide an equivalent circuit diagram for the function. These circuit diagrams are only the equivalent of the actual circuits inside the chip because nothing is known about the real connections inside, but the circuits given here will perform the function of the real circuit. For a list of these 17 functions see the October issue of QZX.
Last month we looked at some of the smaller circiuts in the SCL. This month we will look at one of the more complicated ones. It is particularly important for those who are interested in adding memory to their computer.
I/O DECODER
The I/O Decoder is very primitive. It samples only 5 pins; A0, A1, NOT, IORQ, NOT RD, and NOT WR. It performs the following functions:
1. When A0 = 0 AND NOT RD = 0 AND NOP IORQ = 0
a) It turns on the Frame Sync Generator
b) It enables Input Port FE
c) As a result of the Frame Sync being on it holds the Scan Counter in the Reset state until the Frame Sync is turned OFF.
2. When NOT IORQ = 0 AND NOT WR = 0 any output will
a) Turn the Frame Sync Generator OFF and release the Scan Line Counter.
b) Flash the TV screen.
3. When A0 = 0 AND NOT WR = 0 AND NOT IORQ 0 the SCL ON-OFF flip-flop will be set, enabling the Non-Maskable Interrupt Circuit.
4. When A1 = 0 AND NOT WR = 0 AND NOT IORQ = 0, the SCL ON-OFF flip-flop will be reset, disabling the Non-Maskable Interrupt Circuit.
A possible diagram for this circuit is shown on the next page.
NON-MASKABLE INTERRUPT GENERATOR
The Non-Maskable Interrupt Generator consists of the SCL ON-OFF flip-flop and a 2 input NAND gate. When the SCL ON-OFF flip-flop is set, the NAND gate is enabled allowing the Horizontal Sync signal to pass to pin 15 (NOT NMI). This circuit is on the next page.
WAIT CIRCUIT
This circuit is outside the SCL chip on the PC board and is built around transistor TR-1. When the NOT NMI signal is low and the NOT HALT signal is high, this circuit will pull the NOT WAIT pin of the Z-80 low, generating wait states until the Horizontal Sync signal goes low.
FRAME SYNC GENERATOR
The Frame Sync Generator is a set-reset flip-flop. Its Q output generates a signal for the Vertical Sync Pulse and goes to the Video Combiner Circuit. (Discussed in detail next month.) The NOT Q output supplies the reset for the Scan Line Counter. Some of the details of these circuits are given on the next page. All these circuits can be located in the upper right area of the figure in the October 1989 issue of QZX.
Next month we will look at the video circuits.
