Sie sind auf Seite 1von 3

Roll No.

: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Amrita Vishwa Vidyapeetham
B.Tech. Degree Examination Nov/Dec 2015
Fifth Semester
Electronics and Communication Engineering
ECE312 Microprocessors

Time : Three hours Maximum : 100 Marks

Answer all questions

Part-A [10 * 2 = 20 marks]

1. What are the advantages of an assembly language in comparison with high level languages?
2. Name two 16 bit registers of 8085. Explain the functions of each register.
3. Write the machine code for the instruction MOV H, B if the opcode = 012, the register code for
H= 1002, and the register code for B=0002.
4. Assume accumulator contains 73H. What will be the content in accumulator after executing
following instruction: RAL & RLC
5. Give examples for each of the following: a) Instruction that need only opcode fetch machine
cycle with 4T state. b) Instruction that need opcode fetch cycle with 4 T state and memory read
cycle with 3T state
A15 A 14 A13 A 12
6. If CS= is used as the chip select logic of a 4K RAM in an 8085 system,
specify the memory range of 4K RAM?
7. In the below given program, how many times will both the JNZ instructions will be executed?
What will be the contents of H and L registers when program control reaches to HLT
instruction?
LXI H, 0503H
LOOP: DCR L
JNZ LOOP
DCR H
JNZ LOOP
HLT
8. Give the significance of stack and mention the stack related instructions.
9. Write the addressing mode for the following instructions. a) LDA 2345H b) MOV A,M
10. Write a program for following case. Also calculate total no. of T state required for execution of
program. Load the bit pattern A5H in register B and B7H in register C. Mask all the bits
except D7 from registers B and C.

Page 1 of 3
Part-B [8 * 5 = 40 marks]

11. Write an 8085 assembly language program that takes the data from memory location 2000H ,
and complements the 4 bits in the middle of this byte, and store the result at memory location
3000H.
12. Interface an 8-bit DIP switch with 8085 such that the address assigned to it is FFH.
13. Write the difference between CALL-RET and PUSH-POP instruction.
14. Write a BSR control word subroutine for programmable peripheral interface 8255A to set bits
PC4 and PC2 and reset them after a delay of 20msec. Assume that the delay subroutine of 20ms
is already available and call the delay in the subroutine program.
15. Assume two numbers 25H and 16H stored in H and L registers respectively with
Accumulator value set to Zero. Calculate the hexadecimal value in the PSW (Program Status
Word) register following instructions. a) CMP H b) ACI FFH c) CPI 00H
16. Explain the function of following signals in 8085 architecture a) HLDA b. TRAP c.ALE d.RST
7.5/ RST 6.5/ RST 5.5 e. RESET IN/ RESET OUT
17. Draw the timing diagram for the instruction: STA 4300H
18. Draw a simple circuit to decode three controls signals RD, WR, IO/M and to produce separate
read/write control signal for memory and I/O device?

Part-C [4 * 10 = 40 marks]

19. With neat diagram, explain the architecture of 8085 microprocessor with all necessary signals.
20. Considering the memory circuit as given in the below figure, answer the following questions

a) What is the total size of the memory in the given circuit?


b) What are the beginning and ending addresses of the memory in chip 1?

Page 2 of 3
c) What are the beginning and ending addresses of the memory in chip 2?
d) Are the memory chips in the circuit ROM or RAM?
e) How will you replace the two NAND gates present the circuit with one 3 to 8 decoder
without changing the memory size or the memory addresses? Assume that the decoder has
one active high enable E1 and one active low enable E2.
21. Discuss how the instruction OUT 25H, stored at memory location 2000H is executed and
explain what happens in each T-state. Draw timing diagrams if necessary.
22. A railway crossing signal has two flashing lights run by a microcomputer. One light is
connected to data bit D0 and the second light is connected to the data bit D1. Write a
program to turn each signal light alternately on and off continuously at an interval of 0.5
seconds and the clock frequency of the microcomputer is 2MHz. (Include the delay
program in the main program and find the count).

Page 3 of 3

Das könnte Ihnen auch gefallen