# Hardware Interfacing with the Apple II Plus — source transcripts, page 2

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2)

## 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.

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-0b20b6d500a778ce1eeed0ab46b42a203ccfbe645ec091158fd689e525bc34a2)

Getting Started

Transcribed text:

Getting
Started
Read this section before attempting any of the experiments
in this book.   You   will need special hardware to do the   ex-
periments and this section tells you what to get and where
you can find it.

Languages: English

[Original PDF page 12](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=12)

### PDF page 13

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-59dac3fe2a965961b6a9415e1dea0fa9fccd546ce774b9a8c60a8eda0623cd3f)

Transcribed text:

INTRODUCTION
The Apple II plus microcomputer shown in Fig.   1-1   is one of the most popu-
lar microcomputers on the market today. Because of this there are hundreds
of computer programs and operating systems available for the Apple. These
range from   Star   Invaders   to   Visicalc   to   Pascal.   A nearly equal number of
books have been written describing how to use and operate these programs
using the Apple's built-in   BASIC   language,   Applesoft.
This   book, however, deals with that area of microcomputers that is
sometimes   considered   "black   magic"   or   "taboo"   by the   microcomputer
owner: namely, microcomputer hardware and interfacing.   It   is my hope to
clear the air by leading you through 13 progressively more complex hard-
ware experiments on your Apple personal computer. By the time you have
completed   all   13 experiments, you may not be an expert, but you will cer-
tainly understand microcomputer input and output. And you will also ap-
preciate the potential that your computer has as a hardware controller in
the home or industry.
Before beginning these experiments you should acquaint yourself with
the   basic hardware and software necessary to   perform the experiments.
These are explained in t he following sections.
--- ---- HARDWARE REQUIREMENTS - --- ---
All of the experiments in this book are written with the Apple II computer
in mind and   all   hardware details are specific to this computer. The Apple is
most commonly available in the Apple II Plus version, with 48K bytes of
RAM   (random access   read-write memory) and one disk drive. While this
system is more than sufficient, the minimum configuration is assumed to be:
1 . Any Apple II computer with Applesoft.
2. At least   SK   of RAM.
3. A video monitor or suitable television receiver.
3

Reading notes: OCR spacing in headings and body text may be irregular (e.g., 'SK of RAM' possibly '5K of RAM') Figure reference 'Fig. 1-1' has no accompanying image text

Printed product names: Apple II plus · Star Invaders · Visicalc · Pascal · Applesoft · Apple II · Apple II Plus

Languages: English

[Original PDF page 13](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=13)

### PDF page 14

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-5f430f86dbe8ecca991f9bf8688729172466bec09b7a4dc0a776d29acee9dc42)

Transcribed text:

4   Introduction
Figure   1-1   Apple II   Plus   microcomputer system. All of th e experiments
in this book are intended for this computer. Reprinted from the Apple
II Reference Manual with the permission of Apple Computer, Inc.
Notice that no disk drive, printer, language card, I/0 card, or other
peripheral is required.   If   you have these things, fine, but if not, you won't
need them.
What you will need is some means of connecting to one of the periph-
eral connector slots (preferably slot 7) and a   solderless breadboard   for build-
ing the interface circuits. The next few subsections detail these hardware
requirements.
THE RIBBON CABLE   ASSEMBLY   AND INTERFACE CARD
Figure I-2a illustrates the basic interfacing concept to be used throughout
this book. A   Vector   Electronics   4609   plugboard   is inserted into slot 7 of
the Apple's motherboard. The 40-pin connector on the rear of this card is
then wired to access the important interfacing signals provided by the Apple
at the slot 7 connector. This is shown in Fig. I-2b. A length of 40-conductor
ribbon cable with a card edge connector at one end (the computer end) and
a socket connector on the other is used to bring these signals out to the
motherboard. The socket connector conveniently allows No. 22 or 24 gauge
wire connections between it and the breadboard.
The   Vector   card is available from Jameco Electronics (1355   Shoreway
Road, Belmont,   CA   94002),   Priority   One   Electronics (9161 Deering Avenue,
Chatsworth,   CA   91311), and several other suppliers for about $25. The   40-

Reading notes: Source text ends mid-sentence at '40-' in the price paragraph, so the final price context may be incomplete.

Printed product names: Apple II Plus · Vector Electronics 4609 · Apple II Reference Manual

Printed prices: $25

Languages: English

[Original PDF page 14](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=14)

### PDF page 15

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-c7927928b78fd5ebf16908295f25d0e2a302e560945428274abcc3addf1d2e72)

Transcribed text:

Introduction   5
Figure   I-2   (a) Apple computer with
its cover removed, revealing the   Vec-
tor Electronics plugboard in slot 7.
The ribbon cable connected to the
rear of this card provides access to
the interfacing signals required to
do the experiments.   A   solderless
breadboard is used to build up the
various interfacing circuits.
conductor ribbon cable   is available from   Digi-Key Corp.   (P.O.   Box 677,
Thief River Falls, MN 56701). The part number is 924150-24 and the   ap-
proximate cost is $15.
Before proceeding to Experiment 1 you should wire the Vector card
following the instructions given in Appendix A. This appendix also gives a
complete description of the electrical signals available at each peripheral
slot connector and at the breadboard.
One   particularly nice feature of the Apple computer is that ±5   V   and
±12   V   are available at each peripheral connector. This means that it will not
Figure I-2   (b) Jumper wires are used to bring the interfacing signals from
the Apple's peripheral connector to the edge connector on the Vector
card.

Reading notes: Part number '924150-24' and '±5 V' / '±12 V' values are legible but not verified against any other source Reading order of the two figure captions relative to body text is uncertain

Printed product names: Apple · Digi-Key Corp.

Printed prices: $15

Languages: English

[Original PDF page 15](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=15)

### PDF page 16

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-9019cbd672354eed5b782617768d3703b86ad04c1408a7445419c31b8297a3a0)

Transcribed text:

·6   Introduction
be necessary for you to use an external power supply to perform any of the
experiments. The current capacities of these voltages are limited, however,
and it may be wise to remove any extra cards you have in your computer
when using the Vector card. But you should be able to operate with three
or four other cards   in   the computer besides the interface board (see   Appen-
dix F,   "If   the Experiment Doesn't   Work").
SOLDERLESS   BREADBOARD
The purpose of the breadboard is to allow easy (solderless) connections   be-
tween the various integrated circuits (!Cs) used in the experiments and the
Apple. Referring to Fig. I-3, the !Cs are placed so as to straddle the center
divider of the socket. There are then four remaining connections to each IC
lead in each row. Connections on one side of the center notch are electrically
isolated from the other side.
Table I-1 compares several types of solderless breadboards. The more
rows per side, the more !Cs you will be able to interconnect and the more
expensive the breadboard. The first two entries in the table provide sockets
only, whereas the last three have the sockets mounted on a small base (see
Fig. I-3).   If   the cost of some of the Proto-Boards seems high, you may want
to consider fabricating your own base. In this way you can expand your
breadboard with additional sockets as needed while holding down the initial
cost.
Figure r.3   Breadboard end of the
ribbon cable assembly. The two
sockets shown provide 68 rows of
connections with a power bus (+5   V
and ground) running between the
two. The ribbon cable socket   con-
nector is held in place by the
"stickum"   on the base plate. The
cable itself is a 40-conductor   rib-
bon with a card edge connector on
the computer end. Refer to the text
for sources for these components.

Reading notes: Source page appears to be a technical manual introduction with a figure caption; no advertised products or prices are present.

Languages: English

[Original PDF page 16](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=16)

### PDF page 17

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-cf3c508e898939338dfd0d5feed8b494dfacd21d968a69a4a3bdc86426ba8d88)

TABLE 1-1 SOLDERLESS BREADBOARDS ARE AVAILABLE IN A VARIETY OF CONFIGURATIONS AND PRICES

Transcribed text:

Introduction
TABLE   1-1   SOLDERLESS   BREADBOARDS ARE AVAILABLE IN A VARIETY   OF
CONFIGURATIONS   AND   PRICES
Type
Modular breadboard socket
(may be expanded)
Quick Test Socket and bus
strip (may be expanded)
Proto-Board with Quick
Test Sockets
Proto-Board with Quick
Test Sockets
Proto-Board with Quick
Test Sockets
COMPONENTS
Number
of rows
per side
47
59
68
96
94
Part number
276-174
QT-59S,
QT-59B
ACE-200K,
923333
ACE-201K,
923334
PB-102
Manufacturer
Radio Shack
about   $10
Jameco Electronics
1355 Shoreway Road
Belmont, CA   94002
about $15
Digi-Key Corp.
P.O.   Box 677
Thief River Falls,
MN 56701
about   $20
Digi-Key
about   $30
Jameco
about $35
7
In general, each experiment will require you to wire one or more integrated
circuits on your breadboard. These circuits are then connected to the ribbon
cable's socket connector with No. 22 or 24 gauge solid insulated wire. Figure
I-3 illustrates the method. Note that in addition to the !Cs, several other
components may be required, depending on the experiment. Appendix B
lists the components needed to do all the experiments in this book. Each
project also begins with a complete list of parts needed for that experiment.
------- NICE-TO-HAVE   COMPONENTS-------
There are additional supplies that can make your journey through this book
more meaningful and be an aid to you in troubleshooting your circuits.
LOGIC   PROBE
A digital circuit may have only two operating states:   ON   or   OFF.   The   out-
put of a logic gate is either high (1) or low   (0).   Although we could monitor
this condition with a voltmeter, another tool is often used-a   logic probe.
Figure I-4 pictures a typical probe. The light-emitting diodes (LEDs) serve
as the logic-level indicators. These correspond to the logic 1 and   0   states and

Reading notes: Table column alignment is unclear; product, row count and manufacturer associations may be misread. Mixed-case and line-break splits in table text make some product names uncertain.

Printed product names: Modular breadboard socket · Quick Test Socket · Proto-Board with Quick Test Sockets · QT-59S · QT-59B · ACE-200K · 923333 · ACE-201K · 923334 · PB-102 · 276-174

Printed prices: about $10 · about $15 · about $20 · about $30 · about $35

Languages: English

[Original PDF page 17](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=17)

### PDF page 18

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-9925191e34ad6771b0cdc95adebef182981e5de9dceef5230eab98f01fbf4c71)

Transcribed text:

8   Introduction
Figure 1-4   A   logic probe will be handy for monitoring logic levels. Its
three LEDs brightly indicate a logic 1, a logic   0,   or a pulse condition.
to a pulse condition (a logic level rapidly switching between the 1 and   0
states).
A logic probe   will   be very handy for monitoring circuit conditions in
the various   experiments in this book.   Often   we will be programming the
Apple to output a certain binary pattern which can easily be monitored with
the logic probe. Table I-2 lists several common logic probes, their distinguish-
ing features, and suppliers.
Again you can save money by building your own. There have been
numerous   articles   on   logic   probe   construction   over the last few years:
for   example,   Steve   Dominguez,   "Probos   V,"   Kilobaud Microcomputing,
October   1979, p. 78.   In   this article Dominguez describes a logic probe with
capabilities equal to those in Table I-2 but costing less than $5 for parts!
TABLE   1·2   VARIOUS   COMMONLY   AVAILABLE   LOGIC   PROBESa
Source
Radio   Shack
about $25
Jameco Electronics
1355 Shoreway Road
Belmont, CA   94002
about $23
Jame   co
about   $50
Part   number
22-301
LPK-1
LP-1
Description
Fully assembled, detects pulses
to   50   ns
Logic probe kit, detects pulses
to   300   ns;   fm ax   = 1.5 MHz
Fully assembled, detects pulses
to   50   ns;   fmax   =   10   MHz
a   A logic probe, although not essential, will be handy for monitoring logic levels in the
interface circuits.

Reading notes: Part numbers 22-301, LPK-1, and LP-1 are listed in the table but are not product names as such. Table I-2 column alignment for the 'Jame co' supplier entry is uncertain due to line breaks.

Printed product names: Logic probe · Probos V · Kilobaud Microcomputing

Printed prices: $5 · about $25 · about $23 · about $50

Printed dates: October 1979

Languages: English

[Original PDF page 18](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=18)

### PDF page 19

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-0a0caf41753c6dfdcc157dcaf45ceea00c05a872677365413e48a8bc92bce237)

Transcribed text:

Introduction   9
Another interesting example is the logic probe described by Robert
Kreiger,   "Build   an Audible Logic Probe,''   Popular Electronics,   July   1980,
p. 73. This circuit produces different audio tones for the three logic   condi-
tions (high, low, and pulse).
DC   VOLTMETER
Although not essential, a   DC   voltmeter will be handy to measure power
supply voltages and to troubleshoot simple electrical circuits.   It   is   particu-
larly handy to have an ohms function for continuity testing in cables-testing
for open circuits and short circuits. A meter with volts, ohms, and current
ranges is generally called a   VOM.   There are numerous sources for such meters,
with prices ranging from $5 to several hundred dollars.
OSCILLOSCOPE
A dual-channel oscilloscope would be very useful for troubleshooting and
tracing pulses through the various experiments. With it you would be better
able to appreciate the dynamic nature of the interfacing circuits.   If   you have
one, great-be sure to use it. If not, don't worry, all the experiments can
easily be built and tested without one.
SOFTWARE   REQUIREMENTS   ---- --
All the programs in this book are written in BASIC. Machine language could
be used for the software, but BASIC is much easier to work with and usually
does the job just as well. Occasionally, a problem can be solved only by using
machine code. Although these areas are pointed out, they are left for another
book and another day.
---- ----   --CONCLUSION   ----------
As a starting point, I would recommend purchasing a 25-ft roll of No. 24
gauge solid insulated wire and a good·quality wire stripper. Then page through
the experiments in Parts 2 and 3 and decide if you want to do   all   or just
some of these experiments.   Use   Appendix B to make up a parts shopping
list. Don't forget about the ribbon cable and Vector interface card. The
addresses of several suppliers are also given in Appendix B. Now prepare to
enter the world of microcomputer interfacing.

Reading notes: Source contains an OCR-style artifact '·' in 'good·quality' and irregular spacing in section dividers; '1980' appears in both a citation and a date.

Printed product names: Popular Electronics · VOM · Vector interface card

Printed prices: $5

Printed dates: July 1980 · 1980

Languages: English

[Original PDF page 19](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=19)

### PDF page 21

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-f6dc30d36a10816abe25e14f685ef5e01ddbc35f8d378816fa073c5504dd9320)

Transcribed text:

EXPERIMENT 1
------ THE   PEEK AND POKE   COMMANDS   ------
OVERVIEW
In this experiment you will connect the ribbon cable assembly to the bread-
board. A 7476 JK flip-flop will then be wired to monitor memory read and
memory write cycles.
OBJECTIVES
The key points to be learned from this experiment are:
1.   For interfacing purposes, the Apple can be thought of as having three
buses: the data bus, the address bus, and the control bus.
2. The control bus consists of two signals or lines: R/W and   4>0.
3. The Apple treats all its   1/0   devices as if they were memory locations.
This is called   memory-mapped   I/0.
4.   Only   two commands in   BASIC   allow access to the   I/0   devices. These
are the PEEK and   POKE   commands.
PARTS   LIST
1   7476 JK flip-flop
1   7400 quad two-input NAND gate
1   LED (light-emitting diode)
1   180-.Q   resistor (brown-gray-brown)
1   10-μF   capacitor
13

Reading notes: OCR-like artifacts in '4>0' and '1/0' likely denote PHI0 and I/O; '180-.Q' likely 180-ohm resistor; '10-μF' printed value uncertain

Printed product names: 7476 JK flip-flop · 7400 quad two-input NAND gate · LED (light-emitting diode)

Languages: English

[Original PDF page 21](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=21)

### PDF page 22

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-abd2f7d94a92518b5357d0ad7d8fcc32fdd8e2fc1ba835ff154bb275bf6f3138)

DISCUSSION: THE THREE-BUS SYSTEM ARCHITECTURE

Transcribed text:

14   Expe.riment 1
DISCUSSION:   THE   THREE-BUS   SYSTEM   ARCHITECTURE
Throughout this book we will be working with digital signals output by vari-
ous integrated circuits (!Cs) in our interface circuits. Learning to understand
these signals and   their dynamic nature is the essence of microcomputer
interfacing.
But what is a   digital signal?   Is it something that can be observed only
with an expensive oscilloscope, or will we need a digital voltmeter? First you
must appreciate that a digital signal can take on only one of two values.
These are usually referred to as the 1 and   0   states.   Other   names are HIGH
and   LOW   or   ON   and   OFF .
Most of the   !Cs   we will be working with are from the TTL (transistor-
transistor logic)   family of logic   circuits.   These devices typically produce
3.4   V   for a logic 1 and   0.2   V   for a logic   0.   Later in this experiment we will
see how light-emitting diodes (LEDs) can be used to observe these digital
signals.
Because a single digital line cannot carry too much information, several
lines are usually used and collectively referred to as a   bus.   On   the Apple we
have 16 lines devoted to carrying memory addresses and refer to these lines
as the   address bus.   We also have eight lines used for carrying data to and
from the microprocessor.   These lines are referred to as the   data bus.   We will
see that a third bus is also necessary for controlling the direction of data
flow and basic timing. This bus is referred to as the   control bus.
Interfacing to any microcomputer requires a detailed understanding of
these three buses and their unique timing. This is the primary objective of
Experiments 1 through 4.
The   Apple   System   Block Diagram
Figure 1-1 illustrates the Apple computer in block diagram form (actually
it could represent nearly any 8-bit microcomputer system). The main com-
ponents of the system are illustrated. The clock generator establishes the
basic timing for the entire computer. The   6502   CPU   (central processing unit)
acts as a   "traffic   cop"   directing the flow of data between the various system
components as it is directed by programs stored in RAM (random access
memory) and   ROM   (read-only memory). The later two blocks can be thought
of as programmable user memory and permanent operating system memory,
respectively. The keyboard and video screen are actually memory-mapped
devices and can be considered part of the RAM block.
Each of the three buses shown has a specific responsibility with which
we must become thoroughly familiar.
1.   The   data bus.   These eight lines handle the actual 8 bits of information
(one byte) that the   CPU   is working with. These bits may represent data

Reading notes: Page header text '14 Expe.riment 1' contains an apparent hyphenation artifact. Figure 1-1 is referenced but its content is not included in the supplied copy.

Printed product names: Apple · 6502

Languages: English

[Original PDF page 22](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=22)

### PDF page 23

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-1a990c8bde7076ba88a338c720fb616486f285b798a8c1055b7398437fcab779)

Transcribed text:

Experiment l
Clock
generator   Data bus   . oh~b1   ,
ROM
Control   bus .·>·   (Read   Only   .   Out   onl y
Memory)
CPU
Address bus   AO-A   15
RAM
(Random
Access
Memory)
Figure 1-1   Apple computer system block diagram. All components in
the system interface to the   6502   CPU   over the 8-bit data bus. Refer to
Appendix A and the text for specific details on signals brought out to
the peripheral connectors.
bytes or instruction operation codes.
15
Expansion
bus
2. The   address bus.   For the   6502   (and most other microprocessors) the
address bus consists of 16 output lines. The binary pattern placed on
these lines by the   CPU   determines the specific memory location to be
read from or written to. Because there are 16 address lines, there are
2  16  or 65,536 different addresses possible. These range from all 16 lines
low (address   0)   to all 16 lines high (address 65535). The specific pat-
tern on these lines is always generated by the   CPU   (except for direct
memory access) and therefore these lines are outputs only.
3.   The   control bus.   This bus could be considered to be all remaining sig-
nals at a typical peripheral connector. But this would mean a 21-pin bus
(excluding the five power pins)! For our immediate purposes we will
need only two of these lines (we will add a third in the next experi-
ment). The first is   R/W.   This control signal indicates if the current oper-
ation (machine cycle) will require the   CPU   to read data (an input) or
write data (an output). The solid bar above the W implies that the write
operation occurs when this line is low, a read when it is high.   <l>O   is the
second control signal and it is the microprocessor clock signal. In some
literature   <l>O   is designated   <l.>2.   This signal is important because the
6502   microprocessor uses its data and address buses only when this line
is high.
The three-bus structure just described requires a total of 27 lines. There
are also five power pins (±5   V,   ±12   V,   and ground). The remaining 18 pins

Reading notes: Garbled OCR characters in the block diagram labels and symbols (e.g., 'oh~b1', '·>·', '<l>O') Reading order of the diagram labels is uncertain Text is cut off mid-sentence at the end of the excerpt

Languages: English

[Original PDF page 23](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=23)

### PDF page 24

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/2#scan-9fb4a04ea5eb085a57a9ca2e46bc16b19c203195be1341e0a62c85a4cab773cb)

Transcribed text:

16   Experiment l
are described in Appendix A but will not be required for any of the experi-
ments in this book.
Read and Write Operations
The clock generator in Fig. 1-1 uses a 14.318-MHz crystal for its time base.
Flip-flop circuits divide this down to   1.023   MHz and it is then applied to the
6502   microprocessor as clock signal   4>0 .   Internally, the   4>0   clock signal is
split into two new clocks, called   4>1   and   4>2.   These two clock phases are then
output by the microprocessor and become part of the system control bus.
The   timing   relationships   among   these   three   clock signals are shown   in
Fig. 1-2.
<l>O(in)--~
<1>1   (out)   ----~/   \   ___ ___,r
<1>2   (out)   -   -   -   -..
Figure   1·2   Timing relationships between the three clock signals in the
Apple computer.   Only   cI>O   and   <l>l   are available at the peripheral   con-
nectors.
For reasons known only to Apple Computer Corp., the   4>2   clock out-
put of the   6502   is not used. Only   4>0   and   4>1   are available at the peripheral
connectors. Because   4>0   is nearly identical to   4>2   (4>0   leads   4>2   by approxi-
mately   30   ns), there are normally no problems in interfacing to the Apple
control bus.
Figure 1-3 illustrates the system timing for both read and write machine
cycle types. In Fig. 1-3a a read operation is occurring. The   CPU   begins by
establishing the proper binary address of the memory cell or   I/0   device on
address lines   AO   through Al5. At the same time, the   R/W   line is brought
high to signify a read operation. When   R/W   is high   AND   4>0   is high, valid
data is placed on the data bus by the   I/0   or memory device.
In Fig. 1-3b a write operation is occurring. Again the   CPU   begins by
outputting the memory or   I/0   device address on   AO   through Al5. This time
R/W   is pulsed low, signifying a write operation. When   R/W   is low   AND   4>0
high, the   CPU   places the actual output data on the data bus, allowing mem-
ory or   I/0   to latch the data byte.

Reading notes: OCR-style spacing and symbol errors in clock notation (e.g., '4>0', 'l') in source text

Languages: English

[Original PDF page 24](https://www.vintageapple.net/files/845161c3aa871f18f69ee9ba9ab2946266798319be2773329132f6cacf9b1fe5/Hardware_Interfacing_With_The_Apple_II_Plus_1983.pdf#page=24)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/1.md)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-hardware-interfacing-with-the-apple-ii-plus-1983-0811ca/3.md)
