Interfacing and Digital Experiments with Your Apple
From the originals
13 scansMachine-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
INTERFACING & DIGITAL EXPERIMENTS WITH YOUR APPLE®
INTERFACING & DIGITAL EXPERIMENTS WITH YOUR APPLE®
A plain white page with a bold, black, stylized display-typeface title block centered in the upper middle, with the word APPLE followed by a registered trademark symbol.
Reading notes: Display typeface letterforms (e.g., the stylized R, G, and S) could be read ambiguously; transcription follows the apparent letters. The ® symbol after APPLE is a registered trademark mark rendered in the image.
- Printed product names
- APPLE
- Languages
- English
PDF page 1
INTERFACING & DIGITAL EXPERIMENTS WITH YOUR APPLE®
INTERFACING & DIGITAL EXPERIMENTS WITH YOUR APPLE®
A plain white page with a centered, bold black block-letter title in a rounded display typeface reading 'INTERFACING & DIGITAL EXPERIMENTS WITH YOUR APPLE®', with no images or other graphics.
Reading notes: Headline is set in stacked lines; line breaks in transcript follow the visual layout. The registered trademark symbol after APPLE is rendered as a circled R.
- Printed product names
- Apple
- Languages
- English
PDF page 2
No. 1717 $21.95 INTERFACING & DIGITAL EXPERIMENTS WITH YOUR APPLE® BY CHARLES L. ENGELSHER TAB TAB BOOKS Inc. BLUE RIDGE SUMMIT, PA. 17214
A plain white book cover page with a bold black stylized headline in the center, an author credit beneath it, a boxed TAB logo with publisher name and address at the bottom, and a catalog number and price in the top right corner.
Reading notes: The headline's 'APPLE' is followed by a registered-trademark symbol rendered as ® with a small 'R' inside a circle; transcribed as ®. Top-right catalog block reads 'No. 1717' above '$21.95' and is set apart from the title, so reading order is inferred from layout.
- Printed product names
- Apple · Interfacing & Digital Experiments with Your Apple
- Printed prices
- $21.95
- Languages
- English
PDF page 3
Apple is a registered trademark of Apple Computer, Inc. FIRST EDITION FIRST PRINTING Copyright <O 1984 by TAB BOOKS Inc. Printed in the United States of America Reproduction or publication of the content in any manner, without express permission of the publisher, is prohibited. No liability is assumed with respect to the use of the information herein. Library of Congress Cataloging in Publication Data Engelsher, Charles J. Interfacing and digital experiments with your Apple. Includes index. 1. Computer interfaces. 2. Apple Computer. 3 . Digital electronics. 4. Computer input-output equipment. I. Title. TK7887.5.E54 1984 621.3819'5835 83-24169 ISBN 0-8306-0717-X ISBN 0-8306-1717-5 (pbk.)
Reading notes: Library of Congress catalog number '83-24169' is a control number, not a date; 'Copyright <O' likely represents the copyright symbol and may be an OCR artifact
- Printed product names
- Apple
- Printed dates
- 1984 · 83-24169
- Languages
- English
PDF page 4
Contents Introduction vii 1 Fundamentals of Digital Electronics 1 The Challenge of Oigltal Electronics-The Microcomputer Solution-Learning about Digital Devices- Digital Devices as Black Boxes-Discrete Components and Device Characteristics-Families and Subfamilies- Scales of Integration-Binary and Hexadecimal Numbers 2 The Digital Desktop Laboratory 13 The Game Port <;:onnection- Turning the Apple into a Digital Logic Trainer-The Rest of the Logic Lab-Introduction to the Experiments-Experiment 1, Setup 3 The Six Basic Logic Functions 37 Combinational SSI Devices-Experiment 2, NOT and IS-Experiment 3, ANO-Experiment 4, NAND- Experiment 5. OR-Experiment 6, NOR 4 Boolean Methods 61 The Rules of Boolean Algebra-Relating Inputs and Outputs-Introduction to the Design Experiments- Experiment 7, SSI Design I-Experiment 8, SSI Design II 5 Discrete Electronic Components and Laws The Resistor and Associated Laws - Capacitance, Time Constants, and Reactance 6 The Diode and Transistor Semiconductor Materials-The Diode-The Essentials of Transistor Action-Using the Transistor as a Switch-Experiment 9A, Diode and Transistor Testing-Experiment 9B, Transistor Current Gain and the Overloaded Sink 91 123
Reading notes: Some words in the table of contents appear damaged or OCR-garbled, such as 'Oigltal' and '<;:onnection'.
- Languages
- English
PDF page 5
7 TTL Internals The Electrical Black Box-Inside the Black Box- Tl)e Key Parameters of TIL-TTL and Bus Oriented Computer Logic-Experiment 10, LSTTL Sink Current Measurement and Augmentation 161 8 SSI Sequential Devices 189 Types of Sequential Devices-R/ S Fl ip-Flops-Clocked Logic Concepts-Experiment 11 , R/ S Latches-D and T Flip-Flops-Experiment 12, The LS74 Flip-Flop-Experiment 13, the LS75 Quad D-Latch-The J-K Flip-Flop-Experiment 14, The J-K Flip-Flop-Monostable Devices or One Shots- Experiment 15, The One Shot 9 MSI Sequential Devices 233 Medium Scale Integration-Ripple Counters-Experiment 16, MSI Ripple Counter-Synchronous Counters-Experiment 17, The Synchronous Up/ Down Counter-Shift Registers-Experiment 18, The Shift Register-MS! Latches 10 Combinational MSI Devices 269 Code Conversion and Data Routing-Experiments for MSI Combinational Functions-Experiment 19, Priority Encoder-Experiment 20, Binary Decoder/ Demultiplexer-Experiment 21 , BCD Decoder- Experiment 22, Seven-Segment Decoder/ Driver-Three State Devices-Exclusive-OR Functions 11 An Introduction to Interfacing 299 The 1 / 0 Triad-The System and 1 / 0 Memory Maps-1/ 0 Address Decoding-On-Board 1 / 0 Circuitry- Simple Applications Circuits-LORES/HIRES Joystick Project-Closing Comments Index 338
Reading notes: Table of contents text has run-together spacing and hyphenation that may affect exact chapter titles.
- Printed product names
- LS74 · LS75
- Languages
- English
PDF page 6
Introduction This book began with a simple idea: to teach the basics of digital electronics in a hands-on manner using the desktop microcompute r as the primary learning tool. This pr imer is not a cookbook of circuits. In- stead, it provides an approach that will allow you to acquire a basic but thorough knowle dge of digital devices and techniques and the ability to apply these skills to more complex and interesting proj- ects. Because it is assumed that you have little or no knowledge of electronics (digital or otherwise), one of t he major goals of t his book is to provide you with a knowledge of essential e lectronics. T oo many books assume this knowledge and jump into digital electronics r ight away. T he other broader and more intensive emphasis is on the digital IC chips them- selves: what they do, how to specify them, and how to use them to perform simple tasks. Familiarity with bas ic e lectronics and with a varie ty of IC chips • from t he major functional categories will together give you a firm fo undation for future progress. Some additional, specific aims include helping you gain competence in reading and using the technical data and applications li te rature, in designing small- scale circuits for specific functions, in interpreting digital schematics (such as the Apple main board diagram), and even inte rfacing your computer for s imple I/O (input/output) applications. Once yo u've been grounded in these funda- me n ta ls ever ything e lse-includi ng compu te r hardware applications - are nothing more than ex- tensions to this knowledge. The intention is to g ive you a firn1 base for advancement. TOOLS Learning demands doing. Digital electronics is as much a set of ski lls as it is a body of knowledge. Your competence in this fie ld depends as much on your working with a variety of digital devices as it does on knowing their function. Handling, testing, and building a circuit using a device gives you a range of stimuli not obtainable from passive study. The more ways you are exposed to a s ubject, through the fingers as well as through the brain, the better you wi ll understand it. vii
Reading notes: Line-break hyphenation and spacing artifacts in the OCR copy, such as 'microcompute r', 'pr imer', and 'knowle dge'.
- Printed product names
- Apple
- Languages
- English
PDF page 7
Like many micro owners who want to learn about the digital hardware, you may be hesitant and uncertain about how to satisfy your curiosity. T he would-be experimenter faces the prospect of first acquiring a logic trainer, boxes of parts, and barre ls of equipment before embarking on his projects or studies. T his costly and time-consuming process is unnecessary. A powe rful educational too l is alre ady at you r disposal-the Apple computer itse lf! The microcompute r has been touted for a long time as a "solution in search of a problem" and as a " universal tool." So it seemed logical that this pow- erful all-purpose machine could be adapte d to teaching the fundamentals of dig ital hardware. By exploiting the economy and simplicity of t he Apple game port, you can t um this microcom- pute r in to a digital desktop laboratory with very li ttle effo rt and minimal expense. You w ill cont ro l game port s ignals via an Applesoft u tility pro- gram-the Bre adboard-In Software - that converts t he monitor screen into a dynamic, reconfigurable display. What happens in the circuit is re flected on t he screen, from moment to mome nt, even as you change s ignals. This arrangement e liminates most of the inconvenient pre liminaries, yet retains all the advantages of the hands-on experimental approach. METH OD Because a broad range of materi al is covere d in the Apple Digital Hardware Primer, particular at- tention is given to the me thod of presentation. The value of maintaining a consistent leve l of difficulty, while at the same time building on preceding mate - r ial. is obvious. I don't cover every imaginable top ic. Rathe r, the coverage is selectively deep in what you have to know. The emphasis is on basic skills and key concepts. In t his book you will do more than just dem- onstrate the functions of many digital IC chips. You learn how to describe the ir functio n us ing fo r- mal methods and to use them in design by means of Boolean algebra. Also, you learn not only what t hey do, but how they work- the e lectronics ins ide the IC packages. This allows you to use them safely and e ffectively in actual phys ical circui ts. Further, the viii principles and practices introduced are related to computer operation-bus organization, interfacing principles, memory decoding, etc. After a general survey in Chapte r 1, you are shown how to set up your desktop digital laboratory in Chapter 2. Other "too ls" are developed as part of the overall organization. You will first study the digita l IC as a "black box," as a functional unit rathe r than as an e lectronic circuit. Function is em- phasized. You learn about basic "building block" chips (combinational SSI devices) in Chapter 3, and then see how forma l Boolean methods can be applied to digital des ign using th is important group of ICs (Chapter 4). Chapters 5, 6, and 7 comprise the "essential electronics" section. You learn about discrete electronic components and the ir laws of operation (capacitors, resistors, diodes, and transistors) . Then you apply this knowledge to the operation of a typical digital IC. At the end of this section, you will be quite comfortable with concepts like fa n-out, despiking, current s inking logic, capacitative load- ing, and totem-poles. Data manuals and the techni- cal specifications they contain will no longer be a mystery. You'll use them wi th facility and confi- dence. You then can tackle the area of sequential de- vices in Chapter s 8 and 9. Both SSI and MSI leve ls of integration are detailed, with representative chips from each category. Then in Chapter 10, the important MSI combinational chips are covered. In all of the above chapters, experimentation plays a critical role in the presentation. Sometimes problems are presented as part of the experiments, so that they are more than mere demonstrations. Chapter 11 concludes the book with coverage of some important topics in computer hardware applications under the gene ral heading of interfac- ing. T his chapter rests on the fo undations laid down in the previous material. General principles are supported by a chip-by-chip description of key I/O circuitry on the Apple main board. Memory map- ping and address decoding are dealt with in detai l, using the Apple as an example. A few projects using resistive transducers for simple A D conversion close the book.
Reading notes: Hyphenated line breaks and spacing irregularities in the OCR text, e.g. 'T he' and 'microcompute r' Mid-column text in the 'METHOD' section is run together with the preceding passage; reading order may be uncertain
- Printed product names
- Apple computer · Apple game port · Apple Digital Hardware Primer · Applesoft
- Languages
- English
PDF page 8
Fundamentals of Digital Electronics
Fundamentals of Digital Electronics The digital integrated circuit is more than just a popular symbol for modern electronic technology. It is the basis for learning about that technology. In fact, the rationale for this book is that in-depth knowledge of representative digital integrated circuits-how they work and what they do-is the bas is for your competence in digital e lectronics. In this chapter, you' ll survey the role of the digital IC and get a preview of the material to be covered in late r chapters. THE CHALLENGE OF DIGITAL ELECTRONICS Digital integrated circuits are more than just a new group of electronic components. A phenomenal amount of theoretical knowledge and engineering savvy has gone into the creation of these electronic marvels, popularly known as IC chips. Microelec- tronics, the technology behind these devices, has created entirely new areas of activity and produced dramatic changes in existing ones. Consumer electronics, including home enter- tainment and personal computing, global satellite communications, office and factory automation, medical diagnostics and new graphics design tools are just a few examples of these new applications. Certainly, the IC chip deserves to be the symbol of this e lectronics revolution. Its impact on daily life is obvious even to the proverbial man on the street. For you, the microcomputer owner, digital integrated circuits hold more than a mere casual interest. Your machine would not exist without them. More than that, you may have sensed that a knowledge of digital e lectronics opens up new possibilities-as a hobby, as an enhancement to your present job or as the bas is for a new career. Whatever your specific motives, practical applica- tions or sheer curiosity, it is assumed that you do have a strong interest in learning about digital hardware. It's also assumed that you possess little if any electronics knowledge, but that you are wil- ling to put in the extra effort to learn the basics. Digital electronics is a complex fie ld. Even the more e lementary material is challenging. There are so many terms, principles, and concepts that the
Reading notes: Source text ends mid-sentence at 'the'
- Languages
- English
PDF page 9
subject begins to take on the characteristics of a language. Thorough grounding in the basic con- cepts is especially necessary in digital electronics in order to avoid superficial cookbook knowledge. T he whole concern of the first half of this book is to help you gain mastery of the fundamentals. However, the major problem is not the diffi- cul ty of the subject matter, because your willi ng- ness to tackle it is taken for granted. Rather, t he problem is that of paraphernalia. Let me explain. Paraphernalia is a long story with a sometimes unhappy ending. It begins wi th t he question, " What parts, too ls, materials and equi pment do I need to get started in learning digital electronics?" It con- tinues with searches through the catalogs and the making of long lists. After you shop, the n you order; then you wait. often for quite a while. When your digital laboratory is assembled you can right- fully feel proud. And also a lot poorer. It is usually only when you start paying the bill that you realize that perhaps you overbought. You didn't really need that fancy dual trace osci lloscope, that function generato r or that e laborate logic tra iner -p ro- totyping apparatus. In addit ion, it may take a while to gain proficiency in the use of this equipment before you can even begin expe rimenting. Quite frank ly, hardware enthus iasts do spend a lot o f time and money on e quipment and materials . There seems no other way to acquire t he necessary hands-on knowledge of dig ital e lectronics othe r than to follow the scenario suggested above. And of course, quality equipment is wort h it in the long run if you actually need it. But is it necessary to spend all that money as a beginner? Isn't there a better way? THE MICROCOMPUTER SOLUTION A powerful, all purpose tool already in your possession will he lp you to solve this hardware paraphernalia problem: the Apple microcomputer. By exploiting the economy and s implicity of the Apple game port, you can turn t his mach ine into a dig ital logic tra iner/breadboard system w ith mini mal effort and expense. You control the game port s ignals and monitor them via an Applesoft uti l it y program-the Bre adboard-In-Software 2 (BOIS) - which turns the monitor screen into a dynamic, reconfigurable tabular display. All the signals sent to and received from the circuit under study are displayed in an easy to read form. This arrangement e liminates al l of t he costly pre- liminaries , yet provides all of the advantages of a conventional hands-on system. This computer-based trainer offers other ad- vantages. Meaningful labels can be assigned to t he s ignals of the device or circuit under examination. Pin-outs may be specified for ease of circu it hookup. Display format may be altered for conve- nient viewing. A printout can be obtained for per- manent records of your expe ri ments if you desire. Also, BOIS continually monitors the outputs of the circuit under study and automatically updates the display. All that is required is a jumper cable , solder- less breadboard strip, and a half-hour or so to type in the Breadboard-In-Software (BDIS) utility pro- gram. At this point it is tempting to present the BOIS uti lity, show how to make the s imple game port connection, and then procede to some "flashi ng lights" demonst rations. We'll do these and many o ther things in t he next few chapters. But first it is necessary that you have a clear idea of how you are going to study digital devices and circuits. LEARNING ABOUT DIGITAL DEVICES You can look at any specific digital IC device from several different standpoints: 0 As a sealed black box which performs cer- tain logical functions. D As a collection of discrete e lectronic com- ponents integrated on a tiny chip of s ilicon. D As the member of a particular family of devices which share the same e lectrical charac- teristics . 0 As representing a particular level of com- ponent dens ity per unit area o f silicon-a level or scale o f integration. Virtually all t he things you should know about digita l ICs fall into one or the other o f t hese
Reading notes: Source text is a book excerpt with a page number '2' and the name 'Breadboard-In-Software' appears as both '(BOIS)' and '(BDIS)'. Some words appear to be OCR-garbled, such as 'procede' and 'he lp'. Reading order of the source excerpt is continuous but page breaks occur mid-sentence.
- Printed product names
- Apple microcomputer · Apple game port · Applesoft · Breadboard-In-Software (BDIS) · BOIS
- Languages
- English
PDF page 10
categories. The first category mentioned, the black box view, stands apart from the rest. The next two categories both relate to what goes on ins ide the IC. The last category refers to the levels of functional complexity of ICs. Let's look at each item in turn. DIGITAL DEVICES AS BLACK BOXES The black box is a convenient engineering con- cept which is invoked whenever there is a need to s implify a complex process or system. If t he object under study appears too complex you may, figura- tive ly s peaking, draw a line around it. By boxing in the system, you hide from view a lot of confusing internal de tail. This techniq ue makes it easier to unde rstand how outputs are related to inputs. For the moment you don't care about what is going on inside the system, how the electrons do their chores, or how the system was manufactured (Fig. 1-1). System One or more~ Who cares? t--7 One or more inputs outputs Fig. 1-1. With the black box approach, you don't care about the mechanism inside. Your concern is with function-how the inputs are related to outputs. Dig ital integrated circui ts are fabricated on a microscopic scale on wafe rs of silicon, commonly seale d in oblong, black plas tic packages, and con- nected to the outside world by small me ta l tabs or pins. The resemblance between the black box idea and digital !C's suggested in Fig. 1-2. is no coinci- dence. They literally are little black boxes and were designed to be used as such. Entire circuits, consisting of dozens, hundreds or thousands of components have been packed into them according to strict design guidelines. Because complex circuits have been put in to standa rd, easy-to-hand le packages, the user is free to con- centrate on the main task of circuit design: how to configure individual chips into a system us ing the ~ I nputs~ Outputs Fig. 1-2. The IC as black box. In learning about the devices from a functional standpoint, the electronics is incidental. chips as circuit building blocks. Likewise the stu- dent can begin learning about devices and simple circuits by studying digital functions. He does not have to worry about device electronics or e lectrical characteristics at the outset. This is the approach taken in Chapters 3 and 4, where the emphas is is placed on what the device does and on the methods used to describe its func- tion. DISCRETE COMPONENTS AND DEVICE CHARACTERISTICS Naturally, the engineer or student will have to take into account a numbe r of practical matters when h_ e actually starts building circuits. Knowl- edge of power consumption, allowable s ignal and power s upply vo ltage levels, and current loading limits is essential. What this really boils down to is some work ing knowledge of bas ic electronics, at least enough to unde rstand device specifications. But just how much knowledge is enough? You need only learn about three limited areas: passive e le ments, the transis tor as a switch, and the ope ration of a typical digital circuit in terms of these individual components. Passive e lements include resis tors, capacitors and diodes; the rules governing these components are straightforward. Trans istor operation is not as s imple. However, we are only concerned with its operation as a switch, not as an amplifier, and this makes the topic much easier. Last, we will look at how these components are configured on a typical IC chip and talk about the I C's electrical parameters. Three chapters - Chapters 5, 6, and 7 - are devoted to this material and include supporting ex- 3
Reading notes: Source text contains OCR-style spacing errors (e.g., 'ins ide', 'de tail', 'Knowl-edge'), so some words may be imperfectly reproduced. Figure captions and diagram labels such as 'System' and 'Who cares?' may be out of reading order relative to the body text.
- Languages
- English
PDF page 11
periments. These chapters may demand more ef- fort from some of you, especially if you've forgotten or never learned such things as Ohm's Law and Kirchhoffs Law. But remember, the goal is not to tum you into an IC design engineer, but just to teach you some basic electronics. As a result of your efforts you will be able to open up any IC data manual and read it inte lligently. Since the technical data and applications manuals from the many chip manufacturers are valuable in- formation sources in their own right, this is an important s kill. The di scussion of digital IC characteristics in Chapter 7 includes the type of specifications you would normally encounter in data manuals. Therefore, by the time you finish this section, you should be fairly adept at reading and us ing them. FAMILIES AND SUBFAMILIES The subject of familie s of IC devices is really an extension of the subject just discussed, discrete component e lectronics. As mentioned, ICs are the result of rigid des ign criteria which define the elec- trical properties of the device packages. IC design also involves building in the black box function; the specific logical, arithme tic or other task that the device is to perform. Obviously you may require that a device fulfill a given function and be able to operate in a wide variety of settings. For instance you may want the fastest device currently available and require the lowest power consumption avail- able . Unfortunately you can get either characteris- tic alone, but not both combined in the same chip. This is known as the speed/power tradeoff. There are other tradeoffs as well. In other words, whate ver property you care to discuss-noise immunity, power use, cost, current o utpu t, ope rating te mpe rature range, s peed, e tc. - you will have to make compromi ses. Im- provement in one factor is usually realized to the detriment of one or more of the othe rs. The reason for these real-world constraints involves the type of semiconductor used to make the device as well as the fabri cation me thod employed. The nature of your compromise is very much determined by the family oflC device that you 4 choose. Most de vices fa ll into either one of two broad semiconductor families : those based on the bipolar transistor and those based on the field-effect transistor. See Fig. 1-3. Bipolar transistor Field-effect transistor TTL -- Schottky TTL ~-- ECL - Standard TTL Ill CMOS- NMOS NMOS PMOS Fig. 1-3. The major families and subfamilies of digital ICs are based on the two main types of transistor. The electronics is important when it comes to actually building the physical circuit. The bipolar transistor , the original one in- ve nted in 1948, is the basis for a major family called transistor-transistor-logic, or TTL for short. Other bipolar IC families are EGL (emitter coupled logic) and Ill (integrated injection logic). Each is the result of careful cons ideration of user require me nts and of fabrication techniques. E ach has it's own strengths and weaknesses. For example , both ECL and TTL are used in digital logic applications . ECL is lightening fast, but also power hungry, and very demanding of precise powe r supply voltages. TTL is also fas t, though not so fast as ECL. However , it uses less powe r and is less fi nicky in regard to supply voltage. Integrated injection logic, the other major bipo lar family, is used in li near applications . TTL and ECL are primaril y d igital devices. Linear IIL devices include o scillators, voltage to freque ncy converter s, modulators, and amplifie rs. This family will not be conside re d furthe r. The other major fami ly of IC is based on the fie ld e ffect transistor, which operates on s lightly diffe re nt principles than the bipolar trans istor. The various de vice types in this group are co llecti ve ly known as MOS devices, metal oxide on s ilicon. MOS family names refer to the type of semi-
Reading notes: Source appears to be a printed textbook page with a running page number 4; no primary heading is visible in the supplied copy. Text contains OCR-style artifacts such as 'tum' for 'turn' and 'EGL' for 'ECL'; spelling preserved as supplied.
- Printed dates
- 1948
- Languages
- English