Introduction To Logic Circuits Lab #7 - Combinational Logic Design 3 (Discrete Parts)
Introduction To Logic Circuits Lab #7 - Combinational Logic Design 3 (Discrete Parts)
Objective
The objective of this lab is to continue implementing combinational logic circuits using discrete parts and look at how to design the circuitry for a 7-segment display decoder.
Outcomes
After completing this lab you should be able to: Design the logic for a 7-segment decoder to display the decimal values 0, 1, 2 and 3. Understand the circuitry needed to interface to a common-cathode 7-segment display.
Pre-Lab
You are going to design a 7-segment display decoder. Your circuit will take in a 2-bit binary code and output the corresponding decimal character on the display (e.g., 0, 1, 2 and 3). This design will require seven separate logic circuits to drive each of the individual LEDs within the 7-segment display. This is why we are limiting our input codes to 2-bits. Once we move to an input size of 3-bits (characters 0 to 7) or 4-bits (0 to F), we do not have enough parts in our lab kit to build the decoder. Your pre-lab will be to design the decoder circuitry and wire up the 7-segment display. Once you come to lab, you will build and demonstrate your decoder; however, it may be to your advantage to attempt to breadboard your decoder prior to coming to lab so you dont run out of time during your lab session. A) Design the logic circuitry for the 7-segment display decoder. You will need to create a logic circuit for each of the seven individual LEDs within the display. The following table illustrates how to derive the truth tables for the decoder. Each of the seven LEDs are labeled a, b c, d, e, f and g. For each input code, you will enter a 1 in the row of the following table if the individual LED needs to be ON to display the corresponding decimal character. For example, the input code A=0, B=0 corresponds to a display character of 0. To create this character, you turn on all LEDs within the display except for g. You would enter all 1s in the table for codes A=0, B=0 except for Fg. Fill in the following table and then create the logic expressions and logic diagrams for the seven circuits needed in the decoder.
B) Breadboard the circuitry for the 7-segment display. The display in your lab kit is a common-cathode design. This means that for each of the 7 LEDs, there is an individual pin for the anode but all of the cathodes are tied together. Tying the cathodes together reduces the amount of pins needed on the display. The following figures are excerpts from the datasheet for the 7-segment display.
The common-cathode configuration allows us to design our decoder using positive logic (e.g., a logic 1 corresponds to the LED being ON). You will need to place 150 resistors in series with each input pin of the display in order to set the forward current to its nominal value of 10mA. You will leave your 7-segment display on your breadboard for the rest of the semester so consider an organized approach to the wiring as shown in the following figure.
Lab Work & Demonstration 1) Breadboard and demonstrate your 7-segment decoder circuitry. Drive in the 2-bit input codes using your
LED driver circuit. The 7-segment display should show the correct character for each of the 4 inputs codes AB=00, 01, 10 and 11. TA will check off
Lab Grading
Pre-Lab Demo #1 Total ___________ / 20 ___________ / 80 ___________ / 100