0% found this document useful (0 votes)
7 views

BITS 1123 LAB EXERCISE 5 DIGITAL LOGICS

Uploaded by

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

BITS 1123 LAB EXERCISE 5 DIGITAL LOGICS

Uploaded by

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

NAME: NUR MAIZATUL SHAZWANIE BINTI ZOLKEFLI

MATRIX ID: B032410313


LAB EXERCISE 5.3

A. Home Security System


A.1 Problem Statement You have been hired by a home security company to design
and implement a home alarm system. The logic of the system is as follows: once the
alarm system has been armed, it is to sound if the front door is opened, the back door is
opened or either of two windows is opened (you can assume there are only two
windows).

A.2 Task Design the necessary circuit using Multimedia Logic to implement the situation
above. Your circuit should have five inputs (A = alarm, F = front door, B = back door, W1
= window 1 and W2 = window 2).
A = 1 means the system is armed; A = 0 means it is disarmed. F = 1 means the front
door is open; F = 0 means it is closed. (Similarly for the back door and the windows.)
There should be one output, S. When S = 1 the alarm should sound; S = 0 means the
alarm is silent. Please use these letters to indicate the inputs and the output are
consistent.
Be VERY careful to get the correct function for your five inputs before simplifying and
designing the circuit with Multimedia Logic. You should minimize the circuit. Your inputs
and output should be labeled (in Multimedia Logic, not by hand).
When your circuit has been designed using Multimedia Logic, you should do three
things:
● A report of this assignment contains the truth table and any work you used to
simplify the circuit.
● Submit a copy of the final circuit file on ulearn website. Labeled your name on the
circuit file.
● Attach a copy of the printed final circuit on your report.
ANSWER
INPUTS:
A: Alarm armed (1 = armed, 0 = disarmed)
F: Front door (1 = open, 0 = closed)
B: Back door (1 = open, 0 = closed)
W1: Window 1 (1 = open, 0 = closed)
W2: Window 2 (1 = open, 0 = closed)

OUTPUTS:
S: Alarm sounds (1 = sound, 0 = silent)

a) Boolean expression
S=A⋅(F+B+W1+W2)

b) Truth Table

A F B W1 W2 F+B+W1+W2 A(F+B+W1+W2)

0 0 0 0 0 0 0

0 0 0 0 1 1 0

0 0 0 1 0 1 0

0 0 0 1 1 1 0

0 0 1 0 0 1 0

0 0 1 0 1 1 0

0 0 1 1 0 1 0

0 0 1 1 1 1 0

0 1 0 0 0 1 0

0 1 0 0 1 1 0

0 1 0 1 0 1 0
0 1 0 1 1 1 0

0 1 1 0 0 1 0

0 1 1 0 1 1 0

0 1 1 1 0 1 0

0 1 1 1 1 1 0

1 0 0 0 0 0 0

1 0 0 0 1 1 1

1 0 0 1 0 1 1

1 0 0 1 1 1 1

1 0 1 0 0 1 1

1 0 1 0 1 1 1

1 0 1 1 0 1 1

1 0 1 1 1 1 1

1 1 0 0 0 1 1

1 1 0 0 1 1 1

1 1 0 1 0 1 1

1 1 0 1 1 1 1

1 1 1 0 0 1 1

1 1 1 0 1 1 1

1 1 1 1 0 1 1

1 1 1 1 1 1 1
B. Led Light System
B.1 Design Requirement
The logic of the system is as follows: the LED will not light on if all the switch is not ON.
The red LED will light when only switch 1 is on. The yellow LED will light ON when only
switch 2 is ON. The green LED will light ON when only switch 3 is switched ON. Lastly,
all LED will light when all switch is switched ON.

Design the necessary circuit to implement the situation above. Your circuits should have
3 inputs (S1 = switch for RED LED, S2 = switch for YELLOW LED and S3 = switch for
GREEN LED).

S1 = 1 means switch is ON. Similarly, the other switch is applied. There should be 3
output as well, R (RED LED), Y (Yellow LED) and G (Green LED). When R = 1, the
lights should ON; R = 0 means the light is switch OFF. Your inputs and outputs should
be labeled.

Be VERY careful to get the correct function for your three inputs and three outputs
before simplifying and designing the circuit with Multimedia Logic. You should minimize
the circuit. Your inputs and output should be labeled (in Multimedia Logic, not by hand).

When your circuit has been designed using Multimedia Logic, you should do three
things:
● A printed report of this assignment contains the truth table and any work you
used to simplify the circuit.
● Submit a softcopy copy of the final circuit file. Labeled your name on the circuit
file.
● Attach a copy of the printed final circuit on your report.
ANSWER:

a) Truth table

S1 S2 S3 R (Red LED) Y (Yellow LED) G (Green LED)

0 0 0 0 0 0

0 0 1 0 0 1

0 1 0 0 1 0

0 1 1 0 1 1

1 0 0 1 0 0

1 0 1 0 0 1

1 1 0 0 1 0

1 1 1 1 1 1
b) Logic Circuit

RED LED
YELLOW LED

GREEN LED

You might also like