Play Meter

Issue: 1978 June 30 - Vol 4 Num 12

By Paul Crankshaw
of Electronic Amusement Service
Learning logic circuits
INPUT
OliTPUf
0
I
1
0
INVERTERS
Figure 1
All your digital equipment , from
Pong to Sea Wolf II to the electronic
pin games, are constructed from a
few basic circuits. The microproces-
sor games have other more complex
circuits but still use many of the basic
circuits. Once you learn the basic
logic circuits you will be able to
understand and determine the oper-
ation or detect the non -operation of
the digital game .
A logic circuit performs some
specific logic functions on binary
data. Binary data is information in
the form of O's and 1's. A logic 0 is a
lo or ground and a logic 1 is a hi or
+ 5 v. level. Ajgic data ~be
termed as A or A. (or 1H or 1H) ; a
signa! name may mean anything , but
single letters are easier for examples .
Data A is lliLnerally an originating
data signal ; A~ pronounced A or A
NOT, is its complement.
Data A can be a 1 or a 0 or pulsing
data . Data that has been ANDED
~S§ther is represented as A • B or
• . Data that has been ORED is
represented as A+ B or A + S'.
Signal names with a • between them
is the result of ANDing , and signal
names with a + between them is the
result of ORing . A truth table is a
chart that shows all possible input
states and the resulting outputs of a
logic circuit.
The simplest logic circuit is the
inverter or NOT circuit. The output
of an inverter is always the opposite
or the complement of its input. If the
inJllit is A the output isA, if the input
isAthe output is A.
An inverter has one input and one
output that is its complement . The
circuit symbol itself is the triangle
while the circle on the output
designates the inverter (Figure One) .
The same symbol (the triangle)
without the circle would be a buffer
where the output would be the same
as the input.
The AND gate (Figure 2A) is a
multiple input device that has an
active H1 or 1 output when all the
inputs are Hi. The truth table shows
that any LO or 0 on any input will
result in a LO out, and only a H 1 on
all inputs will give a 1 out. The same
is true for an AND gate with more
than the two inputs shown . The
NAND gate (Figure 2B) output is
exactly opposite that of the AND
gate . Both inputs must be a 1 for an
active LO out. Simply it would be an
AND gate whose output goes
through an inverter.
Where the AND gate can be
represented mechanically by two
switches in series, the OR gate can be
represented by two parallel switches .
The OR gate device will have an
active Hi output when anyone of its
inputs is an active Hl. Only when
both A and B inputs are a LO will the
output be a low . The more common
NOR device again operates exactly
opposite the OR gate as can be seen
by comparing the truth tables of
Figures 2C and 2D .
AND GATE
A
=iCY-
OR GATE
i[Y-
c
NAND GATE
u~
B
I
LO
LO
HI
HI
2
LO
HI
LO
3
LO
LO
LO
HI
HI
I
2
3
LO
LO
HI
HI
LO
HI
LO
HI
HI
HI
HI
I
LO
LO
HI
HI
2
LO
3
HI
HI
HI
HI
NOR GATE
LO
LO
HI
HI
D
EXCLUSIVE OR GATE
E
~
F'lgure 2
LO
LO
HI
HI
LO
HI
LO
LO
2
3
LO
HI
LO
HI
HI
2
3
LO
HI
LO
HI
HI
HI
LO
LO
LO
LO
LO
D-TYPE
FLIP-FLOP
t = n
)..4
~
c
Figure 3
Ro
D
LO
LO
HI
HI
Q ~
.2.. D So
d ~
t = n
J
Q~
LO
LO
HI
HI
HI
~ CLK
Figure 4
LO
HI
LO
HI
Q
CLR
I
Hl 1
LO ~
PULSE
rL
t = n + 1
K CLK
LO -
HI -
LO -
HI LO
HI HI
Q
Q
I
I
t =- n ot = n
: + 1
NO CHANGE
LO
HI
HI
LO
HI
LO
LO
HI
I
HI
I
LO ~
PULSE
Truth Table valid only
when CLR is HI
?1o
The exclusive OR gate is used
extensively in video games . The truth
table of Figure 2E shows that the
exclusive OR gate has a H 1 output
when anyone but not both of the
inputs is a H 1 . If both inputs ar·e a LO
or a H1 the output is a LO .
Such circuits are used for a variety of
storage , counting and timing oper-
ations .
The two outputs o.LI,.flip flop are Q
and its complement Q . The state of
the Q or normal output tells you the
state of the flip flop . If Q is a 1 the flip
flop is set , if it is a 0 the flip flop is
reset .
Rip Aops
A flip flop is a digital logic device
used to store one bit of binary data . It
has two stable states , one repre-
senting a binary 0 . The flip flop is the
basic logic element used in sequential
logic circuits. The primary character-
istic of a sequential circuit is memory.
D-type flip flop
The D-type flip flop has two
inputs . The D input is where you
apply the bit to be stored . The C or
CLK controls the flip flop . It is used
- to determine whether the input data
CLK
F"JgUre 5
A SIMPLE COUNTER
CLK
QA
QB
~
QD
I
t = n:t = n+1
LO
LO
HI
HI
Truth Table valid only when
and R are both HI
0
J-K MASTER SLAVE
FLIP-FLOP
~ K
c
I
s 0
?1
~J
t = n + 1
Q
I
I
I
I
I
I
I
is recognized or ignored . If the CLK
line is Hi the data on D is stored and
present at the Q output. If C is Lo ,
the D data is ignored and the bit
stored previously is retained . As long
as the CLK input is Hi , the Q output
will follow the D input .
This operation of the D flip flop is
only valid as long as the Preset and
Clear control lines are Hi. A Lo on
the preset causes Q to go Hi and
remain there . A Lo on the clear line
causes Q to go Lo . The Q output will
be the complement of Q . The
present and clear inputs predominate
over all other inputs. (Figure Three) .
J-K flip flop
The J -K flip flop is really two flip
flops in one, where one FF feeds the
other. This arrangement is called a
masterslave flip flop . The master flip
flop is the input circuit where the
input signals are applied . The slave
flip flop in the J -K circuit provides the
output signals and the slave gets its
inputs from the master. A clock pulse
controls both master and slave flip
flops (Figure Four) .
If both the J and K inputs are Lo ,
the clock impulse will have no effect
on the outputs; they will remain in
their previous states. When the J and
the K inputs are at opposite logic
levels , regardless of which input is Hi
and which is Lo , the negative going
edge of the clock signal will transfer
the J input bit to the Q output and
the K bit to the""'O" output . In effect this
input configuration , both Hi, makes
the JK flip flop a divide by 2 counter .
As with the D type flip flop the clear
input must be a Hl. A Lo outear
forces and holds Q Lo and Q , its
complement, H1 .
Counters
There are a wide variety of
counters used in games today .
Basically a counter is noth ing more
than a series of flip flops . A four-bit
counter for instance would have four
JK flip flops in series . The input data
would be fed to the first CLK input
and the Q output of each stage acts
as the clock of each succeeding flip
flop stage . The J and K inputs are at
a H11evel which makes each flip flop
stage a divide by 2 counter . Only the
Q output of each of the four flip -flop
stages are used . Each output will be
one half the output frequency of the
preceding stage (Figure Five) .
There are many other more
complex logic circuits used in games.
A good TTL Data Book will show the
operation of each of the different
types that you may need to know .
The next article will deal these circuits
and some of the more complex
circuits from a troubleshooting stand-
point rather than how they operate .

Download Page 3: PDF File | Image

Download Page 4 PDF File | Image

Future scanning projects are planned by the International Arcade Museum Library (IAML).

Pro Tip: You can flip pages on the issue easily by using the left and right arrow keys on your keyboard.