Assignment No 3-4
Assignment No 3-4
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)