Vous êtes sur la page 1sur 10

TEST REPORT

Practical of Digital Technique 2


Counter Up/Down with LED and 7-Segment

Made by:
M. Cakti Abussalam AA (214341063)
Teddy Sukma Apriana (214341070)
2AEC

AUTOMATION MANUFACTURING AND MECHATRONICS


POLYTECHNIC OF MANUFACTURE BANDUNG
NOVEMBER 2015

TEST REPORT OF DIGITAL TECHNIQUE 2


An Counter Controlled LED With Seven Segment

3TKIM
VTDC
BANDUNG

A. TITLE : COUNTER CONTROLLED LED WITH SEVEN SEGMENT


B. OBJECTIVE
a. Observate how IC 74193 Counter works
b. Create a simulation project based of counter and LED
C. PROJECT DETAIL
3 LED with different color (red, yellow and green) will continously running
when this conditions are true :
1. When the value of A and B is 0, then the present state will be held until
the value of A or B or Both changed.
2. When the Value of A is 1 and b is 0, then the seven segment will
display downcounting number until the value of A or B or both changed
3. When the Value of A and B is 1, then the seven segment will display
upcounting number
Until one or both of the values changed
4. Green LED will lights if the number in 7 segment between 0 to 90
5. Yellow LED will lights if the number in 7 segment between 91 to 125
6. Red LED will lights if the number in 7 segment between 126 to 250

D. SCHEMATIC DIAGRAM

ii | P a g e

TEST REPORT OF DIGITAL TECHNIQUE 2


An Counter Controlled LED With Seven Segment

iii | P a g e

3TKIM
VTDC
BANDUNG

TEST REPORT OF DIGITAL TECHNIQUE 2

3TKIM
VTDC

An Counter Controlled LED With Seven Segment

BANDUNG

E. TRUTH TABLE
Table 1.1. Table of Control
A

Description

HOLD

DOWN

UP

Table 1.2. Table of LED Condition based from Number that Counted Up
Count

Lamp

0 90

GREEN

91 125

YELLOW

126 250

RED

Information:
LED Condition in Table 1.2 also based from Number that Counted Down.
F. TIMECHART

RED
YELLO
W
GREE
N
0

9
0

9
1

12
5

12
6

25
0

G. EXPLANATION
There are 4 kind of ICs that we used in here
1. IC 74153
A 1-of-4 dual multiplexers, used to decide the mode of the counter. This IC
have 2 Selectors, that we will use it with A and B. We will use only one in this
project.
2.IC74193
A 4-bit Sychronous Up/Down Binary Counters with dual clocks and clear,
to counting and also the main IC. We will use 3 in this project
3. IC4508
A Dual 4-bit Latch, to lock the signal that have been transferred from
counter. Combined with LED and diode, this is the last processing system
before output

iv | P a g e

TEST REPORT OF DIGITAL TECHNIQUE 2


An Counter Controlled LED With Seven Segment

3TKIM
VTDC
BANDUNG

4. Logic Gates
Standards logic gates, to control counters, setting up the signals, and
many mores. In here, we use NAND, NOR, AND, and OR.
This project are divided to some sub projects :
a. Changing counter mode with IC multiplexer
Here we use a dual 1-of-4 multiplexer. Each one of this multiplexer will
control the input of either UP or DOWN. So when using the IC74153, 1Y
will go to UP and 2Y will go to down.
the 74193 have many charateristic, depending on the input of up and
down. The counter will held its present state if UP and DOWN have 1
value. To counting UP, Clock must go to UP and DOWN must has a 1
value. To counting DOWN, Clock must go to DOWN and UP must has a
1 value.
So when A and B is 1, clock, which must go to UP, must be placed in
1x3 (because when the selectors is all 1 the active gate in mux will be
1x3). And VCC +5v (high voltage) must go to 2x3. When A is 0 and B is
1, clock must go to DOWN, therefore it will be placed on the active
gate, 2x2. 1x2 will be inputted with 1 so the UP will have 1 value. For
the hold, we can just leave 1x1 and 2x1 unconncected, because the
output will still be one. The diagram of mux and the first (LSB) counter
will be like this :

b. Upcounting
IC 74193 is 4bit counting; therefore, will repeat counting at 1111, by
default and in upcounting mode. We need to change it so it will reset at 9, or
by binary code, 0101. To achieve it, we make the counter so 10 (0110) will
reset the counter.
Q0 and Q3 will go to NOT gates, and will go to AND 4 input with Q2
and Q1. The result will go to MR, and also go to UP of the next digit counter.
The next counter also get UP from the 0110 from counter before. The
diagram would be like this :

v|Page

TEST REPORT OF DIGITAL TECHNIQUE 2


An Counter Controlled LED With Seven Segment

3TKIM
VTDC
BANDUNG

c. Down Counting
IC 74193 is 4bit counting; therefore, will repeat counting at 0000 and
back to 1111, by default and in downcounting mode. We need to change it so
it will reset at 0 and back at 9, or by binary code, 0101. To achieve it, we
make the counter so Borrow (TCD) will reset the counter.
TCD is borrow, which will be active when 0000 will counting down,
back to 1111. We need to make this borrow make the load 0 (as opposite of
upcounting which is reset). So the borrow must go to a NAND gate with clock,
because the reset must be synchronized with clock. In normal states, load
will be loaded by 1 value. But when TCD and clock is at 1 value, the counter
will resetted to the input binary code (D0 to D3). The next counter also get
their clock DOWN from the NAND of counter before. The diagram would be
like this :

vi | P a g e

TEST REPORT OF DIGITAL TECHNIQUE 2


An Counter Controlled LED With Seven Segment

3TKIM
VTDC
BANDUNG

d. Giving LED signal using IC 4508


Now we want to make a sub program that woul fullfill from X-bit to Ybit, LED A will turn on. The idea is to make the signal latched until
another LED signal. In here, we use a 4508, a dual bit latch IC. Also, we
need a MUX or a combination of logic gates so we can divide the up
counting mode and down counting one. For OE and MR gates we will gave
them 0 value ( ground).
In UP counting, green LED will turn on from 0, then the Yellow one will
turn from 91, the red one will turn on from 126. So the signal we must
latch in here is 0000 0000 0000 for green, 0000 0101 0001 for yellow,
and 0001 0010 0110 for red. In diagram below, assuming that we have
the signal combined from logic gates, the signal of each other must go to
a data and the enable. It was necessary to add a diode before the junction
of 3 datas before going to the enable for making sure the other signal
wont disturb another. To make it easier to understand, here is a diagram

vii | P a g e

TEST REPORT OF DIGITAL TECHNIQUE 2


An Counter Controlled LED With Seven Segment
with diode and without diode.

With diode, we cab see that the program will run like what we have
planned. No problem has found when we move to the next state (see Fig.
below)

viii | P a g e

3TKIM
VTDC
BANDUNG

TEST REPORT OF DIGITAL TECHNIQUE 2


An Counter Controlled LED With Seven Segment

3TKIM
VTDC
BANDUNG

Without diode, the input of one signal will disturb the others, causing IC
wont work like what we have planned.

We can use the exact thing with down counting mode by changing the
signal. For down counting, red will turn on when 250, then the yellow will turn
on when 125, and the green will turn on from 90.
Now we combine all three subprojects into one, blending them to A
counter controlled LED, with the diagram as seen as below.

H. CONCLUSION

ix | P a g e

TEST REPORT OF DIGITAL TECHNIQUE 2


An Counter Controlled LED With Seven Segment
Our projects is to make three LED controlled by counter that can up
counting and down counting. There is also a mode for hold the current state.
There is still minors problem like when up counting, the led (because
changing the active IC) turned off when we changing the mode form up to
downcounting (or otherwise), mostly because the wiring. Afterall, this
counter works 95% like what we planned to do.

x|Page

3TKIM
VTDC
BANDUNG

Vous aimerez peut-être aussi