Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
13760_ECE301hw3

13760_ECE301hw3

Ratings: (0)|Views: 21|Likes:
Published by Uday Pratap Singh

More info:

Published by: Uday Pratap Singh on Nov 14, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

11/14/2010

pdf

text

original

 
Department of Electronics & CommunicationCourse: Microprocessor based system designCourse Code: ECE 301DOA: 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=1002HDetermine the content of SP, and modified registers and memory locations after theexecution of each of the following instructions starting from the initial content of theregisters and memory for the execution of eachinstruction.a). POP BX b). PUSH AXc). MOV AX, BP+1d). Call Sub, where the call is a near call andSub is at an offset address 3000H fom the codesegment. Suppose that the instruction followingthe Call Sub instruction is at offset FE11H.e). RET12.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.3.Write an assembly language program for 8086 to count input pulses at input port of timecounter 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 atthe port named “LED”. The 8 LED’s must be ON/OFF in the fashion belowLED1LED1LED1LED1LED1LED1LED1LED1
MemorylocationContent
2FFD1A2FFECF2FFF3630001B3001603002323003FF3004E4

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->