.
, ? N..: j., 1
17CS44
?
--- Content provided by FirstRanker.com ---
Fourth Semester B.E. Degree Examination, Dec.2019/Jan.2020Microprocessor and Microcontrollers
Time: 3 hrs. Max. Marks: 100
Note: 1. Answer any FIVE full questions, choosing ONE full question from each module.
2. Assume missing data suitably.
--- Content provided by FirstRanker.com ---
UModule-1
7..
p
1 a. Explain Execution Unit (EU) and Bus Interface Unit (B1U) of 8086 with a neat diagram.
--- Content provided by FirstRanker.com ---
ti-c)
(08 Marks)
v
ti b. With an example distinguish between physical address, logical address and offset address. If
--- Content provided by FirstRanker.com ---
CS = 2000h, DS = 3000h, SS = 4000h, ES = 5000h, BX = 0030h, BP = 0020h, find theto
_
. ?, physical address for i) MOV AL, [BP] ii) MOV CX, [BX] iii) Add AX, 20[BX].
Y ,, (06 Marks)
--- Content provided by FirstRanker.com ---
--zk c5
c
. explain the following addressing modes of 8086:
`''
--- Content provided by FirstRanker.com ---
to iic to
i) Register Indirect
: E --,
1 i ) Based Index
--- Content provided by FirstRanker.com ---
LP
to
,_ I.)
i i 1.) Relative Based Index
--- Content provided by FirstRanker.com ---
.. viv) Direct Memory. (06 Marks) '
4
-
7
--- Content provided by FirstRanker.com ---
-.
.1:
0.., ,
--- Content provided by FirstRanker.com ---
OR- -
? 0
-; ?E
.
--- Content provided by FirstRanker.com ---
L. : 2 a. Explain all bits of flag register of 8086 lip
with a neat diagram. Show the setting and
J.
--- Content provided by FirstRanker.com ---
2 0-
c.) o
resetting of flag bits with a suitable example. (06 Marks)
--- Content provided by FirstRanker.com ---
.1- b. What are Assembler directives? Explain the following assembler directives with an
?
-0
--- Content provided by FirstRanker.com ---
tl) aexample: i) PUBLIC ii) ORG iii) ASSUME iv) PTR. (08 Marks)
. cz cz
-a .6
c. Develop an 8086 Assembly Language Program (ALP) to sort a given set of 'n' 16-bit
--- Content provided by FirstRanker.com ---
, --t.-'e 74
numbers in descending order. Using Bubble sort algorithm to sort given elements. (06 Marks)
c t ?,.
>, k;
--- Content provided by FirstRanker.com ---
c 0O ..?
Module-2
? tv
:.--,
--- Content provided by FirstRanker.com ---
G,
c. .. o.
3 a. Explain the following instructions with an example: i) DAA ii) AAM iii) SHR
9"
--- Content provided by FirstRanker.com ---
iv) TEST v) LEA vi) PUSH vii) LDS viii) CBW. (08 Marks)u d
.
:i. .
--- Content provided by FirstRanker.com ---
0:
1
3 ii
--- Content provided by FirstRanker.com ---
b. What is an interrupt? Explain various types with an interrupt vector table. (06 Marks)3
0
cn , ""
--- Content provided by FirstRanker.com ---
c. Assume that there is a class of five people with following grades: 69, 87, 96, 45, 75.c
ct E.
,- 0 Develop an ALP to find the highest grade. (06 Marks)
'6 ?P-
--- Content provided by FirstRanker.com ---
>,o
.-
to
--- Content provided by FirstRanker.com ---
2)OR
15 _
z 0
4 a. Develop an ALP that adds the following two multiword numbers and saves the result:
--- Content provided by FirstRanker.com ---
P >5 a
)
Data 1 = 548FB9963CE7H
cs
--- Content provided by FirstRanker.com ---
Data 2 = 3FCD4FA23B8DH. (08 Marks)b. Develop an ALP to perform the following:
? ?
i) Clear the screen.
ii) Set the cursor at row 8 and column 5 of the screen.
--- Content provided by FirstRanker.com ---
iii) Prompt "There is a message for you from VTU, to read it enter Y. If the user enterO or then the message "Hello! All the best for you exams" will appear on the screen.
If the user enters any other key, then the prompt. "No more messages for you" should
appear on the next line.
(08 Marks)
--- Content provided by FirstRanker.com ---
c.Develop an ALP to count the number of ones and zeros in a given 8 bit data using rotate
instructions.
(04 Marks)
1 of 2
--- Content provided by FirstRanker.com ---
FirstRanker.com - FirstRanker's ChoiceUSN
.
, ? N..: j., 1
17CS44
--- Content provided by FirstRanker.com ---
?Fourth Semester B.E. Degree Examination, Dec.2019/Jan.2020
Microprocessor and Microcontrollers
Time: 3 hrs. Max. Marks: 100
Note: 1. Answer any FIVE full questions, choosing ONE full question from each module.
--- Content provided by FirstRanker.com ---
2. Assume missing data suitably.U
Module-1
7..
p
--- Content provided by FirstRanker.com ---
1 a. Explain Execution Unit (EU) and Bus Interface Unit (B1U) of 8086 with a neat diagram.ti
-c)
(08 Marks)
v
--- Content provided by FirstRanker.com ---
ti b. With an example distinguish between physical address, logical address and offset address. IfCS = 2000h, DS = 3000h, SS = 4000h, ES = 5000h, BX = 0030h, BP = 0020h, find the
to
_
. ?, physical address for i) MOV AL, [BP] ii) MOV CX, [BX] iii) Add AX, 20[BX].
--- Content provided by FirstRanker.com ---
Y ,, (06 Marks)--z
k c5
c
. explain the following addressing modes of 8086:
--- Content provided by FirstRanker.com ---
`''to ii
c to
i) Register Indirect
: E --,
--- Content provided by FirstRanker.com ---
1 i ) Based IndexL
P
to
,_ I.)
--- Content provided by FirstRanker.com ---
i i 1.) Relative Based Index.. v
iv) Direct Memory. (06 Marks) '
4
-
--- Content provided by FirstRanker.com ---
7-
.
.1:
--- Content provided by FirstRanker.com ---
0.., ,OR
- -
? 0
-; ?E
--- Content provided by FirstRanker.com ---
.L. : 2 a. Explain all bits of flag register of 8086 li
p
with a neat diagram. Show the setting and
J.
--- Content provided by FirstRanker.com ---
2 0
-
c.) o
--- Content provided by FirstRanker.com ---
resetting of flag bits with a suitable example. (06 Marks).
1- b. What are Assembler directives? Explain the following assembler directives with an
?
--- Content provided by FirstRanker.com ---
-0tl) a
example: i) PUBLIC ii) ORG iii) ASSUME iv) PTR. (08 Marks)
. cz cz
-a .6
--- Content provided by FirstRanker.com ---
c. Develop an 8086 Assembly Language Program (ALP) to sort a given set of 'n' 16-bit, --t.
-'e 74
numbers in descending order. Using Bubble sort algorithm to sort given elements. (06 Marks)
c t ?,.
--- Content provided by FirstRanker.com ---
>, k;c 0
O ..?
Module-2
? tv
--- Content provided by FirstRanker.com ---
:.--,G
,
c. .. o.
3 a. Explain the following instructions with an example: i) DAA ii) AAM iii) SHR
--- Content provided by FirstRanker.com ---
9"iv) TEST v) LEA vi) PUSH vii) LDS viii) CBW. (08 Marks)
u d
.
--- Content provided by FirstRanker.com ---
:i. .0
:
1
--- Content provided by FirstRanker.com ---
3 iib. What is an interrupt? Explain various types with an interrupt vector table. (06 Marks)
3
0
--- Content provided by FirstRanker.com ---
cn , ""c. Assume that there is a class of five people with following grades: 69, 87, 96, 45, 75.
c
ct E.
,- 0 Develop an ALP to find the highest grade. (06 Marks)
--- Content provided by FirstRanker.com ---
'6 ?P->,
o
.-
--- Content provided by FirstRanker.com ---
to2)
OR
15 _
z 0
--- Content provided by FirstRanker.com ---
4 a. Develop an ALP that adds the following two multiword numbers and saves the result:P >
5 a
)
Data 1 = 548FB9963CE7H
--- Content provided by FirstRanker.com ---
csData 2 = 3FCD4FA23B8DH. (08 Marks)
b. Develop an ALP to perform the following:
? ?
i) Clear the screen.
--- Content provided by FirstRanker.com ---
ii) Set the cursor at row 8 and column 5 of the screen.iii) Prompt "There is a message for you from VTU, to read it enter Y. If the user enter
O or then the message "Hello! All the best for you exams" will appear on the screen.
If the user enters any other key, then the prompt. "No more messages for you" should
appear on the next line.
--- Content provided by FirstRanker.com ---
(08 Marks)c.
Develop an ALP to count the number of ones and zeros in a given 8 bit data using rotate
instructions.
(04 Marks)
--- Content provided by FirstRanker.com ---
1 of 217CS4
5 a. Explain handling of overflow problem that arises in addition of signed numbers with a
suitable example. (06 Marks)
Module-3
--- Content provided by FirstRanker.com ---
b. Develop an ALP using string instructions to accept a string from keyboard and check forpalindrome and display appropriate messages on the screen. (06 Marks)
c. Design a memory system for 8086 with one 64KB RAM and one 64KB Rom at address
30000H to F0000H show the complete design along with memory mapping and draw the
final diagram with address decoder. (08 Marks)
--- Content provided by FirstRanker.com ---
OR6 a. Briefly explain the control word format of 8255 in I/O mode and BSR mode. Find the
control word if PA = out, PB = in, PC0 ? PC3 = in and PC4 ? PC7 = out. Use post addresses
of 300H-303H for the 8255 chip. Then get data from port B and send it to port A. (08 Marks)
b. Assume that we have 4 byte of hexadecimal data: 25H, 62H, 3FH and 52H
--- Content provided by FirstRanker.com ---
i) Find the checksum byteii) Perform the checksum operation to ensure data integrity.
iii) If the second byte 62H had been changed to 22H. Show how checksum detects the
error. (08 Mark
,
--- Content provided by FirstRanker.com ---
?c.
Explain XLAT instruction with example. (04 Marks)
Module-4
7 a. Differentiate between RISC and CISC processors. (06 Marks)
--- Content provided by FirstRanker.com ---
b. Explain ARM core data flow model with a neat diagram. (06 Marks)c. With diagram explain the various blocks in a 3 stage pipeline of ARM processor
organization. (08 Marks)
OR
8 a. Explain the various fields in the current program status register. (08 Marks)
--- Content provided by FirstRanker.com ---
b. Explain the architecture of a typical embedded device based in ARM core with a neatdiagram. (08 Marks)
c. Describe the various modes of operation of ARM processor. (04 Marks)
Module-5
9 a. Write/develop an ALP to copy a block of data (Block 1) to another block (block 2) using
--- Content provided by FirstRanker.com ---
-_
ARM instructions. (08 Marks)
b. Explain the following instructions of ARM processor with suitable examples:
i) MLA ii) QADD iii) SMULL iv) LSL. (08 Marks)
--- Content provided by FirstRanker.com ---
c. If r5 = 5, r7
= 8 using the following instructions, write values of rs, r
7
after execution of
--- Content provided by FirstRanker.com ---
MOV r7
, r
5
, LSL #2. (04 Marks)
--- Content provided by FirstRanker.com ---
OR10 a. Write short notes on:
i) Memory access
ii) Branch instruction of ARM controller. (08 Marks)
b. Explain various types of SWAP instructions with syntax and example. (06 Marks)
--- Content provided by FirstRanker.com ---
c. Develop an ALP to find factorial of given number using LOOKUP table and ARMinstruction set.
FirstRanker.com - FirstRanker's Choice