Reg. No.
Question Paper Code : 16297
B.E. / [Link]. DEGREE EXAMINATION, NOVEMBER / DECEMBER 2020
Fifth Semester
B.E. – Electrical and Electronics Engineering
15EE503 – MICROPROCESSORS AND MICROCONTROLLERS
(Regulations: Mepco – R2015)
Duration: 3 Hours Max. : 100 Marks
Answer ALL Questions
PART A – (10 2 = 20 Marks)
BTL,CO
R, CO1 1. The size of the data bus, address bus, max memory addressing capacity of
8085 are ______. Justify your answer.
A) 8 bits, 16 bits, 32 bits B) 16 bits, 8 bits, 16 kB
C) 8 bits, 16 bits, 32 kB D) 8 bits, 16 bits, 64 kB
U,CO1 2. After an arithmetic operation, the carry flag and zero flag in 8085 are set to
1 when___________. Justify your answer.
A) there is a carry from D3 bit and there is a carry from D7 bit
B) there is a carry from D7 bit and the A reg content is zero
C) there is a carry from D7 bit and a 0 is in the MSB of A reg
D) there is carry from D3 bit and a 1 is in the D0 bit of A reg
R,CO2 3. RIM instruction is used to check whether __________. Justify your answer.
A) the I/O read operation is done or not
B) the I/O write operation is done or not
C) the memory write operation is done or not
D) the interrupt is masked or not
R,CO2 4. In 8085 microprocessor with I/O mapped I/O, which of the following is not
true? Justify your answer.
A) I/O devices have 8-bit addresses
B) I/O devices are accessed using IN and OUT instructions
C) Arithmetic and logic operations can be directly performed with the I/O
data
D) There can be a maximum of 256 input devices and 256 output devices.
1 16297
R,CO2 5. In 8255, BSR mode is ___________. Justify your answer.
A) enabled by a 0 in the MSB of control word B) used to set port C pins
C) used to reset port C pins D) All of the above
U,CO2 6. Create a control word of 8255 IC based on the following specification:
Port A: output, Port B: input, Port C higher: output, Port C lower: input.
U,CO3 7. Why microcontroller is called as system on a chip?
R,CO3 8. Write control word format of TCON SFR in 8051 timer unit.
U,CO4 9. Why driver circuit is needed for interfacing an LED to a port pin?
U,CO4 10. Calculate the resolution of a 10-bit DAC having a full scale output voltage
of 5V.
PART B – (5 16 = 80 Marks)
U,CO1 11. a) i. Explain the functional units of 8085 microprocessor in detail
with necessary diagram. (12 Marks)
A,CO1 11. a) ii. The following FIVE instructions were executed on an 8085
microprocessor .What is the Accumulator value immediately
after the execution of fifth instruction?
MVI A,33H
MVI B,78H
ADD B
CMA
ANI 32H (4 Marks)
OR
U,CO1 11. b) i. Draw the timing diagram for the instruction STA 9000H and
explain the operation. (12 Marks)
A,CO1 11. b) ii. Match the addressing mode of the following instructions.
Instruction Addressing Mode
(i) IN 40H (a) Indirect Addressing Mode
(ii) POP PSW (b) Implied Addressing Mode
(iii) RLC (c) Immediate Addressing Mode
(iv) CPI 30H (d) Direct Addressing Mode
(v) STAX D (e) Register Direct Addressing Mode (4 Marks)
2 16297
U,CO2 12. a) i. Discuss the interrupt structure of 8085 microprocessor.
Discuss how the priority, enabling and disabling of interrupts
are managed. (12 Marks)
A,CO2 12. a) ii. What does the following set of instructions do in an 8085
microprocessor?
EI
MVI A, 08H
SIM (4 Marks)
OR
U,CO2 12. b) i. Interface two 2764 IC - 8K x 8 EPROM using IC 74LS138
Decoder such that the starting address assigned for the chips
are 0000H and 8000 respectively. (12 Marks)
A,CO2 12. b) ii. For the given circuit, the device connected to Y5 can have
address in the range of
(4 Marks)
U,CO2 13. a) Explain the block diagram, control word and operating modes
of Programmable Timer IC 8253 in detail. (16 Marks)
OR
U,CO2 13. b) Explain the features, control word format and Interfacing of
8251 USART IC with 8085 microprocessor in detail with
necessary diagram. (16 Marks)
3 16297
U,CO3 14. a) i. Explain the addressing modes of 8051 microcontroller in
detail with an example. (8 Marks)
U,CO3 14. a) ii. Explain the operation carried out for each of the following
four 8051 instructions.
A) RLC A
B) CJNE A, 50H, LABEL1
C) JMP @A+DPTR
D) JBC BIT, REL-ADDR (8 Marks)
OR
U,CO3 14. b) i. Explain the various operating modes of 8051 serial port in
detail. (8 Marks)
U,CO3 14. b) ii. Write an assembly level program for 8051 to generate 10 ms
of time delay using timers. Assume the crystal frequency of
10 MHz. (8 Marks)
A,CO4 15. a) Assume stepper motor is interfaced with 8051
microcontroller. Write an ALP to rotate the stepper motor in
clock wise direction continuously at 30 r.p.m speed. Also,
explain the algorithm for the same. (16 Marks)
OR
A,CO4 15. b) Assume 8085 microprocessor is interfaced with multiplexed
display and matrix keyboard. Write a program to display
“OPEN” and “CLOSE” in the multiplexed display
alternatively with a delay of 0.5ms. Also, explain the
algorithm for the same. (16 Marks)
4 16297