← Apple Instrumentation & Control 1986

Apple Instrumentation & Control 1986

From the originals

12 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

Image 1

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

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
PDF page 1

Apple Instrumentation & Control

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

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
PDF page 2

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
PDF page 3

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.

PDF page 4

Apple® Instrumentation and Control: Circuits and Software

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
PDF page 5

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
PDF page 6

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
PDF page 7

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
PDF page 8

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
PDF page 9

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
PDF page 11 · PDF page 10

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.

PDF page 12

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