Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

`Bahria University, Islamabad

Subject: Digital Logic Design (CEN-120) Instructor: Zain Bin Khalid


Assignment # 04 (CLO-4) Class: BEE-2D: Date: 16-05-19
Name: _________________________ Enrolment: ___________________________
Question 1

Design a “disk spinning” animation circuit for a CD player. The input to the circuit will be a 3-bit binary
number A1, A2, A3 provided by another circuit. It will count from 0 to 7 in binary, and then it will repeat. The
animation will appear on the top four lights of the LED display of Figure P1, i.e on X1, X2, X7, and X6, going
clockwise. The animation should consist of a blank spot on a disk spinning around once, beginning with X1.
Then, the entire disk should blink on and off twice.

Design the circuit using only 2, 3, and 4-input NOR gates and inverters. Try to minimize the number of gates
required. Any solution which uses 11 or fewer gates (not counting the inverters for the inputs) is acceptable

Question 2

Four large tanks at a chemical plant contain different liquids being heated. Liquid-level sensors are being used
to detect whenever the level in tank A or tank B rises above a predetermined level. Temperature sensors in C
and D detect when the temperature in either of the tanks drops below a prescribed temperature limit.
Assume that the liquid-level sensor outputs A and B are LOW when the level is satisfactory and HIGH when the
level is too high. Also, the temperature sensor outputs C and D are LOW when the 2 temperature is
satisfactory and HIGH when the temperature is too LOW. Design a logic circuit that will detect whenever, the
level in tank A or tank B is too high at the same time that the temperature in either tank C or tank D is too low.
Implement the design using two-level (a) NAND-AND, (b) AND-NOR, (c) OR-NAND, and (d) NOR-OR forms.

Question 3

You have got 4 different colored decorative lights Red, green, Blue and Yellow., they switch on and switch off
in a sequence such that they follow 2421 code. Now one of your clients wants them to follow BCD code
pattern, and you are not allowed to design the circuit from start you have to modify the previous 2421
sequence lights to BCD patterned lights,

Page 1 of 3
`Bahria University, Islamabad
Subject: Digital Logic Design (CEN-120) Instructor: Zain Bin Khalid
Assignment # 04 (CLO-4) Class: BEE-2D: Date: 16-05-19
Name: _________________________ Enrolment: ___________________________
How would you design it using basic gates?

Using NOR gates only?

If you are given option of using a decoder circuit, which decoder would you use? Redesign the same circuit
using your proposed decoder.

Question 4

You are working as transmission engineer at WAPDA. The organization sometimes encounter with power
shortage; therefore, you need to prioritize power supply to those who need it the most first and then provide
power to those whose needs are less crucial. Design an end to end solution that first prioritize the power
supply and then provide them to end users.

You have following clients

A hospital with an emergency and operation theatre.

A kindergarten school with an infant day care

A shopping mall and entertainment system

Residential area.

Provide automated preference for the system and provide power to the clients. The limitation is only one
client can be provided power during power shortage.

Question 5

  Design the truth table based on the given logic and then implement the combinational circuit for a smart
home with the following specifications.

Input: user, temperature.

Outputs: temp_control, Security_System

Page 2 of 3
`Bahria University, Islamabad
Subject: Digital Logic Design (CEN-120) Instructor: Zain Bin Khalid
Assignment # 04 (CLO-4) Class: BEE-2D: Date: 16-05-19
Name: _________________________ Enrolment: ___________________________
Situation: The heating system is switched on if the temperature falls below a certain level and logic ‘0’
is received, otherwise its logic ‘1’. If there is no resident present then tem_control is irrelevant and
security_sys is turned on otherwise it is off.

Question 6

Design of Stepper Motor of Robot

A Stepper motor is a motor that rotates in steps rather than in a continuous motion typically 15  per
step. Magnetic coils or winding within the motor must be energized and deenergized in a specific sequence in
order to produce this stepping action. Digital signals are normally used to control the current in each of the
motor’s coils. Stepper, motors are used extensively in situation where precise position control is needed, such
as in position of read/write heads or magnetic digits, in controlling printer heads in printers and in robots.

Figure shown is a diagram of typical stepper motor with four coils. For the motor to rotate properly coil
1 & 2 motor always be in opposite state, that is when coil 1 is energized, coil 2 is not and vice versa. Likewise
coils 3 and coil 4 must always be in opposite state.

Since the stepper motor can rotate either clockwise or counter clockwise we have direction input D,
which is used to control the direction of rotation. For CW rotation to occur we have D = 0 & state of counter
BA, must follow the sequence 11, 10, 00, 01, 11, 10,……. And so as it clocked by the step input signal. For CCW
rotation D =1 and center must follow the sequence 11, 01, 00, 10, 11,…….. and so on

Design the stepper motor circuit using JK flips flop and appropriate logic gates.

S ET A SE T SET
J Q S Q B J Q C

X T
K C LR
Q R CL R
Q K CL R
Q

CLK

L og i c 1

B
30 KHZ SE T C SE T
SET A SE T D
J Q J Q J Q J Q

K C LR
Q K CL R
Q K CL R
Q K CL R
Q

Coil 1
Coil 2 Co il 1
D
C urre n t
Syn ch ro no u s Coil 3 4
Amp l ifi ca ti o n
Co u n te r Coil 4

CLK 2
3

Page 3 of 3

You might also like