Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
B. Materials
Breadboard
5V Power Supply
Oscilloscope
555 Timer IC
7476 Dual JK Flip-flop
Assorted AND, OR, NAND, NOR, XOR, and INVERTER ICs
Assorted resistors and capacitors available in lab
C. Introduction
Multivibrators
A multivibrator is a circuit whose output oscillates between logic HIGH and LOW states, either
automatically or due to some input. There are three types of multivibrators:
1) Bistable multivibrators (flip-flops) - These devices have two stable states (Q = 0 and Q =
1). They can easily be switch from one stable state to the other.
2) Monostable multivibrators (one-shots) - These devices have one stable state, but they may
enter another unstable state for a certain period of time.
3) Astable multivibrator (clock generator) - These devices oscillate between two unstable
states, forming a clock (square wave generator).
Flip-Flops
A flip-flop is the simplest type of memory cell. Its output, Q, does not depend solely upon its
inputs, but also depends on the order in which they are applied. Thus, the flip-flop is not a
combinational circuit, but is a sequential circuit. The flip-flop is the key building block of most
synchronous sequential circuits. There are four common types of flip-flops. The symbol and
truth table for each is shown below.
S Q J Q D Q T Q
CK CK CK CK
R Q K Q Q Q
Flip-flops are synchronous devices meaning that the output responds to the synchronous inputs
(S, R, J, K, D, or T) only on certain clock edges. There are three main types of triggering:
1) positive-edge triggering - the output Q can only change on the positive (rising) edge of the
clock (due to the values of the synchronous inputs).
2) negative-edge triggering - the output Q can only change on the negative (falling) edge of the
clock (due to the values of the synchronous inputs).
3) master-slave triggering - the synchronous inputs are read on the positive edge of the clock,
but the output Q does not respond until the negative edge of the clock.
The type of triggering is sometimes indicated by the symbol. Shown below in Figure 2 are JK
flip-flops with all three types of triggering.
Positive-edge triggered: Negative-edge triggered: Master-slave triggered:
J Q J Q J Q
CK CK CK C
K Q K Q K Q
Flip-flops often have asynchronous inputs available also. These inputs are not synchronized with
the clock, therefore, the output may respond immediately to changes in these inputs. There are
two types of asynchronous inputs commonly used:
1) PRESET (also called SET) - used to preset the output Q to 1
2) CLEAR (also called RESET) - used to clear the output (set Q to 0)
Asynchronous inputs are often active-LOW. Therefore, they are typically tied HIGH for normal
flip-flop operation. The PRESET or CLEAR may be momentarily set LOW to initialize the flip-
flop to some desired initial value. The symbol for a flip-flop often show the asynchronous inputs
as indicated below in Figure 3.
PR
J Q
CK
K Q
CL
Debounced Switches
If the input to a flip-flop or sequential circuit is applied with a switch, it is important that the
switch is debounced so that only a single transition occurs when the switch is thrown such as is
shown in Figure 4A. The contacts in a simple switch will bounce for several milliseconds before
settling down allowing several transitions to occur such as is shown in Figure 4B. Since a
negative-edge triggered flip-flop reacts to each falling edge of the input clock, the input in Figure
4A would clock the flip-flop only once, whereas the input in Figure 4B would clock the flip-
flop three times.
switch switch
thrown thrown
7400 output
PR
J Q output
CK
K Q output 7400 output
CL
Figure 5A: Debounced switch using a JK flip-flop Figure 5B: Debounced switch using NAND gates
output
output
555 Timer
The 555 timer circuit is a popular IC that can be used to implement astable and monostable
multivibrator circuits as well as other circuits. The 555 is a linear IC (like an operational
amplifier or a voltage regulator) rather than a digital IC, thus it does not necessarily use TTL
voltage levels. In fact, the supply voltage for the 555 can range from 4.5V to 18V. If a 5V supply
if used, it can easily interface with TTL circuits. A simplified equivalent circuit for the 555 timer
is shown below in Figure 6.
Vcc Reset
8 4
6 Threshold
Upper
Comparator
_
2V
Control 3 cc +
5
Voltage 7 Discharge
Q
flip-
flop
1V _
3 cc
+ Output 3 Output
Driver
Lower
Comparator
Trigger 2
1
Ground
Vcc
8 4
R
A Vcc Reset
7 Discharge
Output 3
R
B
Control
6 Threshold Voltage 5
Shown in Figure 8 are the capacitor and output waveforms for the astable multivibrator (clock
generator).
Capacitor
Voltage
2 -t/[(R + R )C] 1
Vcc [1 - e A B ] + Vcc
Vcc 3 3
2 -t/( R BC)
Vcc e
2 V 3
cc
3
1 V
cc
3
0 time
Output
Voltage
T
Vcc
T
H
T
L
time
0
Figure 8: Capacitor and output waveforms for an astable multivibrator (clock generator)
1.44
The frequency of oscillation is given by: f =
(R A + 2R B )C
TH RA + RB
And the duty cycle is given by: D = = x 100%
T R A + 2R B
Note that a 50% duty cycle can be almost achieved by picking RB >> RA .
8 4
R
Vcc Reset
7 Discharge
Output 3 output
C
Control
6 Threshold Voltage 5
input Trigger Ground 0.01 uF
trigger 2 1
pulse
Shown in Figure 10 are the input trigger, capacitor, and output waveforms for the monostable
multivibrator (one-shot).
Input
Trigger
Voltage
falling edge triggers the one-shot
Vcc
0 time
Capacitor
Voltage
-t/(RC)
Vcc [1 - e ]
Vcc
2 V
cc
3
0 time
Output
Voltage
Vcc
0 time
Figure 10: Input trigger, capacitor, and output waveforms for a monostable multivibrator (one-shot)
The width of the pulse is given by : T = 1.1RC (solve for t when Vcc[1 - e -t/RC] =
(2/3)Vcc )
D. Preliminary Work
1. Design a one-shot using a 555 timer that will generate an output pulse that is HIGH for
A.BC seconds, where A, B, and C are the last 3 non-zero unique digits of your SSN in Hz.
For example, if your SSN is 144-86-8443, then the output pulse should last for 8.43
seconds. Pick a capacitor value that is available in lab (see the list of available capacitor
values in the Pinouts handout) or use a capacitor value that you have and use resistance
values between 1k and 1 M. Generate full circuit documentation for the circuit.
Include a debounced switch at the input and an LED at the output.
2. Design a clock generator using a 555 timer that will generate a clock with a frequency equal
to the last 3 non-zero digits of your SSN in Hz. For example, if your SSN is 144-86-8443,
then the frequency is 843 Hz.. Use a duty cycle that is somewhat close to 50% (calculate its
exact value). Pick a capacitor value that is available in lab (or one that you have) and use
resistance values between 1k and 1 M. Generate full circuit documentation for the
circuit.
E. Laboratory Work
1. Construct a debounced switch using 2 NAND gates as shown in Figure 5B. Test its
operation (simply to see if it produces HIGH and LOW outputs as the switch is moved).
2. Connect a JK flip-flop using a 7476 and test it to complete the truth table shown below.
Use a debounced switch to clock the flip-flop. Were the results as expected?
Q(t) J K Q(t+1)
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
3. Connect the one-shot designed in step 1 of the Preliminary Work according to the wire
table generated. Measure the exact value of all resistors and capacitors used. Record
the designed values and the measured values in a table. Test the one-shot and record the
duration of the output pulse and compare it to the designed value. Demonstrate proper
operation of the circuit to the instructor. In your report, recalculate the expected time for
the output using the measured component values and compare the time to measured using
a stop watch in lab.
4. Connect the clock generator designed in step 2 of the Preliminary Work according to the
wire table generated. Measure the exact value of all resistors and capacitors used.
Record the designed values and the measured values in a table. View and accurately
sketch the output clock pulse and the capacitor voltage. Measure values for TH, TL, T, D,
and f from the oscilloscope. Compare these to calculated values using measured
component values. Demonstrate proper operation of the circuit to the instructor.
Page 8
5. Connect the output of the clock generator in the previous step to the clock input of a JK
flip-flop in the toggle mode as shown in Figure 11. View the output of the clock
generator and the output of the flip-flop simultaneously (the clock output near the top of
the screen and the flip-flop output near the bottom) and accurately sketch the results.
From the sketch can you tell if the flip-flop is positive or negative edge triggered?
Discuss how the frequency of the flip-flop output compares with the frequency of the
clock output. A JK flip-flop in the toggle mode is sometimes called a divide-by-2 circuit.
Why?
555 output 1 J Q
timer
clock 1 K Q
generator
Figure 11: 555 clock generator and JK flip-flop in the toggle mode (J = K = 1)