0% found this document useful (0 votes)
10 views2 pages

19ee4dcmcr 2

This document outlines the UG Semester End Examination for the Micro Processor and Microcontrollers course at Dayananda Sagar College of Engineering. It includes instructions for the exam, a list of compulsory questions, and various topics related to microprocessors, addressing modes, and assembly language programming. The exam consists of multiple-choice questions, short answer questions, and programming tasks.

Uploaded by

sekirodietwice81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

19ee4dcmcr 2

This document outlines the UG Semester End Examination for the Micro Processor and Microcontrollers course at Dayananda Sagar College of Engineering. It includes instructions for the exam, a list of compulsory questions, and various topics related to microprocessors, addressing modes, and assembly language programming. The exam consists of multiple-choice questions, short answer questions, and programming tasks.

Uploaded by

sekirodietwice81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

USN

DAYANANDA SAGAR COLLEGE OF ENGINEERING


(An Autonomous Institute Affiliated to VTU, Belagavi)
Shavige Malleshwara Hills, Kumaraswamy Layout, Bengaluru-560078

UG Semester End Examination September 2022


Course: Micro Processor and Microcontrollers Maximum marks: 100
Course Code: 19EE4DCMCR Duration: 03 hours
Semester: IV

Note: i). Question ONE (a to t) has to be answered from pages 5 to 7 only, also candidate
must write the answer along with the option.
ii). Question 1 to 4 is compulsory.
iii). Any missing data should be suitably assumed
Q. No. Marks
1a) The instruction MOV AX, 1234H is an example of: 01
i) Register addressing mode ii) Direct addressing mode iii) Immediate addressing
mode iv) Based indexed addressing mode
b) The directive that updates the location counter to the next even address while 01
executing a series of instructions is: i) EVN ii) EVEN iii) EVNE iv) EQU
c) In POP instruction, after each execution of the instruction, the stack pointer is 01
i) incremented by 1 ii) decremented by 1 iii) incremented by 2 iv) decremented by 2
d) The flag that acts as Borrow flag in the instruction, SBB is: 01
i) direction flag ii) carry flag iii) parity flag iv) trap flag
e) In the RCL instruction, the contents of the destination operand undergo function as: 01
i) carry flag is pushed into LSB & MSB is pushed into the carry flag
ii) carry flag is pushed into MSB & LSB is pushed into the carry flag
iii) auxiliary flag is pushed into LSB & MSB is pushed into the carry flag
iv) parity flag is pushed into MSB & LSB is pushed into the carry flag
f) The instruction that is used as prefix to an instruction to execute it repeatedly until the 01
CX register becomes zero is: i) SCAS ii) REP iii) CMPS iv) STOS
g) Which of the following is not a machine controlled instruction? 01
i) HLT ii) CLC iii) LOCK iv) ESC
h) The instruction that performs logical AND operation and the result of the operation is 01
not available is: i) AAA ii) AND iii) TEST iv) XOR
i) To what location Stack Pointer (SP) points to after the execution of the following code: 01
mov 81h, #08h
mov r0, #09h
mov r1, #06h
mov r2, #03h
push 00h
push 01h
push 02h
i) 0AH ii) 0BH iii) 07H iv) 0CH
j) What is the output of the following instruction: 01
mov dptr,#0002h
dec dptr
i) Warning ii) 0003h iii) 0001h iv) Syntax error
k) The I/O ports that are used as address and data for external memory are: 01
i) P0 and P1 ii) P0 and P2 iii) P0 and P3 iv) P1 and P2
l) bit membit 01
membit = P1.1
In which of the following RAM locations is it not possible for the membit to be stored?
i) 22h ii) 32h iii) 24h iv) 2FH
m) What steps are followed when we need to turn on any timer? 01
i) load the count, start the timer, keep monitoring it, stop the timer
Page 1 of 2
ii) load the TMOD register, load the count, start the timer, keep monitoring it, stop the
timer iii) load the TMOD register, start the timer, load the count, keep monitoring it,
stop the timer iv) none of the mentioned
n) MOV TMOD, #20H 01
MOV TH1, #20H
SETB TR0
What will be the value in TH1 after 10ms if the XTAL clock frequency is 12 MHz?
i) 20h ii) 10h iii) 40h iv) Cannot be determined
o) The flags IE0 and IE1, are automatically cleared after the control is transferred to 01
respective vector if the interrupt is:
i) level-sensitive ii) level-insensitive iii) edge-sensitive iv) disabled
p) In serial port interrupt, after the control is transferred to the interrupt service routine, 01
the flag that is cleared is: i) RI ii) TI iii) both RI and TI iv) None
q) SCON in serial port is used for which operation? 01
i) Transferring data ii) Receiving data iii) Controlling iv) Controlling and transferring
r) With what frequency UART operates (where f denoted the crystal frequency)? 01
i) f/12 ii) f/32 iii) f/144 iv) f/384
s) The I/O port that does not have a dual-purpose role is: i) PO ii) P1 iii) P2 iv) P3 01
t) How many data lines are there in a 16*2 alphanumeric LCD? i) 8 ii) 16 iii) 32 iv) 20 01

2 a) Define any four addressing modes used in 8086. Identify addressing modes used 08
in each of the following instructions:
i. MOV BX, 0345H ii. ADD AL, [BX + 04] iii. MOV AX, [BX + SI]
iv. MOV AX, [BX + SI + 04]
b) Explain the working of following 8086 instructions: 08
i) MOV AX, [SI], ii) ADD BYTE PTR [DI], 3.

3 a) Explain the operation of the following instructions: 08


i. NEG, ii. CBW, iii. DAA, iv. AAD.
b) List and explain the string manipulation instructions. Also explain its advantages. 08

4 a) Draw the pin diagram of 8051 microcontroller and explain. 08


b) Explain the operation of SP, PUSH and POP instructions. 08

5 a) What are Interrupts and Interrupt Subroutines? Explain the interrupts that are 08
present in 8051.
b) Write an assembly language program to generate a square wave of 50 milliseconds 08
pulse width at P1.2. Assume crystal frequency of 33 MHz. Show the calculation to
generate the delay.
OR
6 a) Explain with an example, decimal method and hexadecimal method of calculating 08
the value to be loaded to timer to generate delay.
b) Discuss what happens if interrupts INT0, INT1 and TF1 are activated at the same 08
time. Assume priority levels set by the power up reset. Program the IP register to
assign the highest priority to INT1 and then discuss what happens if INT0, INT1
and TF1 are activated at the same time. Assume that external hardware interrupts
are edge triggered.

7 a) Write the algorithm and program for the 8051 to transfer “Microcontroller” 08
serially at 9600 baud, 8-bit data, 1 stop bit, do this continuously.
b) Explain data framing with an example. 08
OR
8 a) Describe the pin diagram of a 16x2 LCD and explain the use of each pin. 08
b) Interface an LCD to 8051 and write a program either in assembly language or C 08
language to display message “MICROCONTROLLER”.

Page 2 of 2

You might also like