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

Assignment1_Introduction

Uploaded by

israwagd
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

Assignment1_Introduction

Uploaded by

israwagd
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/ 2

Benha University Grade: 3rd

Benha Faculty of Engineering Measured CLOs: CLO3


All Electrical Engineering Programs
Semester: 1st (2024/2025) Assignment #1
Course Title: Examiners:
Microprocessor based system (a)
Dr. Ahmed El-Awamry
Course Code: E1321

Logic circuits and truth table:

1. The figure below shows a logic circuit and its incomplete truth table.
Complete the below truth table.

2. Given {01110110110100011001101111110000}2, determine the


equivalent number in each base.
a. Decimal
b. Hexadecimal

3. Given a digital system with VDD = 1.8V, and an analog-to-digital


threshold T = 1.0V such that x<T ⇒ 0 and x>T ⇒ 1, state the bit that is
mapped to from each voltage.
a. 0.1V
b. 1.73267589V
c. 0.99V
d. 1.01V

4. Add the following binary numbers


a. 1100111 + 111001
b. 100110 + 01011101
c. 1111 + 11000

5. Subtract the following binary numbers using subtraction rules


a. 11011 from 11110
b. 10101 from 11000
c. 111000 from 1101101

1
6. Binary Multiplication: Perform the multiplication of the following binary
numbers:

• 1011 x 110

Design of logic systems based on Finite State Machine (FSM):

7. Design a switch controlled up/down counter using FSM methodology


8. Design a serial full adder based on FSM as described in the following
figure

9. Design a controller for an elevator. The elevator can be at one of two


floors: Ground or First. There is one button that controls the elevator, and
it has two values: Up or Down. Also, there are two lights in the elevator
that indicate the current floor: Red for Ground, and Green for First. At
each time step, the controller checks the current floor and current input,
changes floors and lights in the obvious way.

10.Design a Traffic Light Controller: Design an FSM for a traffic light


system at an intersection. The traffic light has three states:
Green (60 seconds)
Yellow (5 seconds)
Red (60 seconds)
The FSM should cycle through these states.

11.Vending Machine FSM: Design an FSM for a vending machine that


dispenses an item when exactly 50 cents is inserted. The machine accepts
only 5-cent and 10-cent coins. It should display the total amount entered
and dispense the item once 50 cents is reached, without any change being
given.

You might also like