Skip to content

Microprocessor, Embedded Systems and IoT

CSE · Midterm · Spring 23

Paper 2 of 2Batch 59 · Mohammad Al FaiedSwitch

Batch 59

Paper 2 of 2

This browser can’t show the PDF here

Open it, and your phone’s PDF viewer takes it, or download it.

Read the questions as text

Read off the PDF by AI, so it may have mistakes. The PDF is the original.

Daffodil International University Faculty of Science & Information Technology Midterm Examination, Spring-2023 Course Code: CSE231 Course Title: Microprocessor, Embedded Systems and IoT Level: 3 Term: 1 Batch: 59 Time: 1 Hour and 30 Minutes Marks: 25 Answer All, Questions [The figures in the right margin indicate the full marks and corresponding course outcomes. All portions of each question must be answered sequentially.] 1. a) Suppose you have to design a system that has just one task, to turn off a light at a specified time. You will have to use parts that are already available in the market to design this system. Recommend one among microcontroller and microprocessor by comparing the two. [5] CO1 2. a) Explain with calculations, for MOV AX, [SI], from where the value of AX register will come from if DS = 4C60h and SI = last 3 digit of your student ID in hexadecimal. [5] CO2 2. b) MOV DS, AB40h | Address | Content MOV SI, 0B78h | 157EF5h | 23h MOV AX, 2[SI] | 157EF4h | 22h ADD AX, 5h | ABF7Bh | 12h For the code above, Determine the final value | ABF7Ah | A2h of AX showing calculations to support your | AB87Ch | 26h opinion. | AB87Bh | 22h The address and content of some memory | Memory locations are given. [5] 2. c) SUB AL, BL | Given, AL= 0Fh and BL= 1Fh [2.5] 2. d) NEG AX | Given AX=0000h [2.5] 3. Apply the idea of loop to write an assembly code to output the odd numbers between 0 and 10. [5] CO3