Lab #6: Combinational Circuits Design PURPOSE: The purpose of this laboratory assignment is to investigate the design of combinational circuits using SSI circuits. The combinational circuits being implemented in this lab are a BCD-to-7 segment decoder, a Binary-to-BCD converter, and a -bit Binary Adder. Upon completion of this lab you should be able to: Understand the use of Boolean laws in implementing real circuits. Understand the behavior of a display decoder. Understand the behavior of a combinational code converter Understand the behavior of a binary adder. Understand the concept of time multiplexing. Appreciate the concept of design decomposition and integration. MATERIALS: ICs: 70 (-input NOT), 783 (-bit Adder with fast Carry), 757 (quad -to- Multiplexer ), and 77(BCD-to-7 Segment Decoder). DC Power Supply DVM (Digital Volt Meter or Multimeter) Function Generator Oscilloscope
PRELAB P. BCD-to-7 Segment Decoder A BCD to seven-segment decoder is to be designed to create the numeric digit display patterns shown in Figure. Figure. Pin diagram of the 7-segment display. The display element is of the common anode variety. The decoder receives its BCD input on lines D 3 D D D 0, D 3 being the MSB. 0 3 5 6 7 8 9
a) Complete the following truth table of the decoder. D3 D D D0 Seg_a Seg_b Seg_c Seg_d Seg_e Seg_f Seg_g 0 0 0 0 0 0 0 0 0 0 0 0 Binary code of any number > 9 (Display OFF) b) Use Boolean laws to find the minimum expressions of all the outputs. P. Binary-to-BCD Decoder A Binary-to-BCD code converter is a combinational circuit that takes a binary code of n bits and convert it into a BCD code of m digits. We want to design a -bit Binary-to-BCD code converter. The block diagram of the circuit is given as follows (Figure ): 3
BCD_3 A (MSB) BCD_ BCD_ B BCD_0 C -bit Binary-to BCD Code Converter BCD0_3 D (LSB) BCD0- BCD0_ BCD0_ (Always 0, not to be considered for a -bit input code converter) Figure. Logic block diagram of a Binary-to-BCD Code Converter.
a) Complete the following truth table of the code converter INPUTS OUTPUTS # Binary Code BCD BCD0 Numb. A B C D BCD_3 BCD_ BCD_ BCD_0 BCD0_3 BCD0_ BCD0_ BCD0_0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 8 0 0 0 0 0 0 0 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 5 0 0 0 b) Because BCD_3 = BCD_ = BCD_ = 0, we consider them as non existing (for the time being), therefore the number of outputs is reduced to 5. Use Boolean laws to find the minimum expressions of BCD0_3, BCD0_, BCD0_, and BCD0_ (show all the workings). c) Draw the logic circuit implementation of BCD_0 using available logic 73 and 7 gates. EXPERIMENTS The 7LS7 is an IC that does the BCD-to-7 segment conversion. The connection diagram for the 7LS7 is shown in Figure, and the connection diagram for the 7-segment display is shown in Figure. Because of the way the 7-segment display is designed, a current-limiting resistor must be inserted between each output from the 7LS7 and the corresponding input of the display. Since handling so many individual resistors is unwieldy, you will use a 6R resistor network device. This device consists simply of eight resistors in a single package, as shown in Figure 5. 5
Figure. Pin diagram of the 7LS7 BCD to 7-segment decoder integrated circuit. Figure 5. Pin diagram of the 6R resistor network (the value of each resistor is 70 Ohms). The decoder an display module is shown in figure 6. 7 6 9 0 8, 3 Figure 6. Decoder and display circuit. 6
Experiment Seven-segment displays are now widely used in almost all microprocessor-based instruments. A single seven-segment display can display the digits from 0 to 9 and the hex digits A to F. Each display is composed of seven LEDs that are arranged in a way to allow the display of different digits using different combinations of LEDs (figure ). Since the display is composed of LEDs, which need high current to drive them, power consumption is very critical. Consider a panel with displays and the number to be displayed is 88. Each LED needs 0 ma. So we need a current of 0x7x = 80 ma. That s a lot of current compared to the current consumed by the microprocessor. Another problem is the number of components and output bits that are needed to connect the displays to the processor. We need at least x7 = 8 resistors and output bits for the displays. Is there a solution for these problems? Yes, there is, it s called MULTIPLEXING! This connection scheme creates a multiplexed display, where driving the anode signals and corresponding cathode patterns of each digit in a repeating, continuous succession can create the appearance of a fourdigit display. Each of the four digits will appear bright and continuously illuminated if the digit enable signals are driven low once every to 6ms (for a refresh frequency of khz to 60Hz). For example, in a 60Hz refresh scheme, each digit would be illuminated for one quarter of the refresh cycle, or ms. The controller must assure that the correct cathode pattern is present when the corresponding anode signal is driven (figure 7). Refresh Period = ms to 6 ms Cathodes BCD0 BCD Fig. 7. Time Multiplexing of the display. 7
a 8, 3 7 6 9 0 5 8 7 9 Multiplexer 757 6 5V 7 6 8, 3 a 5 3 6 0 3 9 B CD0_3 B CD0_ B CD0_ B CD0_0 B CD_0 0 From the Binary-to-BCD Code Converter (Fig. ) 70 o a Square-Wave Signal Generator a Figure 8. Time-multiplexing circuit of the -bit Binary-to-BCD a) Completely build, test, and demonstrate the operation of this circuit to the lab instructor. The frequency of the square must be set to 800 Hz. b) What happens on the display when the frequency of the square wave signal is in the range of 0 to 0 Hz or.5 khz to 00 khz? c) What happens to display module when the maximum amplitude of the square wave is set to V peak to Peak without any DC component? Explain your observation. Experiment We want evaluate the behavior of a -bit Adder IC (783). The circuit to be implemented combines the circuit of figures 8 and 9. 8
A, B, C,and D are the inputs of the Binary -to-bcd Code converter Carry Out A B C D 5V 0 Ohms LED 5 6 9 5 C Sum Sum3 Sum Sum Vcc GND 3 C0 A A3 A A B B3 B B 3 8 0 6 7 -bit input A -bit input B Figure 9. -bit Adder to be connected to the circuit diagram of figure 9. a) Implement the circuit on your proto board. Complete the following table by changing the values of A and B. Value of A Value of B Display Display Led status 5 0 5 3 0 9 9 5 b) What are the status of the display and the LED when the numbers present at A and B have their sum greater than 5 (for instance A = 0 and B = 0)? c) In order to have a correct representation of the addition of -bit numbers we have to consider C as an output (MSB of the Adder) with the other outputs A, B, C, and D (LSB). Show how the circuit of figure 7 can be modified to accommodate this new configuration. LAB REPORT Use the template lab report available on the course web site. 9