27.01.2015 Views

titus-larsen-titus-1981-apple-interfacing

titus-larsen-titus-1981-apple-interfacing

titus-larsen-titus-1981-apple-interfacing

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INPUT DEVICE<br />

INPUT PORT<br />

Dl<br />

Dl<br />

'<br />

D3<br />

DATA BUS<br />

DO<br />

READY<br />

1<br />

J"L FLAG PULSE<br />

SN7474<br />

1- D Q<br />

CK<br />

CR<br />

J"L<br />

t>-J<br />

INPUT PORT<br />

DO<br />

RD49360<br />

J'"L<br />

RD49361<br />

L..r<br />

..IL<br />

. CLEAR<br />

Fig. 4-7. Flip-flop circuit used for detection of flag pulse.<br />

n the timing diagram, the READY pulse sets the flip-flop, so that<br />

Q output is a logic one. This is detected when the status flag ination<br />

is input from port 49361. The logic one state of the flag<br />

es the software to perform the steps that input the data byte and<br />

clear the flag. The separate CLEAR signal could be generated<br />

a POKE command, and appropriate circuitry, although the use<br />

e readily available RD 49360 pulse is probably easier.<br />

(Q)<br />

Fig. 4-8. Flag flip-flop timing .diagram.<br />

this example, the flag was tested twice while it was in the logic<br />

state. Since this indicated that no new data was ready, no input<br />

ers or flag clears were initiated.<br />

eral experiments at the end of this book involve the use of flags.<br />

65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!