Professional Documents
Culture Documents
INPUTS OUTPUTS
A B CARRY SUM
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
HALF ADDER CIRCUITS
LIMITED WHEN WE
HAVE MULTIBITS INPUTS OUTPUTS
A B CARRY SUM
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
HALF ADDER (1, 1)
HALF ADDER (1,0)
FULL ADDER
A full adder is a logical circuit that
performs an addition operation on three
binary digits. The full adder produces a
sum and carry value, which are both binary
digits
INPUTS OUTPUTS
A B C C S
IN OUT
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
THE OUTPUT TO THE 1 1 0 1 0
OR GATE IS NOT THE 1 1 1 1 1
SUM
Full adder (1, 0, 1)
Full adder (1, 1, 1)
Question to try
I1
Symbols:
Set Normal
S Q
FF
R Q
Reset Comple-
mentary
Another useful feedback circuit using two NAND gates
is shown above.
The inputs R and S are called Reset and Set
respectively and the outputs Q and Q are
complements of each other (i.e. If Q =0, then Q=1)
SR flip Flop
An SR Flip Flop is an arrangements of
logic gates that maintains a stable output
even after the inputs are turned off. This
simple flip flop circuit has a set input (S)
and a reset input (R). The set input causes
the output of 0 (top output) and 1 (bottom
output). The reset input causes the
opposite to happen (top = 1, bottom =0).
Flip Flops
Once the outputs are established, the
wiring of the circuit is maintained until S or
R go high, or power to the circuit is turned
off.
This is a simple model of how a bit of RAM
can be perpetuated
S=1
R=1
-The flip flops that uses S (set) and R (reset)
are simply called SR flip-flop or SR latch.
-It is sometimes called a latch due to its
ability to latch onto data.
-The flip flop can be made from two NAND
gates or two NOR gates.
-Flip flop circuits will only remember stuff
while power remains in the circuit.
Flip flops from NOR gates
One problem with the basic RS NOR latch is
that the input signals actively drive their
respective outputs to a logic 0, rather than to
a logic 1. Thus, the S input signal is applied to
the gate that produces the Q' output, while the
R input signal is applied to the gate that
produces the Q output.
S R Q Q
0 0 STA BLE
1 0 1 0
0 1 0 1
1 1 AVO ID
FLIP FLOPS FROM NAND
GATES
Stop-Go Traffic Lights
Either the red is on
or the green light is
on, but not both
together
USES OF FLIP FLOP
A fire alarm
which, once
triggered, will
continue to sound
until it is reset.
Remember 0,0 is
not allowed!!
Clock
Digital signal in the form of a rectangular or
square wave
Astable
multivibrator
L
time
Level triggering
Clocks and synchronization
A clock is a special device that whose output
continuously alternates between 0 and 1.
clock period
The time it takes the clock to change from 1 to 0 and back to 1 is called the clock
period, or clock cycle time.
The clock frequency is the inverse of the clock period. The unit of measurement for
frequency is the hertz.
Clocks are often used to synchronize circuits.
They generate a repeating, predictable pattern of 0s and 1s that can trigger certain events in
a circuit, such as writing to a latch.
If several circuits share a common clock signal, they can coordinate their actions with
respect to one another.
3 ON ON OFF 011
5 ON OFF ON 101
6 OFF ON ON 110
7 ON ON ON 111
Digital to analogue converters
Digital computers and microcomputers are
digital information processing systems, but
information quite often is in analog form
(e.g. speech, music and video signals).
To process this information with digital
techniques it must first be converted from
its analog to digital form. The device that
does this is knows as an analog-to-
digital converter (ADC or A/D converter).
In addition, since many types of electronic
equipment are inherently analog devices
(e.g., stereo amplifiers, radio and
television receivers), there are many
occasions when it is necessary to
transform digital information to analog
information. This is accomplished by using
a device know as a digital-to-analog
converter (DAC or D/A converter).
Using the Summing Amplifier as a
digital to analogue converter
Recall that for the summing amplifier
V1 V2
VOUT R f ( )
R1 R2
Pulse X Y Z
No.
0 0 0 0
1 1
2 0
3 1
4 0
(b) Outputs X, Y and Z of the diagram on the
previous page are connected to the inputs
of the circuit below. Each of the inputs has
a potential of 5V if it recieves a 1 and 0V
if it receives 0V
1. Write an equation relating Vout to the three
input voltages Vx, Vy and Vz
2. Calculate the value of Vout for the
following binary inputs (in reverse order
Z,Y,X)
(i) 001(i.e. Z=0, Y=0 and X=1)
(ii) 101
(iii) 110
3. Briefly describe how the circuit can act as
a digital to analogue converter
Try this question!!