You are on page 1of 2

Laboratory Exercise #4

Numeric Keypad and Seven-Segment


LED Display Circuits

Objectives:

At the end of this laboratory exercise, you should be able to:


1. build and simulate the operation of a keypad using push button switches
2. use the 74148 as keypad encoder and
3. develop a 7-segment display circuit and use it to display the value of the pressed key
in the keypad.

Equipment and Materials:

The following equipment and materials are needed in performing this laboratory exercise:
1 DC power supply with +5V output capability
1 74148 of 74LS148 Priority Encoder TTL IC
1 7447 or 74LS47 BCD-to-Seven-Segment Decoder TTL IC
1 7404 or 74LS04 Hex Inverter TTL IC
8 Push button switches
8 47 ohms, ¼ W resistors
4 LEDS
1 Common Anode Seven-Segment LED Display
1 Solderless Breadboard
1 Set of connecting wires

Procedure:

Part 1. The Octal Keypad

1. Build the circuit as shown in Figure 1 using the


provided circuits.
2. Connect the resistor and the LED to each output of the
74148 IC. When connecting the LED, you need to
determine the type of output being produced by the
74148 IC so that the circuit will operate correctly.
3. Set the power supply output to +5V then power up
the circuit.
4. Test the circuit by pressing a key in the keypad and
take note of the outputs that will be generated.
5. Record the outputs for each key pressed made in
Table 1. Indicate the status of each LED if "ON" or
"OFF" to indicate 1 or 0 value respectively.
6. Repeat procedures 5 and 6 until all keys were pressed
and tested and the corresponding results were
recorded in the specified table.
Part 2. Completing the Circuit by Adding the Seven-Segment LED Display

1. Remove the dc power supply connection from the circuit you created and tested if Part 1.
2. Remove the resistors and LEDs from the circuit and replace them with the seven-segment
display, 7404, and 7447 as shown in Figure 2.
3. When all the required components in the figure are properly connected, double-check
your wiring and make sure that all pins are accounted for especially the GND and Vcc pins
before applying power to the circuit.
4. Set the power supply output to +5V.
5. Power up the circuit.
6. Test the circuit by pressing any key on the keypad. Take note of the display that will appear
in the seven-segment LED display for each key that was pressed.
7. Use Table 2 to record the result. Indicate the status of each segment if "ON" or "OFF" to
indicate 1 or 0 value respectively.
8. Try pressing two or more keys at the same time and take note what will be displayed in
the seven-segment LED display.

TIP: To determine the pin configuration of the available common anode seven- segment LED
display, hold the device with the seven-segment facing you and the dot is located at the lower
right portion of the display. The following are the pin configurations of the device in a
clockwise direction starting from the top leftmost pin: segment g, segment f, anode pin,
segment a, segment b, dot, segment c, anode pin, segment d, and segment e.

You might also like