Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Total No.

of Printed Pages:3
S.E. (Electronics & TC/ Electronics & Comm Engg) Semester- IV (Revised Course 2016-17)
EXAMINATION FEBRUARY 2021
Microprocessors & Interfacing
[Duration : Two Hours] Total Marks :60
Instructions: 1. Answer THREE FULL QUESTIONS with One QUSTION FROM EACH
PART.
2. Assume suitable data only if necessary.
3. All symbols, notations, and abbreviations have their usual meaning.
Part A

Q.1 a) Explain the following signals with respect to 8085. (6 marks)


i. ii. HOLD iii.

b) With a neat timing diagram, explain the execution of the following instruction in an (8 marks)
8085 microprocessor.
Memory Address Instruction Hex Code
F000H MVI A, FFH 3EH
F001H FFH

c) The following block of data is stored in the memory locations from 8055H to (6 marks)
805AH. Write instructions to transfer the data to the locations 8080H to 8085H in
reverse order.
(eg. Data byte 22H should be stored at 8085H and 37H at 8080H.). Data (H)
22,A5,B2,99,7F,37

Q.2 a) Calculate the number of memory chips needed to design 2K byte of memory if the (4 marks)
memory chip size is 1024 4 bits.

b) Identify the addressing mode, number of bytes, type of machine cycle and T-states (8 marks)
for each of the following instructions.
i. LDA 1000H ii. RET iii. STAX D iv. INR B

c) Explain the structure of stack in 8085 processor. Explain with neat diagrams how (8 marks)
the PUSH and POP instructions work. Hence explain the function of the following
routine:
LXI SP, FFFFH
PUSH B
PUSH D
POP B
POP D
RET

Q.3 A) Write an 8085 assembly language program to find the count of positive and negative (8 marks)

EA1D25D6E36D97EC980ED6FFFC9DDB8D
numbers. 10 numbers are stored in memory starting from F100H. Store the count of
positive numbers in Register B and count of negative numbers in Register C.

B) Write an 8085 program to count from 0 to 20H with a delay of 100 ms between each (12 marks)
count. After the count 20H, the counter should reset itself and repeat the sequence.
Display the numbers at one of the output ports. Assume clock frequency = 2 MHz.
Show the delay calculations.

Part- B
Q.4 a) Design a seven segment LED output port with the device address F4H, using a (10 marks)
74LS138 3-to- 8 decoder, a 74LS20 4 input NAND gate a 74LS02 NOR gate, and
a common- anode seven- segment LED. Write instructions to display digit 7, 9, and 1
at the seven segments LED with a delay of 0.4 sec between each digit.

b) Briefly explain hardware interrupts of 8085. (6 marks)

c) Explain why the number of output ports in peripheral mapped I/O is restricted to 256 (4 marks)
ports.

Q.5 a) Describe the internal architecture of a 8259 IC with block diagram. (10 marks)

b) Explain in detail RST instruction. Also draw the circuit diagram to implement RST 4 . (6 marks)

c) Calculate the values of LSB, MSB and full scale output for an 8 bit DAC for a 0 to 10V (4 marks)
range.

Q.6 a) Write a program to blink Port C bit 0 of 8255. Assume address of control word (7 marks)
register of 8255 as 83H. Use Bit Set/Reset mode.

b) Write a subroutine to transmit an ASCII character, stored in Reg. C using SOD line (5 marks)
as a 1-bit output port.

c) Explain the transmitter section of 8251. (5 marks)

d) What is fully nested mode in 8259? (3 marks)

Part- C
Q. 7 a) Write an 8085 program to convert a two digit BCD number between 00 to 99 into its (10 marks)
equivalent binary number.

b) Specify the number of times the following loops are executed. (6 marks)
i)
LOOP :MVI B, 64 H
NOP
DCR B

EA1D25D6E36D97EC980ED6FFFC9DDB8D
JNZ LOOP

ii)
ORA A
MVI B, 64 H
LOOP : DCR B
JNC LOOP
(4 marks)
c) Memory locations 2050H and 2051H contain 3FH and 42H respectively. Register
pair DE contains 856FH. Write instructions to exchange the contents of DE with the
contents of memory locations.

Q. 8 a) Write the initialization instructions for 8259 interrupt controller to meet the (10 marks)
following specifications:
i) Edge triggered, single and ICW4 are not needed.
ii) Mask interrupts IR1 and IR3.
iii) Interrupt vector address for IR0 is 6280H
iv) Call address intervals are four bytes

b) List the four instructions used for controlling interrupts. (5 marks)

c) Differentiate between hardware and software interrupts of 8085. What are vectored (5 marks)
interrupts? Name the non- vectored interrupt.

EA1D25D6E36D97EC980ED6FFFC9DDB8D

You might also like