0% found this document useful (0 votes)
516 views19 pages

Voting Machine Lab 11 Grp7

Common Anode Configuration: - The Anodes (Positive terminals) of all LEDs are connected together and to the positive supply. - Cathodes (Negative terminals) are connected individually to output pins of decoder IC. - When an output pin is high, it switches on the corresponding LED segment. Common Cathode Configuration: - The Cathodes (Negative terminals) of all LEDs are connected together and to ground. - Anodes (Positive terminals) are connected individually to output pins of decoder IC. - When an output pin is high, it switches on the corresponding LED segment. 14. The 7-segment display provided in the lab is of which type? Check its terminals and

Uploaded by

Aisha Sheikh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
516 views19 pages

Voting Machine Lab 11 Grp7

Common Anode Configuration: - The Anodes (Positive terminals) of all LEDs are connected together and to the positive supply. - Cathodes (Negative terminals) are connected individually to output pins of decoder IC. - When an output pin is high, it switches on the corresponding LED segment. Common Cathode Configuration: - The Cathodes (Negative terminals) of all LEDs are connected together and to ground. - Anodes (Positive terminals) are connected individually to output pins of decoder IC. - When an output pin is high, it switches on the corresponding LED segment. 14. The 7-segment display provided in the lab is of which type? Check its terminals and

Uploaded by

Aisha Sheikh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Department of Electrical Engineering

Faculty Member: Sir. Nasir Mahmood Dated: _______20/12/202_________

Semester:_________3rd _________________ Section: ____B____________

Group No.: 7

EE-221: Digital Logic Design

Assessment Rubrics for Lab 10: Voting Machine

PLO4/CLO4 PLO4/CLO4 PLO5/CLO5 PLO8/CLO6 PLO9/CLO7


Name Reg. No Viva / Lab Analysis of Modern Tool Ethics and Individual Total
Performance data in Lab Usage Safety and Team marks
Report Work Obtained

5 Marks 5 Marks 5 Marks 5 Marks 5 Marks 25 Marks


Fatima Humayun 339732

Ayza Amer 332631

Fajar Imran 339421

Javeria Ishtiaq 345111

EE-221: Digital Logic Design Page 1


Lab10: Voting Machine

This Lab experiment has been designed to familiarize the students with use of multiplexers to
implement a Boolean function and use BCD-to-Seven-Segment Decoder to drive the 7-
segment Display. This lab requires some knowledge of SSI/MSI combinational circuits like
Multiplexers, decoders, and Numeric Read-out Display.

Objectives

 Understand the function of Multiplexers and their uses in implementing a given Boolean
function.
 Familiarization with BCD-to-Seven-Segment Decoder IC as a driver to drive Numeric
Read-out.
 Transform any problem statement to truth table description, and choose output functions
that need Multiplexers implementation or other simplification techniques using logic gates.
 Design and verify combinational circuit design.

Lab Instructions

 This lab activity comprises three parts, namely Pre-lab, Lab tasks, and Post-Lab Viva session.
 The lab report will be uploaded on LMS three days before scheduled lab date. The students
will get hard copy of lab report, complete the Pre-lab task before coming to the lab and
deposit it with teacher/lab engineer for necessary evaluation.
 The students will start lab task and demonstrate design steps separately for step-wise
evaluation( course instructor/lab engineer will sign each step after ascertaining functional
verification)
 Remember that a neat logic diagram with pins numbered coupled with nicely patched circuit
will simplify trouble-shooting process.
 After the lab, students are expected to unwire the circuit and deposit back components before
leaving.
 The students will complete lab task and submit complete report to Lab Engineer before
leaving lab.
 There are related questions at the end of this activity. Give complete answers.

EE-221: Digital Logic Design Page 2


A. Pre-Lab Tasks 5 marks
1. Draw the Logic Diagram for a 4 to 1 MUX and also give its Truth Table and
Block Diagram Representation.

EE-221: Digital Logic Design Page 3


2. For implementing a Boolean function of n variables, a MUX with how many
Selection Lines and Inputs are needed?
Ans. n-1 selection lines are required. 2n-1 inputs are required.

3. For implementing the Function F(x,y,z)=∑(1,2,6,7), a MUX with how many


selection lines is needed?

Ans. 2 selection lines would be needed. 4x1 mux will be used.

4. Implement the above function (Draw its Logic Diagram) F with the MUX
suggested in answer to above question.

EE-221: Digital Logic Design Page 4


EE-221: Digital Logic Design Page 5
B. Lab Task 5 marks (complete the paper work before coming to the lab)
Voting Machine Problem:

A small corporation has 9 shares of stock. The corporation board consists of 4 members (A
Chairman, 2 senior members and 1 junior member).Each member of the Corporation
Board has a voting right at a Corporation Financial meeting. The committee has agreed to
assign the following share(s) to vote of each member.

Chairman : 4 shares

Senior Member : 2shares

Senior Member : 2 shares

Junior Member : 1 shares

The Committee wants to automate the voting process and get a voting machine that gets
input from each member and then display the total number of shares. Each of these
persons has a switch to close when voting yes (Logic 1) and to open when voting No (Logic
0) for his share.

You are a Design Engineer in the same corporation and have been asked to design such a
voting machine. The only ICs available to you are two 8x1 multiplexers a 3-input NAND
gates and a 7-Segment Decoder IC and a 7segemt LED Display.

5. Draw a simplified Block Diagram of such a voting machine (You do not need to make
exact Logic Diagram).

EE-221: Digital Logic Design Page 6


6. There are four inputs to this machine (one for each member) and the output is a binary
number (4-bit). Draw the truth table for the Output Function.

Input Output
W(4) X(2) Y(2) Z(1) A (8) B (4) C (2) D (1)
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 0
0 0 1 1 0 0 1 1
0 1 0 0 0 0 1 0
0 1 0 1 0 0 1 1
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
1 0 0 0- 0 1 0 0
1 0 0 1 0 1 0 1
1 0 1 0 0 1 1 0
1 0 1 1 0 1 1 1
1 1 0 0 0 1 1 0
1 1 0 1 0 1 1 1
1 1 1 0 1 0 0 0
1 1 1 1 1 0 0 1

EE-221: Digital Logic Design Page 7


7. You are provided with two 8- to-1 MUXs, so how many functions can you implement
with them?
Ans. an 8:1 mux has 3 selection lines, 8 input lines and only 1 output line, therefore 1 MUX can
be used to implement 1 function only. So if we are provided with 2 MUX, we can implement 2
functions.

8. Which of the above functions would you implement with MUX? Specify and also give
their Logic Diagram using MUX.

Ans. B and C would be implementing using MUX because of the Boolean expressions that were
derived. We are provided with 8:1 MUX, so we have 3 selection lines and 1 data line.
Considering XYZ as selection lines, we get following data.

EE-221: Digital Logic Design Page 8


EE-221: Digital Logic Design Page 9
9. Give the PIN Configuration of the 8-to-1 MUX provided to you in the lab.

EE-221: Digital Logic Design Page 10


10. Give the Boolean expressions for the remaining two functions and also give their Logic
Diagram (You can only use 3-input NAND Gate).

EE-221: Digital Logic Design Page 11


11. The 4 outputs ABCD are in binary (BCD), so we will have to use a BCD to 7-segment
Decoder to drive the 7-segment LED Display. Look for the BCD to 7-segment Decoder IC
in the lab and give its number and PIN Configuration. Look up on internet for the data
sheet of this IC.

12. Draw the truth table for the above IC.

Inputs Outputs
A B C D a b c d e f g
0 0 0 0 1 1 1 1 1 1 0
0 0 0 1 0 1 1 0 0 0 0
0 0 1 0 1 1 0 1 1 0 1
0 0 1 1 1 1 1 1 0 0 1
0 1 0 0 0 1 1 0 0 1 1
0 1 0 1 1 0 1 1 0 1 1
0 1 1 0 1 0 1 1 1 1 1
0 1 1 1 1 1 1 0 0 0 0
1 0 0 0 1 1 1 1 1 1 1
1 0 0 1 1 1 1 1 0 1 1
1 0 1 0 X X X X X X X
1 0 1 1 X X X X X X X
1 1 0 0 X X X X X X X
1 1 0 1 X X X X X X X
1 1 1 0 X X X X X X X
1 1 1 1 X X X X X X X

EE-221: Digital Logic Design Page 12


13. After selecting the decoder IC you need a 7-Segment LED Display. It comes in two
configurations Common Anode and Common Cathode. Differentiate between them by
drawing their Circuit Configuration (Showing their connection to ground and power
supply and logic level of inputs for each).

Ans. The difference between the two displays, is that the common cathode has all the cathodes
of the 7-segments connected directly together and the common anode has all the anodes of the 7-
segments connected together and is illuminated as follows. The Common Cathode (CC) has
common cathode display thus all cathode connections of the LED segments are joined together
to logic “0” or ground. The individual segments are illuminated by application of a “HIGH”, or
logic “1” signal via a current limiting resistor to forward bias the individual Anode terminals (a-
g).

Whereas, In the common anode display, all the anode connections of the LED segments are
joined together to logic “1”. The individual segments are illuminated by applying a ground, logic
“0” or “LOW” signal via a suitable current limiting resistor to the Cathode of the particular
segment (a-g).

EE-221: Digital Logic Design Page 13


EE-221: Digital Logic Design Page 14
EE-221: Digital Logic Design Page 15
14. What configuration have you decided to choose and why?

Ans. We have used common cathode whereby common ends are jointed together and attached to
the ground. Initially inputs are taken through a 7 segment Decoder.

15. If you were to choose the other configuration of 7-Segment Display what change would
you need in your circuit?

Ans. You would have to change the pins where power is supplied and would have switch the
anode and cathode connections with each other.

16. Show your complete circuit in working condition after completing the Logic Diagram
for the whole voting Machine System mentioning the ICs name and Configuration and
implement it in hardware. You may use the on board seven segment display if available in
your trainers

Proteus:

EE-221: Digital Logic Design Page 16


Hardware:

EE-221: Digital Logic Design Page 17


EE-221: Digital Logic Design Page 18
Conclusion/Comments

In this lab we successfully implemented a voting machine design based on the counting
techniques mentioned in the requirements. Two functions were implemented using MUX while
also using 3 NAND gates and 7 segment decoder IC and a 7-segment display. This lab allowed
familiarization of display and also summarized concepts of different ICs and pin configurations.
The outcomes were not just familiarization but techniques to draw appropriate truth tables and
logic diagrams for representation and understanding.

EE-221: Digital Logic Design Page 19

You might also like