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.

+5<br />

TO APPLE<br />

DATA BUS<br />

D7 ---" l ""'l l<br />

12<br />

r-l<br />

.,,. 0.1<br />

13<br />

D7<br />

20<br />

ADC0804<br />

19<br />

lOK<br />

,__,,- 1-i<br />

4<br />

150pF<br />

14<br />

ANALOG INPUT<br />

15 \ 20K OR<br />

V 1N + r----e----<<br />

16<br />

!OK<br />

17<br />

-,,,-<br />

+5V<br />

lK<br />

D0 --18'-1 DO<br />

+5<br />

49319 cs<br />

lK<br />

WR WR 9<br />

VREF/2 1---<br />

RD<br />

Ri'i<br />

N/C<br />

INTR<br />

lK<br />

lK<br />

do not make proper contact with the 8216 chips when they are<br />

inserted into their respective sockets.<br />

Step 3<br />

Enter the following program into your computer and run it:<br />

10 POKE 49319,0<br />

20 FOR T = 0 TO 100: NEXT T<br />

30 PRINT PEEK(49319)<br />

40 GOTO 10<br />

What does the program do What is displayed on the video screen<br />

The program exercises the A/D converter, starting a conversion, providing<br />

a time delay so that the conversion can be performed, and<br />

then reading and displaying the data. Slowly adjust the potentiometer<br />

as you observe the data to confirm that the converter is operating.<br />

As you change the voltage setting of the potentiometer, you should<br />

see a corresponding change in the value displayed by the Apple.<br />

What is the minimum value What is the maximum value Does this<br />

seem to be what you would expect

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

Saved successfully!

Ooh no, something went wrong!