Exploring the TS1000 Sinclair Logic Chip (SCL) V

See all articles from QZX v8 n4
Author(s): Don Lamen
Publication: QZX
Pub Details: QZX v8 n4 (Volume 8, Issue 4)
Date: March 1990
Pages: 3-5

This article is a continuation of the series which began in the October 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.

INTERCEPT CONTROL CIRCUIT

The intercept control circuit controls the flow of signals on the internal data bus (and provides for screen inversion). For a possible realization of this data bus see the figure given in QZX for January. The timing and control signals come from the sources given below.

a) Counter one, main timing chain
b) A15
c) M̅1̅
d) The horizontal sync generator
e) H̅A̅L̅T̅
f) D6
g) D7

The timing counter bits are weighted as follows:

Bit 1 — 1
Bit 2 — 2
Bit 3 — 4
Bit 4 — 8

The Intercept Control Circuit consists of the following circuits and/or components:

a) 6 timing decoders
1. Multiplex timing (Code 8 or Code NOT 8
2. Sensing (Code positive edge of 2 AND NOT 4)
3. Latch-In (Code 1 AND 2 AND NOT 4)
4. No-Op (Code NOT 2 AND 4)
5. Latch-Out (Code 2 AND 4) inverted
6. Load (Code 1 AND 2 AND 4)

b) 3 flip-flops
1. Intercept flip-flop
2. Inverse flip-flop 1
3. Inverse flip-flop 2

c) 3 reset gates
1. Intercept reset gate 1
2. Inverse reset gate 1
3. Inverse reset gate 2

d) 2 multiplexed clock gates
1. Inverse clock gate 1
2. Inverse clock gate 2

e) 1 inverse OR gate

f) 2 multiplexed shift register load gates

g) 6 inverters

Here is a description of how the intercept control circuit works.

The timing of this circuit is controlled by the first counter of the main timing chain (shown in the December QZX), which counts from 0 to 15 repeatedly except when preset. When it is preset to 2, it counts from 3 to 15 and then goes to 0 (14 counts). Each time this counter returns to 0 it puts out a Carry-Out to the next counter.

On the rising edge of the counter’s T-cycle 0 (Code NOT 8), the shift registers are switched and shift register 2 becomes inhibited. On the rising edge of the counter’s T-cycle 8 (Code 8) the shift registers are switched back, shift register 2 then becoming inhibited. The uninhibited register now shifts out its eight bits of data to the Video Combiner.

The inhibit signal is delayed for about a half dot cycle to give the active shift register time to shift out its last bit.

The NOT M1 signal is inverted and ANDed with the signal on A15, then fed to the ‘D’ input of the intercept flip-flop. At the rising edge of dot cycle 2 of the character set of 8 dot cycles, (Code 2 AND NOT 4) the signal on the ‘D’ input is clocked in. If NOT M1 = 0 AND A15 = 1, the intercept flip-flop is SET, otherwise it is RESET. SETing the intercept flip-flop enables the rest of the timing gates, except for MUX, which is always enabled.

During dot cycle 3 (Code 1 AND 2 AND NOT 4) the data on the data bus lines D0 through D5 will be latched into the internal latch and the contents of D7 will be clocked into inverse flip-flop 1 if Code NOT 8 or into inverse flip-flop 2 if Code 8. However, if D6 = 1 (or NOT HALT = 0 or during horizontal sync), then the intercept flip-flop will reset, disabling the intercept and allowing the Z80 to read the HALT instruction as usual.

During dot cycles 6 and 7 (Code 2 AND 4), while the Z80 is decoding the No-Op instruction and refreshing the memory, the intercept circuit enables the tri-state output buffer (ROM driver), putting the output of the character scan line counter on address lines A0′ through A2′ and the latched data (character code) on address lines A3′ through A8′. At the same time the address lines A9 through A15 contains a copy of the contents of the I register. This accesses the dot code from the ROM, which the ROM places on the data bus.

During dot cycle 7, the 8 bit dot code on the data bus is loaded into the inhibited shift register.

During dot cycle 8, the shift registers are switched and the same operations are repeated, but on the opposite shift register.

A possible realization of this intercept control circuit appears on the next page.

Next month will feature more details on some of the circuits included in the internal bus diagram shown in the October issue of QZX.

Intercept circuit (4-18-88)
Intercept circuit (4-18-88)

People