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

ECE301hw3

This document contains instructions for homework assignments involving microprocessor systems design using an 8086 microprocessor. It includes multiple parts asking students to: 1) Determine the contents of registers and memory locations after various instructions are executed given initial register and memory values. 2) Explain different types of interrupts that can occur on an 8086 system. 3) Write an assembly language program to count input pulses from a timer counter chip and output the count. 4) Write a program to turn 8 LEDs on and off in a repeating pattern with a 3 second delay. 5) Interface an ADC chip to an 8086 and write a program to display digital output. 6) Configure the control word of an

Uploaded by

Sahil Verma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

ECE301hw3

This document contains instructions for homework assignments involving microprocessor systems design using an 8086 microprocessor. It includes multiple parts asking students to: 1) Determine the contents of registers and memory locations after various instructions are executed given initial register and memory values. 2) Explain different types of interrupts that can occur on an 8086 system. 3) Write an assembly language program to count input pulses from a timer counter chip and output the count. 4) Write a program to turn 8 LEDs on and off in a repeating pattern with a 3 second delay. 5) Interface an ADC chip to an 8086 and write a program to display digital output. 6) Configure the control word of an

Uploaded by

Sahil Verma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Department of Electronics & Communication

Course: Microprocessor based system design


Course Code: ECE 301

DOA: Homework:3 DOS:

Part A
1. Suppose that you have the following initial content of registers and memory:

AX=1A22H BX=3C40H CX=4502H SP=1000H BP=1002H

Determine the content of SP, and modified registers and memory locations after the
execution of each of the following instructions starting from the initial content of the
registers and memory for the execution of each
instruction. Memory
a). POP BX location Content
2FFD 1A
b). PUSH AX 2FFE CF
c). MOV AX, BP+1 2FFF 36
3000 1B
d). Call Sub, where the call is a near call and 3001 60
3002 32
Sub is at an offset address 3000H fom the code
segment. Suppose that the instruction following 3003 FF
the Call Sub instruction is at offset FE11H. 3004 E4

e). RET1
a. Explain what type of interrupt are the following:
(i) INT 27H.
(ii) Overflow interrupt.
(iii) Divide by 0 interrupt.
(iv) Single-step interrupt.
(v) An active signal at the NMI input.
(vi) An active signal at the INTR input.
2. Write an assembly language program for 8086 to count input pulses at input port of timer
counter IC 8254. You can assume any one port/channel of IC and any of the address can
be used for addressing but control word must be mentioned. Whenever there will be any
pulse counted, the count of pulses must also be sent to the output port named “Display”.

PART-B

1. Write an assembly language program for 8086 to ON and OFF the 8-LED connected at
the port named “LED”. The 8 LED’s must be ON/OFF in the fashion below

LED1 LED1 LED1 LED1 LED1 LED1 LED1 LED1


On Off OFF Off OFF Off On Off
Off On ON On ON On Off On
The delay of 3 seconds must be given between the transition.
2. Interface 8086 with an ADC IC and write an assembly language program for displaying
the digital output at the port named “Display”. Use input port through any interrupt when
ADC conversion is completed by ADC.
3. Configure the control word of 8255 so that port-A can be used as input port, port-B can
be used as output port and upper port-C can be used as input port. Port-C lower remains
unchanged.

You might also like