Experiment 2 SALAZAR
Experiment 2 SALAZAR
Experiment 2 SALAZAR
Experiment No. 2
UP-DOWN COUNTERS
I. OBJECTIVES:
II. MATERIALS:
III. PROCEDURE:
Clock (1 A B C
cycle)
0 0 0 0
1 1 0 0
2 0 1 0
3 1 1 0
4 0 0 1
5 1 0 1
6 0 1 1
7 1 1 1
2. Construct the down counter shown in Figure 2-1b. Apply 8
clock pulses; record the results and observe.
Clock (1 A B C
cycle)
0 1 1 1
1 0 1 1
2 1 0 1
3 0 0 1
4 1 1 0
5 0 1 0
6 1 0 0
7 0 0 0
Connect the DOWN pin to +Vcc and apply clock to UP pin and apply
8 clock pulses. Record the results.
Clock (1 A B C D
cycle)
0 0 0 0 0
1 1 0 0 0
2 0 1 0 0
3 1 1 0 0
4 0 0 1 0
5 1 0 1 0
6 0 1 1 0
7 1 1 1 0
8 0 0 0 1
9 1 0 0 1
10 0 1 0 1
11 1 1 0 1
12 0 0 1 1
13 1 0 1 1
14 0 1 1 1
15 1 1 1 1
Connect the UP pin to +Vcc and apply clock to DOWN and apply 8
clock pulses. Record the results.
Clock (1 A B C D
cycle)
0 1 1 1 1
1 0 1 1 1
2 1 0 1 1
3 0 0 1 1
4 1 1 0 1
5 0 1 0 1
6 1 0 0 1
7 0 0 0 1
8 1 1 1 0
9 0 1 1 0
10 1 0 1 0
11 0 0 1 0
12 1 1 0 0
13 0 1 0 0
14 1 0 0 0
15 0 0 0 0
5. Apply the clock to both DOWN and UP pin simultaneously, and note
the result.
6. Explain how the Figure 2-3 will guarantee that UP = DOWN so that
the counter will always be either the count-up or count-down
mode.
The figure 2-3 will guarantee that UP=DOWN so that the counter
will always be either the count-up or count-down mode by connecting
the SR flip-flop to the figure 2-2. It will configure the circuit to count-
up or count-down mode. By connecting the count-up terminal to the Q
of SR and connecting the count-down to the Q’ of SR flip-flop
IV. OBSERVATION:
As I have observed, goal of this experiment is to demonstrate how the
up counter and down counter works using flip-flops, specifically JK flip-flops.
The cascading of JK flip-flops is seen in the first circuit. When the clock pulse
is activated, the up counter starts at 111 and finishes at 000, while the down
counter is the opposite. The counter circuits are operated with an external
clock to toggle in order to generate incrementing counts (000-111) to the first
JK flipflop, according to the circuits. Because the Q in the first flip-flop is
connected to the CLK of the second flip-flop, the first flip-flop will act as a clock
to the second flip-flop, and the second flip-flop will work as a clock to the third
flip-flop to change the state of the outputs. In other words, outputs A, B, and
C will generate a count that will increase over time. The Q' of the first flip-flop
is connected to the CLK of the second flip-flop in the second circuit, and the Q'
of the second flip-flop is connected to the CLK of the third flip-flop in the third
circuit. The circuit will generate a decrementing count in this arrangement. An
up-down counter is represented by circuit 2-2. When the clock is triggered, it
will produce an increment counting from 000 to 111 if the up-counter line is
connected directly to the VCC and the down-counter line is grounded. When
the clock is triggered, the down-counter line is connected directly to the VCC
and the up-counter line is grounded, resulting in a decrement counting from
111 to 000. Circuit 2-3 serves as a switch for circuit 2-2, with an SR flip-flop
used to monitor the switch's logic and determine whether the circuit is in
counter-up or counter-down mode. To configure the circuit, toggling the
switches for SR and the clock has a high input, the 2-3 switch must have an
output of 10 for counter-up and 01 for counter-down. The counter-up line is
connected to the Q line of the switch, while the counter-down line is connected
to the Q' line of the switch. By setting the clock to 2-2, you can choose between
increment and decrement counting. If both SR are 00, the SR flip-flop will only
trigger an increment counting since set is higher than reset in the priority
order. The 74193 is used to show how to count up and down. The pins load
and down are connected to the VCC, while the up pin is connected to the clock
in the Q terminal to provide increment counting in the up-counter setup. To
create a decrement counter, the pins load and up are linked to the VCC, while
the down pin is connected to the clock in the Q terminal. If the clock's up and
down pins are both connected, the clock will only count in increments.
V. CONCLUSION:
A counter is a circuit that operates in a consecutive manner. The term
"counter" refers to a digital circuit that counts pulses. The most common use
of flip-flops is on the counter. A clock signal is applied to a collection of flipflops.
The circuits that were used in this experiment are examples of asynchronous
counter circuits. It used flip-flops to explain how the up, down, and up-counter
functions. To function, the counter circuits must be coupled in a series of JK
flip-flops that are timed by an external clock in order to determine whether the
output provides incrementing or decrementing counts. The output changes
based on the clock's toggling or triggering, with the output changing only when
the clock receives a signal pulse. Furthermore, asynchronous counter circuits
have a ripple effect in which the remaining flipflops receive their signal from
the previous flip-flops, resulting in misleading output counts between some
steps of the count sequence
VI. DIAGRAM: