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.

PR INT "O";<br />

GOTO 65<br />

If you wish to change a switch setting · and then obtain its binary<br />

change line 10 to:<br />

whenever you wish to display the binary value of the logic<br />

setting at the input port, simply depress the RETURN key<br />

the Apple keyboard. Of course, the switch settings are already in<br />

format, so the correlation between the displayed binary value<br />

individual bits at the input port should be easy.<br />

Do not remove the circuit from your breadboard, and do not tum<br />

the power. Both the program and the circuit will be used in the<br />

experiment.<br />

Purp@$®<br />

IEXf'ERIMIENi NO. 5<br />

MIJl.TIBYTE INPUT PORTS<br />

The purpose of this experiment is to show you how multiple bytes<br />

information may be input and processed by a BASIC program.<br />

all input devices transfer only one byte of information to the<br />

computer. Some devices may require 9 or more bits. In this<br />

will simulate two input ports through the use of the<br />

port was constructed in Experiment No. 4. Refer to Exper-<br />

No. 4 for construction details of the input port. We recom­<br />

' iJucu.u that you work through Experiment No. 4 before proceeding<br />

this experiment, if you have not already performed it.<br />

If you do not have an input port connected to your Apple comwe<br />

refer you to Experiment No. 4. The circuit developed in<br />

experiment must be used.<br />

In handling multibyte data, the Apple must be programmed so<br />

that the various bytes are ordered from most-significant to least-sigbyte.<br />

In this experiment, we shall use byte "M" as the mostbyte<br />

( MSBY) and "L" as the least-significant byte<br />

) . Since the Apple will interpret 8-bit values as decimal numbetween<br />

0 and 255, can you suggest an equation or series of

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

Saved successfully!

Ooh no, something went wrong!