Professional Documents
Culture Documents
Objective:
- Verifying flip-flop operation and obtaining their truth table.
- Investigating the binary counters and obtaining their operation principles.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
1
Lab 4: Implementation of Sequential Logic Circuits.
I- Flip-flop
In the previous experiments, combinational logic circuits such as decoders, encoders, multiplexers
anddemultiplexers were considered. On the other hand, in a sequential logic circuit; in addition to logic gates
there are also memory elements. Flip-flops are basic memory elements used in a sequential logic circuit. When
the memory elements are removed from a sequential logic circuit the remaining part of the circuit is just the
combinational part. In the experiment, flip-flops are considered. One of the basic devices storing and
processing the digital data (1s and 0s) is the flip-flop. There are basically four types of flip-flops:
1- SR flip-flop (latch)
2- D flip-flop
3- JK flip-flop
4- T flip-flop
1. Examination of JK Flip-flop
- Preliminary information: The schematic symbol and the function table of 74LS112 dual JK flip-flops
with Preset and Clear is shown in Fig. 4.1.
Fig 4. 1 The schematic symbol and the function table 74LS112 dual JK flip-flops with Preset and Clear.
- Equipment:
o Analog Discovery Studio
o Integrated Circuits (ICs) :
74LS112 Dual JK Flip-flops with Preset and Clear 1 IC
o Connection wires.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
2
Lab 4: Implementation of Sequential Logic Circuits.
Fig 4. 3 The dual JK flip-flop circuit with Preset and Clear – Application circuits
Note: Do not forget to connect the Vcc pins to +5 V and the GND pins to ground (GND) connection.
- Procedure:
1) Construct the circuit [as given in Fig. 4.2. and as] drawn by you in Fig. 4.3 and apply the power.
2) Apply first the following Preset, Clear, J and K and then the CLK to the inputs of the circuit, given
in Table 4.1 and experimentally obtain the output values and take note of the outputs in the Table:
Notes: Output status changes only when falling edge clock appears. Falling edge clock is created
when you turn the switch from level 1 to level 0.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
3
Lab 4: Implementation of Sequential Logic Circuits.
Table 4. 1
2. Examination of D Flip-flop:
- Preliminary information: The schematic symbol and the function table of 74LS74 dual rising edge
triggered D flip-flops is shown in Fig. 4.4.
Fig 4. 4 The schematic symbol and the function table of 74LS74 dual rising edge triggered D flip-flops.
- Equipment:
o Analog Discovery Studio
o Integrated Circuits (ICs):
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
4
Lab 4: Implementation of Sequential Logic Circuits.
o Connection wires.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
5
Lab 4: Implementation of Sequential Logic Circuits.
Table 4. 2
3. Converting a JK flip-flop into a D flip-flop
- Equipment :
o Analog Discovery Studio
o Integrated Circuits (ICs):
74LS112 Dual JK Flip-flop with Preset and Clear 1 IC
74LS04 Hex inverters (six independent gates) 1 IC
o Connection wires.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
6
Lab 4: Implementation of Sequential Logic Circuits.
Note: Do not forget to connect the Vcc pins to +5 V and the GND pins to ground (GND) connection.
- Procedure:
1) Construct the circuit [as given in Fig. 4.7. and as] drawn by you in Fig. 4.8 and apply the power.
2) Apply first the following Preset, Clear, D and then the CLK to the inputs of the circuit, given in
Table 4.3 (follow the given inputs from top to down) and experimentally obtain the output values
and take note of the outputs in the Table.
Notes: Output status changes only when falling edge clock appears. Falling edge clock is created when
you turn the switch from level 1 to level 0.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
7
Lab 4: Implementation of Sequential Logic Circuits.
Table 4.3
4. Examination of T Flip-flop:
- Equipment:
o Analog Discovery Studio
o Integrated Circuits (ICs):
74LS112 Dual JK Flip-flops with Preset and Clear 1 IC
o Connection wires.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
8
Lab 4: Implementation of Sequential Logic Circuits.
- Procedure:
1) Construct the circuit [as given in Fig. 4.9. and as] drawn by you in Fig. 4.10 and apply the power.
2) Apply first the following Preset, Clear, D and then the CLK to the inputs of the circuit, given in
Table 4.4 (follow the given inputs from top to down) and experimentally obtain the output values
and take note of the outputs in the Table.
Notes: Output status changes only when falling edge clock appears. Falling edge clock is created when
you turn the switch from level 1 to level 0.
Table 4. 4
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
9
Lab 4: Implementation of Sequential Logic Circuits.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
10
Lab 4: Implementation of Sequential Logic Circuits.
synchronous counters the input ticks are applied to all the Clk inputs of the flip-flops at the same time. The
fact that a flip-flop changes state depends on the states of other flip-flops. All flipflops work in toggle mode in
an asynchronous counter.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
11
Lab 4: Implementation of Sequential Logic Circuits.
- Procedure:
1) Construct the circuit [as given in Fig. 4.11 and as] drawn by you in Fig. 4.12 and apply the power.
In the beginning of the experiment, connect the Clock to a DIO and set it as a switch.
2) Set the input A = 0 and B = 1, note the result.
3) Set the input A = 1 and B = 0, note the result.
4) Set A = B =1, turn on the switch and then turn off to make a pulse into CLK input. Note down your
observation in Table 4.2.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
12
Lab 4: Implementation of Sequential Logic Circuits.
Table 4. 5
5) Set A = B = 1, supply Clock signal using Digital Pattern Generator. Set the parameter as below:
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
13
Lab 4: Implementation of Sequential Logic Circuits.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
14
Lab 4: Implementation of Sequential Logic Circuits.
Note: Do not forget connect the Vcc pins to +5 V and the GND pins to ground (GND) connection.
- Procedure:
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
15
Lab 4: Implementation of Sequential Logic Circuits.
1) Construct the circuit [as given in Fig. 4.13 and as] drawn by you in Fig. 4.14 and apply the power.
In the beginning of the experiment, connect the Clock to a DIO and set it as a switch.
2) Set the input A = 0, note the result (this means all preset inputs of flip-flops are inactive).
3) Set A = 1, turn on the switch and then turn off to make a pulse into CLK input. Note down your
observation in Table 4.
Table 4. 6
6) Set A = 1, supply Clock signal using Digital Pattern Generator. Set the parameter as below:
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
16
Lab 4: Implementation of Sequential Logic Circuits.
Note: Do not forget connect the Vcc pins to +5 V and the GND pins to ground (GND) connection.
Fig 4. 16 The 4 bit asynchronous binary up counter – application circuit
- Procedure:
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
17
Lab 4: Implementation of Sequential Logic Circuits.
1) Construct the circuit [as given in Fig. 4.15 and as] drawn by you in Fig. 4.16 and apply the power.
In the beginning of the experiment, connect the Clock to a DIO and set it as a switch.
2) Set the input A = 0 and B = 1, note the result.
3) Set the input A = 1 and B = 0, note the result.
4) Set A = B =1, turn on the switch and then turn off to make a pulse into CLK input. Note down your
observation in Table 4.7.
Table 4. 7
5) Set A = B = 1, supply Clock signal using Digital Pattern Generator. Set the parameter as below:
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
18
Lab 4: Implementation of Sequential Logic Circuits.
The 74LS93 is an example of a specific TTL IC asynchronous up counter. Fig. 8.8 shows the
schematic symbol, the logic diagram, the reset/count truth table and the count sequence of the 74LS93
4 bit asynchronous up counter IC. As the logic diagram in Fig. 8.8 shows, this device actually consists
of a single flip-flop and a 3-bit asynchronous counter. This arrangement is for flexibility. It can be used
as a divide-by-2 device if only the single flip-flop is used, or it can be used as a MOD8 counter if only
3-bit counter is used. This device also provides gated reset inputs, MR1 and MR2. When both of these
inputs are HIGH, the counter is reset to 0000 state.
- Equipment:
o Analog Discovery Studio
o Integrated Circuits (ICs): 74LS93 4 bit binary counter 1 IC
o Connection wires.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
19
Lab 4: Implementation of Sequential Logic Circuits.
- Procedure:
1) Construct the circuit [as given in Fig. 4.17 and as] drawn by you in Fig. 4.18 and apply the power.
In the beginning of the experiment, connect the Clock to a DIO and set it as a switch.
2) Set the input A = 1, turn on the switch and then turn off to make a pulse into CLK input and note
the output value.
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
20
Lab 4: Implementation of Sequential Logic Circuits.
3) Set the input A = 0, turn on the switch and then turn off to make a pulse into CLK input. Note
down your observation in Table 4.8.
Table 4. 8
4) Set the input A = 0, supply Clock signal using Digital Pattern Generator. Set the parameter as
below:
- Parameter1: change the frequency from 1Hz, 10Hz and 100Hz,… and observe the operation of the
counter. After which frequencies you cannot observe the changing of count values by your eyes? Explain
why?
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
21
Lab 4: Implementation of Sequential Logic Circuits.
The 74LS93 can be used as a 4-bit MOD16 counter (counts 0 through 15). It can also be configured
as a decade counter (counts 0 through 9) with asynchronous recycling by using the gated reset inputs
MR1 and MR2.
- Equipment:
o Analog Discovery Studio
o Integrated Circuits (ICs): 74LS93 4 bit binary counter 1 IC
o Connection wires.
Note: Do not forget connect the Vcc pins to +5 V and the GND pins to ground (GND) connection.
- Procedure:
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
22
Lab 4: Implementation of Sequential Logic Circuits.
1) Construct the circuit [as given in Fig. 4.19 and as] drawn by you in Fig. 4.20 and apply the power.
In the beginning of the experiment, connect the Clock to a DIO and set it as a switch.
2) Turn on the switch and then turn off to make a pulse into CLK input. Note down your observation
in Table 4.9.
Table 4. 9
Electronics Department
Ho Chi Minh City University of Technology, Vietnam
23