# Apple Instrumentation & Control 1986 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-52202aac3ad900c721fa7ce09c188ac7d998fa1d9af5d3def997dbe48376c07f)

Transcribed text:

Apple Instrumentation & Control
Circuits & Software
Jerome Oleksy
K
887.5
044
986

Image description: A book cover with large yellow stylized title text on a black and purple gradient background above a green printed circuit board photo, with a black diagonal shape overlapping the lower half and a white library call-number label on the left edge.

Reading notes: Library label text on the left edge (K / 887.5 / 044 / 986) is partially cut off and may be incomplete. Author name 'Jerome Oleksy' is partly overlapped by the library label; the first letter appears as 'J' with the label edge touching it.

Printed product names: Apple

Languages: English

[Original Image 1](https://www.vintageapple.net/files/5113507b09e66bd0a2c4fb0197c910a675b08f91d854358307be988989644cb2/122f409f9d228964305ed0b7.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-0589ff2b6e3caa6cf0f1debb1e8a7a38776b355b6cbef91045a06b61305896e5)

Apple Instrumentation & Control

Transcribed text:

Apple
Instrumentation
& Control
Circuits & Software
Jerome Oleksy
K
887.5
044
986

Image description: A book cover with a black top section and purple gradient behind large yellow title text, over a green circuit board photograph with a black diagonal shape containing a circular hole, and a white library call-number label on the left edge.

Reading notes: Library label on left edge shows partial call number fragments 'K', '887.5', '044', '986' that are cut off and may be incomplete; the last fragment may be a partial year or call number, not confirmed. Author name 'Jerome Oleksy' is partly overlapped by the library label edge; the spelling is read as shown on the cover. Title 'Apple' is set in a stylized font; the reading is clear.

Printed product names: Apple

Printed dates: 986

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-76a37d12d7d53f6dee91280a51b70d924abe1c6dbc3792cf36a320290794a7bd)

Transcribed text:

TK   7887.5   .044   1986
Oleksy,   Jerome E.
Apple instrumentation and control.
/ t>-3-   ~ -
1.!111.MJ_f__/o
'-! 7i/.   'IJ
DATE DUE
~   _,,,
•   •   •   :   1.J\...   u.
,~   ·   .-   ,   ·   r\ i   ·   ·,   ~~o
t   :   t "\\L:   \J , \.J   i   ~

Reading notes: No image was attached; fields are based only on the supplied extracted text, not on visible layout. The supplied copy is a library catalog or book label, not an advertisement, so no advertised products or prices were identified. The title line 'Apple instrumentation and control.' is a book title, not a confirmed advertised product, and was not listed as a product name. Several OCR fragments are garbled or unclear (e.g., '/ t>-3- ~ -', '1.!111.MJ_f__/o', '•   •   •   :   1.J\...   u.', 't   :   t "\\L:   \J , \.J   i   ~'), and the reading order of these fragments is uncertain.

Printed dates: 1986

Languages: English

[Original PDF page 2](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-ce43864b9499ecbc83e273190177d2936d57f6e571c5aa439f45b4e8303ef356)

Image description: The image is a entirely blank white portrait-oriented page with no visible artwork, layout, or text.

Reading notes: No visible text or graphic elements appear in the image; the transcript is intentionally empty.

[Original PDF page 3](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-15b421aa39f1ed8d533ac45022c2a332c3f47b26a032dfc856c9123bd9b18b28)

Apple® Instrumentation and Control: Circuits and Software

Transcribed text:

Apple®   Instrumentation
and   Control:
Circuits and   Software
JEROME E.   OLEKSY
A Reston Book
Prentice-Hall,   Inc.
Englewood   Cliffs,   New Jersey 07632
lRC   COPY
..._ _________________ National   College
Rapid   City,   SD

Reading notes: Printed copyright or edition date not legible in supplied copy Possible damaged or stray characters in library stamp line ('lRC COPY' and underscore line)

Printed product names: Apple®

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-190fd4adfc86b86081f7c811928eb4ce5d0d0a620f28e163454d7b1df8d93c33)

Transcribed text:

Library of Congress Cataloging in   Publication   Data
Oleksy, Jerome E.
Apple Instrumentation and control.
1. Computer interfaces. 2. Apple computer.
I.   Title.
TK7887.5.044   1986   001.64'   4   85-2348
ISBN   0-8359-9222-5
Apple® is a registered trademark of Apple Computer, Inc.
© 1986 by Prentice-Hall, Inc.
Englewood Cliffs, NJ 07632
All rights reserved. No part of this book may be reproduced
in any way, or by any means, without permission in writing
from the publisher.
10   9 8 7 6 5 4 3 2 1
Printed in the   United   States of America
A Reston Book
Published by Prentice-Hall, Inc.
A Division of Simon   &   Schuster, Inc.
Englewood Cliffs, NJ 07632

Printed product names: Apple

Printed dates: 1986

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-8cdc3b78ce84869561038c97b6007a8a58a125b0049cc414d9e79ef3e994df04)

Transcribed text:

CHAPTER   1
CHAPTER2
CHAPTER 3
CHAPTER   4
CONTENTS
Introduction to Apple Interfacing   1
1-1   The Hardware   2
1-2   The Signals   5
1-3   The Software   9
Parallel   1/0   13
2-1   Memory-mapped   I/O   14
2-2   Output   Latches   16
2-3   Input Buffers   20
2-4   Centronics-type   Printer   Interface   24
2-5   Programmable Interface Chips   26
Interfacing   Power   Control Devices   33
3-1   Solid-state relays   34
3-2   Using   Triacs for Power Control   36
3-3   Programmable   Controllers   40
Interfacing to Analog Inputs   47
4-1   Single-input   AID   Conversion   48
4-2   Using   Graphics to Display Physical
Quantities   52
4-3   Multiple Analog Inputs   55
v

Reading notes: Chapter numbering in the source is inconsistently spaced (e.g., 'CHAPTER2') and may be OCR artifacts.

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-4932ab29533b12e4c111ff43babf565b4fe1d53c843c6d5e16c50a68a5c6af5f)

Transcribed text:

vi   Contents
CHAPTER 5
CHAPTER 6
CHAPTER 7
CHAPTER 8
Structuring Your Applications   Programs   61
5-1   Define and Design   62
5-2   Writing the Code   65
5-3   Testing and Debugging   70
5-4   Documentation   72
5-5   Maintenance   73
Using   Basic and Machine Language Effectively   75
6-1   When to   Use   BASIC-When to   Use   Machine
Language   76
6-2   Entering Machine-language Programs into
RAM   78
6-3   Saving and Loading Machine-language
Programs with Discs   82
6-4   Calling Machine-language Subroutines from
Within a BASIC Program   83
Using   the Computer as a   Storage   Scope   89
7-1   Bare Bones Storage Scope   90
7-2   Using   a Triggered Sweep   97
Using   the Computer as a Waveform Generator   101
8-1   Using   a Digital-to-Analog Converter   102
8-2   Using   BASIC to Generate Sinewaves   105
8-3   Generating other Waveforms   110
8-4   Generating Higher Frequencies   119
CHAPTER 9   Serial   1/0   121
9-1   Communicating with Distant Devices   122
9-2   Format for Serial Transmission   125
9-3   Off-the-shelf   UART   128
9-4   Using   the   UART   133
9-5   RS 232 C Interface   145
CHAPTER   10   IEEE 488 Bus   149
10-1   Bus Overview   150
10-2   The TMS9914A   GPIB   Controller   156
10-3   Connecting the Apple to the IEEE Bus   161

Reading notes: Chapter 5 through 10 headings are listed as a table of contents; reading order of chapter titles is clear but some hyphenated items such as 'When to Use BASIC-When to Use Machine Language' are run together. Chapter 4 heading is absent from the supplied copy, so the list begins at Chapter 5.

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-1782b2c5a46ea0830d7271014e0b56834faffc4a0320a5e5567cae9e375e0583)

Transcribed text:

PREFACE
Interfacing a computer to real-world loads results in making
the computer do   what you   want it   to   do.   You can make   the
computer measure several input quantities, such as voltage, tem-
perature,   or   fluid   level.   Then,   based   on   the   results   of   these
measurements, your computer can control an industrial process, or
simply control a home appliance. Apple computer owners have a
very powerful and flexible system available to them. This book will
show you how to make use of that system.
The projects given in this book will teach you how to interface
to parallel loads, such as printers and switches and motors, and to
serial ports,   such   as   those   used in   communicating over long
distances.   It   will   teach   you   how   to   use   your   computer as   a
measuring instrument,   such as a DVM,   a storage scope,   or a
waveform generator. But most importantly, it will teach you how to
interface to almost any device you choose. In other words, rather
than being a collection of   "ten   things to do with your computer,"
this book will teach you how to do your own interfacing to a wide
variety of devices.
In addition to the hardware aspects of interfacing, this book
will   demonstrate   the   best   of both   software   worlds:   high-level
language and machine language. In order to keep the size of the
book reasonable, I will not attempt to teach   BASIC.   Nor will I teach
vii

Reading notes: Text ends mid-sentence at page bottom; continuation not supplied.

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-0b3af2a59e86aff5d902626a9a58aab25634199363563d3eb5545834dea2acb5)

Transcribed text:

viii   Preface
assembly language programming. But instead I will show how the
two languages are tied together in practical applications programs.
You   will learn why BASIC is better for some purposes, but machine
language is better for others.
From my industrial experience as a supervisor of a hardware
and software design group,   I have learned the need for good
software design techniques. I will show by a few examples how you
can painlessly design software that is not only very readable but
also easily modified to cope with any later changes that may arise.
The book will present several projects that you can build,
usually for just a few dollars worth of parts. These parts can be
assembled on a printed circuit board to plug into one of the Apple's
slots. The format for each application will include:
1.   A general discussion of the application-what, why, how
2.   Hardware details
3.   Software details
4.   Suggestions for modification
This book will be valuable to serious hobbyists, as well as to
engineers and technicians who use computers on the job, or who
have a need to know about computer interfacing.   It   will also be
valuable to schools teaching computer technology, both from the
theoretical aspect, as well as for the many lab projects that can be
derived from   it.
Lastly, a copy of all BASIC and machine language programs
listed in this book is available without documentation on a   DOS   3.3
16 sector diskette. Write to the author c/o INTRON Company, 12932
Carpenter Rd., Garfield Hts.,   Ohio   44125.
Jerome E. Oleksy

Reading notes: Source text is a book preface; no advertisement headline is present. Apple appears as a reference to computer slots rather than an advertised product.

Printed product names: Apple

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=9)

### PDF page 11 · PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-6b593f14ac300fe7e456afa17e67fd69be55bf9d33fb4942577a53eccd826ec6)

Image description: The image is an entirely blank white portrait-format page with no visible artwork, layout elements, or text.

Reading notes: No visible text found in the image; transcript and printed fields left empty per instructions.

[Original PDF page 11](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=11) · [Original PDF page 10](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=10)

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-apple-instrumentation-control-1986-8a16f2/1#scan-63daaa4dc450a8a0ce9471f9894884a0fe860787e838375da9fc5890dbd8096d)

Transcribed text:

Interfacing a computer refers to tying the computer to external
devices and/or systems. That is what this book is all about. We will
discuss how to connect your Apple computer to lamps, motors,
switches, printers,   AID   and   DIA   converters, and much more. We
will also talk about how to use your Apple®* as a test instrument,
such as a DVM, a storage scope, and a waveform generator. Finally,
we will discuss how to build a general purpose serial interface so
that you can tie your Apple to a wide variety of commercial
equipment.
Besides the hardware aspects of interfacing, we will discuss
the software involved in making your computer do what you want
it to do. In addition to creating many useful, ready-to-run pro-
grams, we will develop good programming procedures so that
your programs will be not only readable, but easy to modify. If you
save all of the programs listed in this book on disc, you will have
created a library of useful routines that can be incorporated into
different applications programs later.
This chapter will give you a general overview of what parts of
the computer we will be using, what the control signals do, and
what the symbols mean. The hardware and software in this book
will run on Apple® II, II +, and   Ile**   computers.
1-1
THE HARDWARE
This book will not attempt to duplicate or replace the vast amount
of technical information and specifications already contained in
your Apple Reference Manual. Instead, we will indicate which
signals are to be used for each project and which memory addresses
to use. You should keep the Reference Manual handy whenever you
do   any interfacing.   Whenever   you   want   to   modify a   project
significantly, be sure to consult your Reference Manual to deter-
mine such things as   qiaximum   loading on any signal line, max-
imum current to be drawn from a given power supply, and range of
addresses affected.
"'Apple®   is a registered trademark of Apple Computer, Inc., Sunnyvale, California.
,.,. Apple® II, II   Plus,   and Ile are registered trademarks of Apple Computers, Inc.
2

Reading notes: Trademark footnote markings and symbols are garbled in the source copy. Two-column line breaks and some hyphenation make the reading order of the body text uncertain.

Printed product names: Apple · Apple II

Languages: English

[Original PDF page 12](https://www.vintageapple.net/files/3677da7f8560a2bd4da24ff78565b73bcbdea0de9121763c9bb0498d97432fd6/Apple_Instrumentation_-_Control_1986.pdf#page=12)
