0% found this document useful (0 votes)
58 views1 page

Assignment No 3-4

This document outlines an assignment for an Electrical and Computer Engineering course to design a basic 16-bit calculator using an 8086 microprocessor. Students are instructed to interface a 4x4 keypad, LCD, and 32KB RAM memory to the microprocessor and use an 8255A programmable peripheral interface. The calculator should be able to perform addition, subtraction, multiplication and division operations and store results in memory. The assignment will be graded based on a circuit diagram, flow chart, assembly code, and Proteus simulation verification.

Uploaded by

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

Assignment No 3-4

This document outlines an assignment for an Electrical and Computer Engineering course to design a basic 16-bit calculator using an 8086 microprocessor. Students are instructed to interface a 4x4 keypad, LCD, and 32KB RAM memory to the microprocessor and use an 8255A programmable peripheral interface. The calculator should be able to perform addition, subtraction, multiplication and division operations and store results in memory. The assignment will be graded based on a circuit diagram, flow chart, assembly code, and Proteus simulation verification.

Uploaded by

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

COMSATS University Islamabad, Wah Campus

Department of Electrical and Computer Engineering


Assignment No. 3 & 4, Fall 2019
Program: BEE 5D Total Marks: 25
Instructor: Dr. Omer Chughtai Deadline : 09-12-2019
Course: Microprocessor Systems and Interfacing
CLO 3, PLO 5 Complex Engineering Problem

Instructions: It is the responsibility of the student to ensure that the assignment is legible. Illegible assignments
or those in cursive handwriting will not be graded—will be discarded without any notification. Additionally, the
answer of the following questions should be precise and to the point.
You need to submit the assignment at the beginning of lecture on the due date and late submission will be graded as zero.

You are required to implement a basic 16 bit calculator using 8086 Microprocessor. Circuit diagram, Flow Chart
and the code are required. For that you need to Interface a Keypad, LCD and a small RAM memory of 32KB
(32Kx8) on the memory interface of the 8086 Microprocessor. Its recommended to use a Programmable
Peripheral Interface (8255A) to interface the I/O devices. The Operations that are required are Add, Subtract,
Multiply and Divide. Tasks are as follows:

1. Initiate the Programmable Peripheral Interface on the memory mapped address space (at 05000H)
and connect the 4x4 keypad and LCD to it accordingly.
2. Put a Push button to use as Enter Key, and another to clear the memory.
3. Connect two 16KB RAM IC (16Kx8) at a memory location 02000H onwards and make sure the connections
for low and high banks are correct.
4. Operation:
a. The Keypad must be configured at input of the 8255A
b. Write a Number on the keypad. Press Enter to select.
c. Display that number on the LCD.
d. Write another (second) number on the keypad. Press Enter to Select.
e. Display the second number on the LCD.
f. Press A, B, C or D to select the operations add, subtract, AND, and OR respectively.
g. Press Enter key for calculation.
h. Once you press enter, the LCD should display the result of the corresponding operation.
i. End of Session. Store every result in the memory. Press Clear Memory key to clear the memory.
5. Grading Policy
a. Circuit Diagram (5)
b. Correct interfacing (5)
c. Flow Chart of the Program (5)
d. Assembly Code (5)
e. Proteus Verification. No need for actual hardware. (5)

You might also like