DIGITAL LOGIC DESIG
Complex Engineering Problem
M Sanan Asrar (412259)
M Asim (408244)
M Mujtaba Khan (424685)
M Asjad Khalid (420249)
FALL 2023
Introduction
An electronic system for a hospital is to be designed, where there are 08 patients’
rooms and a staff room on a floor. Beside each patient’s bed (in the room), there is an
emergency switch that can be used to call the staff. When any of these emergency
switches is pressed, a digital display mounted in the staff room should show the
particular room number and a buzzer should start ringing.
Circuit Designing
The circuit is first designed on a software, in this case Multisim, and then the hardware
is assembled. The components required are push buttons, pull-up resistors, encoder
and decoder integrated circuits (ICs 74147 and 7447 respectively), NOT gate IC (7404),
seven segment display and a buzzer.
Pull-up resistors are used to provide high logic level in the absence of input signals.
These are connected to eight switches which are then connected to the encoder IC.
This IC converts decimal number from 0-9 into it’s 4-bit binary equivalent. IC 74147 is
decimal to BCD priority encoder.
The output of encoder IC is inverted and therefore, has to be sent to NOT gate IC, for
inversion. Output of this IC is sent to IC 7447, which is BCD to decimal decoder driver
and relevant connections are made to the seven-segment display.
Figure 1: Components used Figure 2: Function table of 74147 encoder IC
The seven-segment display has common anode which is given logic 1. All other
terminals receive logic 0 and the corresponding LED is illuminated. This displays the
number.
Figure 3: BCD to seven-segment display IC 7447 truth table
A buzzer is also attached to produce a sound as the switch is closed and the number is
displayed.
In the end, all components are soldered on a Veroboard.
Simulation
As seen in the simulation (figure 4), when all switches are opened, 0 is displayed on the
seven-segment display. Each switch is closed one by one, and its corresponding digit is
displayed. A buzzer also starts ringing.
Figure 4: Simulation on Multisim