← Hardware Interfacing with the Apple II Plus

Hardware Interfacing with the Apple II Plus

From the originals

29 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

Hardware Interfacing with the Apple II Plus

PRENTICE-HALL SERIES IN PERSONAL COMPUTING JOHN E. UFFENBECK Hardware Interfacing with the Apple II Plus A step by step introduction to microcomputer interfacing—featuring 13 practical hardware experiments. TK 787.5 U3.26 1983

A brown book cover with red and black title lettering above a photograph of an Apple II Plus computer with keyboard, monitor, and two Disk II drives, plus a white library call-number label in the lower left corner.

Reading notes: The top edge partially obscures the series name text, so 'PRENTICE-HALL' is only partly legible and was reconstructed from the visible letters. The library label handwriting 'X' partially covers the call number, so 'TK 787.5' is partly obscured and the reading 'TK 787.5' is uncertain. Small text on the computer's logo and disk drive labels was not transcribed because it is not legible enough.

Printed product names
Apple II Plus
Printed dates
1983
Languages
English
PDF page 1

PRENTICE-HALL SERIES IN PERSONAL COMPUTING JOHN E. UFFENBECK Hardware Interfacing with the Apple II Plus A step by step introduction to microcomputer interfacing—featuring 13 practical hardware experiments.

Book cover with a brown background, large red title text, a photo of an Apple II Plus computer with keyboard, monitor and two Disk II drives, and a white library call-number label with a handwritten mark at the lower left.

Reading notes: Top edge of the cover is partly torn and the 'PRENTICE-HALL' word is partially obscured, so the first letters are uncertain. The library label reads 'TK 7885.5 U3.26 1983' but digits are partly covered by a handwritten mark; the call number is not included in the transcript as it is not clearly legible. The '1983' date appears only on the library label, which is partially obscured; it is listed in printedDates but not in the transcript.

Printed product names
Apple II Plus
Languages
English
PDF page 2

The image shows a pale pinkish-cream background covered with a grey woodgrain-like pattern of wavy streaks and knots, with no visible text or advertising content.

Reading notes: No visible text found; the image appears to be a decorative woodgrain paper pattern with possible glossy light reflections at the top and bottom edges.

PDF page 3

HARDWARE INTERFACING WITH THE APPLE II PLUS

A white page with a gray rectangular banner framed by black horizontal rules at the top, containing a bold serif all-caps title, and otherwise blank.

Reading notes: Page appears to be a title page with no body text; faint stains and marks on the paper are not text.

Printed product names
Apple II Plus
Languages
English
PDF page 4

HARDWARE INTERFACING WITH THE APPLE II PL US ----- JOHN E. UFFENBECK----- PRENTICE-HALL, INC., Englewood Cliffs, NJ 07632

Reading notes: Author name rendered with spacing and dashes; reads JOHN E. UFFENBECK

Languages
English
PDF page 5

Hardware interfacing with the Apple II Plus.

Library of Congress Cataloging in Publication Data Uffenbeck, John E. Hardware interfacing with the Apple II Plus. Includes index. 1. Computer interfaces-Experiments. 2. Apple II (Computer)-Experiments. I. Title. TK7887.5. U326 1983 621.3819' 583 83-3186 ISBN 0-13-383851-X ISBN 0-13-383844-7 (pbk.) Apple is a registered trademark of Apple Computer, Inc. Editorial/production superuision: Kathryn Gollin Marshak Couer design: Diane Saxe Manufacturing buyer: Gordon Osbourne Cover photograph courtesy of Apple Computer, Inc. © 1983 by Prentice-Hall, Inc., Englewood Cliffs, New Jersey 07632 All rights reserued. No part of this book may be reproduced, in any form or by any means, without permission in writing from the publisher. Printed in the United States of America 10 9 8 7 6 5 4 3 2 0-13-383844 -7 ~} 0-13-383851-X {c} Prentice-Hall International, Inc., London Prentice-Hall of Australia Pty. Limited, Sydney Editora Prentice-Hall do Brasil, Ltda., Rio de Janeiro Prentice-Hall Canada Inc., Toronto Prentice-Hall of India Private Limited, New Delh i Prentice-Hall of Japan, Inc., Tokyo Prentice-Hall of Southeast Asia Pte. Ltd., Singapore Whitehall Books Limited, Wellington, New Zealand

Reading notes: Possible OCR spacing or character errors in author, cover credit, and address lines (e.g., 'Couer', 'superuision', 'reserued', 'New Delh i').

Printed product names
Apple II Plus · Apple II (Computer)
Printed dates
1983 · 1983 by Prentice-Hall, Inc.
Languages
English
PDF page 6

For Kathy

A plain white page with a single centered line of black serif text reading "For Kathy" and faint, indistinct grayish smudges near the left and bottom edges.

Reading notes: The page appears to be a dedication page rather than an advertisement or poster; no headline, products, prices, or dates are present. Faint marks along the left and bottom edges are not legible text and were not transcribed.

Languages
English
PDF page 7

CONTENTS x PART 1 GETTING STARTED 1 Introduction 3 Hardware Requirements 3 Nice-to-Have Components 7 Software Requirements 9 Conclusion 9 PART 2 - - - - - BASIC CONCEPTS OF MICROCOMPUTER - - - -- INPUT /OUTPUT Experiment 1 Experiment 2 Experiment 3 Experiment 4 Experiment 5 Experiment 6 11 The PEEK and POKE Commands 13 Address Decoding 22 Memory-Mapped Output Port Concepts 36 Memory-Mapped Input Port Concepts 46 Interfacing the 8255 Programmable Peripheral Interface 56 Interfacing the 6820 Programmable Interface Adapter 6 9 vii

Reading notes: Headline not clearly identified; the source is a table of contents with no single primary heading. Page numbers in the list (e.g., 'x', 'vii') may be ambiguous due to roman numeral formatting.

Languages
English
PDF page 8

viii Contents PART 3 SPECIAL INTERFACING PROBLEMS 83 Experiment 7 Experiment 8 Experiment 9 Experiment 10 Experiment 11 Experiment 12 Experiment 13 Hardware Interfacing Techniques, Part 1: Inputs 85 Hardware Interfacing Techniques, Part 2: Outputs 100 Interfacing a Digital-to-Analog Converter 114 Interfacing an Analog-to-Digital Converter 126 Handshaking I/0 140 Serial Interfacing 153 Interfacing a Programmable Sound Generator 172 ----------APPENDICES-- - - ------ 191 A Wiring the Vector Card 191 B Parts List 195 C Binary and Decimal Numbers 199 D Basic Logic Gates 202 E JK Flip-Flop 205 F If the Experiment Doesn't Work 207 G Data Sheets 210 ~~~~~~~~~~~~INDEX ~~~~~~~~~~~- 235

Reading notes: Heading 'Contents' and table-of-contents layout could be mistaken for a primary headline; no primary headline identified. Some numbers and dashes in the table of contents show irregular spacing, possibly from extraction.

Languages
English
PDF page 9

PREFACE This book is written for the computer "hacker," the technician, the engineer, and in general anyone with an interest in knowing a bit more about the electronics of the Apple II Plus personal computer system. In particular it deals with interfacing the sometimes "hostile" outside world to the ex- pansion bus of the Apple. If you have never thought of using the Apple to control your world, consider some of the possibilities. Using simple BASIC software you can monitor the indoor or outdoor temperature, the opening and closing of a door, the level of light in a room, the status of a smoke detector, or the voltage on a charging capacitor. Once input, you can process this informa- tion and tum on the light across the room, switch the furnace off or on, gen- erate a piercing alarm signal, or program the "tinkling" of a bell. All of these interfacing projects and several more are described in the 13 experiments in HARDWARE INTERFACING WITH THE APPLE II PLUS. You will learn interfacing by doing interfacing. The book begins with an explanation of the PEEK and POKE commands as their use will be critical throughout. From there you will learn address decoding and input and output ports. The Intel 8255 programmable peripheral interface is used in Experiment 5 and contrasted with the Motorola MC6820 peripheral inter- face adapter in Experiment 6. These two !Cs greatly simplify the job of in- terfacing to the outside world. The last seven experiments deal with special interfacing techniques such as analog-to-digital and digital-to-analog conversion methods. Also covered is serial interfacing and the concept of "handshaking" logic. The book ends with a programmable sound generator project requiring 8 ICs. This circuit is capable of producing a fantastic array of sounds from train whistles to gun shots to an electronic organ. You will be assumed to be a proficient-but not expert-BASIC pro- grammer. Although machine language could be used for any of the experi- ments, BASIC is used throughout. You should be familiar with digital bread- ix

Reading notes: Possible OCR artifact 'tum' likely intended as 'turn' Possible OCR artifact '!Cs' likely intended as 'ICs'

Printed product names
Apple II Plus · HARDWARE INTERFACING WITH THE APPLE II PLUS · Intel 8255 · Motorola MC6820
Languages
English
PDF page 10

x Preface boarding techniques and the 7400 series of digital logic gates. Mixed logic symbology is used for all logic elements, and this technique is reviewed in Appendix D. The experiments are organized so that you can quickly see what you will be required to do-the OVERVIEW, what you will learn; the OBJEC- TIVES, what parts you will need; the PARTS LIST; a DISCUSSION on the theory; and the experimental PROCEDURE itself. One of the most difficult parts of any electronics project today is locating the components and getting started. Part 1 addresses this issue and Appendix B provides a complete parts list for all of the experiments with several sources. If you have never used your Apple as a hardware controller before, be prepared for a pleasant surprise. You may find hardware interfacing even more challenging and exciting than that last BASIC program you wrote. JOHN E. UFFENBECK ~~~~~~~- ACKNOWLEDGMENTS ~~~~~~~- The following figures and tables from Hardware Interfacing with the TRS-80 by John Uffenbeck are reproduced with the permission of Prentice-Hall, Inc. Figure numbers refer to Hardware Interfacing with the Apple II Plus. Figure 1-4, Tables 1-1, 1-2, Figures 1-1, 2-4, 3-3, Table 3-1 , Figures 4-1, 4-3, 4 -4, 5-3, 5-6, 7-1, 7-2, 7-4, 7-5, 7-6, 7-8, 7-9, 8-1, 8-2, 8-4, 8-5, 8-6, 8-7, 9 -1, 9-4, 9-5, 10-1, 10-2, 10-3, 10-4, 10-5, 11-1, 11-2, 11-4, 11-5, 11-7, 12-1, 12-2, 12-3, 12-5, 12-9, Table 12-2, Figures 13-1, 13-2, 13-5, 13-7, 13-9, 13-11, Tables 13-1, C-1, Figures D-1, D-2, D-3, D-4, E-1, E-2, F-1. The data sheets in Appendix G are reproduced courtesy of Intel Cor- poration, Motorola, Inc. , General Instrument Corporation, and National Semiconductor Corporation.

Reading notes: Headline not clearly identifiable in the supplied copy

Printed product names
Apple II Plus · TRS-80 · Apple · BASIC
Languages
English
PDF page 11

HARDWARE INTERFACING WITH THE APPLE II PLUS

A white page with a gray rectangular banner framed by black horizontal rules near the top, containing the all-caps serif title in dark type, and otherwise blank.

Printed product names
Apple II Plus
Languages
English