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

UIU CSE 4325 Microprocessors Exam 2025

This document outlines the final-term exam for the course CSE 4325 on Microprocessors and Microcontrollers at United International University. It includes various questions related to microprocessor operations, ADC calculations, I2C data transfer, instruction cycles, and assembly code execution. The exam consists of four questions, each with multiple parts, totaling 40 marks and a duration of 2 hours.

Uploaded by

Shahriyar Shakib
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)
8 views2 pages

UIU CSE 4325 Microprocessors Exam 2025

This document outlines the final-term exam for the course CSE 4325 on Microprocessors and Microcontrollers at United International University. It includes various questions related to microprocessor operations, ADC calculations, I2C data transfer, instruction cycles, and assembly code execution. The exam consists of four questions, each with multiple parts, totaling 40 marks and a duration of 2 hours.

Uploaded by

Shahriyar Shakib
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

United International University (UIU)​

Dept. of Computer Science & Engineering (CSE) ​


Final-Term Exam Trimester: Summer 2025 ​
Course Code: CSE 4325 Course Title: Microprocessors and Microcontrollers
Total Marks: 40 Duration: 2 hours

Any examinee found adopting unfair means would be expelled from the trimester/ program as per
UIU disciplinary rules.

Question 1: Answer all the questions. (10 Marks) [CO3]

An 80386 microprocessor is executing a segment in protected mode and a portion of its descriptor table is given
above. If the index 158 H is selected with requested privilege level 10, then determine the followings:

a. What was the value of the segment register? [3]

b. Starting and Ending address of the segment. [2]

c. For an offset value of D096E H, determine the physical address. [1]

d. Has the segment been accessed? [1]

e. Segment type (CS/DS/SS/ES). [2]

f.. What is the descriptor privilege level? [1]

Question 2: Answer all the questions. (10 Marks) [CO5]

a. Device A uses an 8-bit ADC in a 10 V system, while Device B uses a 16-bit ADC. Both devices [4]
display the same ADC reading when measuring 8 V in Device A and 0.4 V in Device B.
Determine the system voltage of Device B. [Show all necessary mathematical calculations.]

b. A microcontroller-based system has two master devices: “Master 1” (index: 4DH), “Master 2” [4]
(index: B3H) and three slave devices: “Slave 1” (index: 95H), “Slave 2” (index: F5H), “Slave
3” (index: 19H). Now, in I2C data transfer protocol, Master 2 receives 2-byte data (from char
"Protocol") from Slave 2. Draw the corresponding sequence diagram. The ASCII values of 'p',
‘R’, ‘O’, ‘T’, ‘C’ and ‘L’ are respectively 112, 82, 79, 84, 67 and 76.

c. A company is developing software for an industrial automation system where most operations [2]
involve tasks like data transfer, string handling, and arithmetic operations directly in hardware. For
this design, you want to use instructions which can perform multiple operations in a single step
and use a smaller number of registers. The software can be built using either RISC Architecture
or CISC Architecture. Which architecture would be more suitable and why?

1
Question 3: Answer all the questions. (10 Marks) [CO3]
a. Suppose there are eight instructions loaded into the Instruction Memory (within the Code Segment [4]
of 8086). The BIU of the 8086 will fetch these instructions for execution by the EU.​

The 1st instruction is a ‘JUMP <5th instruction address>’, the 3rd is a ‘JUMP <7th instruction
address>’, the 4th instruction is a ‘MOV <address>’ instruction, and the 6th instruction is a
‘JUMP <2nd instruction address>’ instruction. Draw the corresponding BIU and EU cycles.

b. Draw the timing diagram for I/O Write operation of microprocessor “808x” showing the [4]
activities of Address-Data and Address-Status pins (𝐴𝐷0 − 𝐴𝐷15, 𝐴16/𝑆3 − 𝐴19/𝑆6), 𝐴𝐿𝐸, 𝐷𝐸𝑁,
𝑅𝐷, 𝐷𝑇/𝑅, 𝑀/𝐼𝑂, 𝑊𝑅 in each clock cycle. [Observe the pins carefully]

c. If there are 2048 virtual pages and each entry in the page table takes 2 Bytes, at least how many [2]
virtual pages will reside in the secondary memory given the page table size is 1 KB?

Question 4: Answer all the questions. (10 Marks) [CO4]​


RAM Content


Opcode Table

Initially, the value of the Accumulator Register is 5H, the B Register is 1H, and the Output Register is 2H.

a. Write the assembly code for the following expression using RAM content. [3]
1
9 + 1 − 2 ÷ 3
[ Division can be done using multiplication and multiplication can be done by addition ]

b. Determine the Accumulator and B register values after executing each instruction in [a]. [3]

c. CON = 𝐿𝐼 𝐸𝐼 𝐿𝐴 𝐸𝐴 𝐸𝑃 𝐶𝑃 𝐿𝑀 𝐶𝐸 𝐸𝑈 𝑆𝑈 𝐿𝑂 𝐿𝐵 [Observe the pins carefully]​ [4]


While executing an instruction, the controller sequencer produces the following control words:​
At T4, CON = A07, at T5, CON = E36 and at T6, CON = C2F.​
Explain what happens in each of these clock cycles and identify which operation (LDA /ADD
/SUB /OUT) is being executed through these T4 to T6.

You might also like