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.

R gates that control the enabling of the three-state buffers, these<br />

ve been used to gate the RD function pulse and the device adss,<br />

49321. If the device select signal, RD 49321, had already been<br />

erated elsewhere in the interface circuit, it could be applied to<br />

e of the enable inputs on both chips, while the other enable inputs<br />

re grounded, or logic zero. This control scheme is shown in Fig.<br />

n.<br />

+5 GND<br />

116 18<br />

SN74365<br />

INPUT PORT<br />

D7<br />

D6<br />

D5<br />

D4<br />

D3<br />

D2<br />

DI<br />

DO<br />

2<br />

4<br />

6<br />

14<br />

- 12<br />

10<br />

I<br />

'151<br />

,..-=-<br />

A<br />

GI<br />

G2<br />

y<br />

3<br />

5<br />

7<br />

I3<br />

11<br />

9<br />

D7<br />

D6<br />

D5<br />

D4<br />

D3<br />

02<br />

DI<br />

.---- DO<br />

TO<br />

DATA BUS<br />

2<br />

4<br />

..,<br />

..,<br />

..,<br />

..,<br />

I<br />

I5<br />

lis ls<br />

+5 GND<br />

A<br />

GI<br />

G2<br />

y<br />

3<br />

<br />

t--'---'<br />

t-<br />

t-<br />

I-<br />

I-<br />

Fig. 3-10. Typical input port constructed using SN74365 chips.<br />

·· using such an input port, data values may be input to the comer<br />

through the use of the PEEK command, as shown in Example<br />

A = PEEK (4932 1)<br />

PRINT A<br />

Example 3-2. Data Input Program for Port 49321<br />

I . ;<br />

G<br />

15 G.:_ 1 ..<br />

__<br />

-<br />

I<br />

SN74365<br />

(ON BOTH CHIPS)<br />

'r<br />

Fig. 3-11. Alternate control scheme for SN74365 three-state chips.<br />

53

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

Saved successfully!

Ooh no, something went wrong!