IT2140E-Electronics for Information Technology DCE-SOICT-HUST
LAB 14: Counter
1 Goals
• Understand the working principle of asynchronous and synchronous counters.
• Build a 4-bit up/down counter using D and J-K flip flops.
2 Exercises
2.1. Asynchronous Counter
Use D flip flops to implement a 4-bit asynchronous counter (see Figure 1) that counts from
0000 to 1111.
Outputs (Q3 Q2 Q1 Q0 )
D S Q0 D S Q1 D S Q2 D S Q3
FF0 FF1 FF2 FF3
Clk Clk Clk Clk
R Q0 R Q1 R Q2 R Q3
Clock
Figure 1. 4-bit asynchronous counter using D flip flops.
Requirements:
• Test all ICs and equipment.
• Use the given ICs (74HC74-D flip flop, 74HC247-BCD to 7-segment decoder), 7-
segment display, and resistors to assemble the following counters on the breadboard.
Note: the counter value is displayed on a 7-segment display.
o A 4-bit synchronous up counter, counting from 0000 to 1111.
o A 4-bit synchronous down counter, counting from 1111 to 0000.
• Supply 5V/GND power to the circuit.
• Define the circuit’s activities and explain its operation.
• Write comments on the experimental results.
• Explain the working of the counter in detail.
2.2. Synchronous Counter
Use J-K flip flops to implement a 4-bit synchronous counter (see Figure 2) that counts from
0000 to 1111.
Requirements:
• Test all ICs and equipment.
IT2140E-Electronics for Information Technology DCE-SOICT-HUST
• Use the given ICs (74HC76-JK flip flop, 74HC247-BCD to 7-segment decoder,
74LS08-AND), 7-segment display, and resistors to assemble the following counters on
the breadboard. The counter value is displayed on a 7-segment display.
• Supply 5V/GND power to the circuit.
• Define the circuit’s activities and explain its operation.
• Write comments on the experimental results.
• Explain the working of the counter in detail.
Outputs (Q3 Q2 Q1 Q0 )
J0 S Q0 J1 S Q1 J2 S Q2 J3 S Q3
Clk FF0 Clk FF1 Clk FF2 Clk FF3
K0 R Q0 K1 R Q1 K2 R Q2 K3 R Q3
Clock (Input)
Figure 2. 4-bit synchronous counter using J-K flip flops.
Components/Equipment Description Quantity
74LS74 2× D flip-flop 2
74LS76 (or 74LS73) 2× J-K flip flop 2
74LS247 1× BCD-to-7-Segment Decoder 1
74LS08 4× 2-input AND 1
Resistor 330Ω 2
7-Seg Display Common Cathode (–)/Anode (+) 1
Buttons (or switch) 2-pin/4-pin 1
Power Supply Aditeg, 0-5 V 1
Breadboard 1
Connecting Wires Optional
Multimeter 1