0% found this document useful (0 votes)
56 views7 pages

MPMC Merged

The document contains questions for an exam on microprocessors and microcontrollers. It includes 5 questions, each worth 10 marks and covering topics like 8085 and 8086 microprocessor architecture, programming, and interfacing with peripherals like 8255 PPI. The questions test understanding of microprocessor concepts and ability to write assembly language programs for applications like serial data input/output and waveform generation.

Uploaded by

Mayank Sinha
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)
56 views7 pages

MPMC Merged

The document contains questions for an exam on microprocessors and microcontrollers. It includes 5 questions, each worth 10 marks and covering topics like 8085 and 8086 microprocessor architecture, programming, and interfacing with peripherals like 8255 PPI. The questions test understanding of microprocessor concepts and ability to write assembly language programs for applications like serial data input/output and waveform generation.

Uploaded by

Mayank Sinha
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/ 7

BIRLA INSTITUTE OF TECHNOLOGY, MESRA, RANCHI

(END SEMESTER EXAMINATION MO-2022)


CLASS: ALL SEMESTER : V
BRANCH: ECE SESSION : MO/2022

SUBJECT: EC303 MICROPROCESSOR & MICROCONTROLLER


TIME: 03 Hours FULL MARKS: 50

INSTRUCTIONS:
1. The question paper contains 5 questions each of 10 marks and total 50 marks.
2. Attempt all questions.
3. The missing data, if any, may be assumed suitably.
4. Tables/Data handbook/Graph paper etc., if applicable, will be supplied to the candidates
-----------------------------------------------------------------------------------------------------------------------------

Q.1(a) Write a small program to output the contents of Stack Pointer (SP) through two ports numbered 10 H [2]
and 20 H. [CO2, L3]
Q.1(b) What is meant by hardware control matrix? Mention a suitable alternative for that. (Explain with [3]
block diagram) [CO1, L1]
Q.1(c) A block containing equal number of even and odd bytes starts from location ‘DATA’. The number of [5]
bytes (in BCD) in the block are given at location ‘COUNT’. Write an 8085 based program to arrange
them alternatively i.e., first odd, and next even. Store the result at location ‘RESULT’. [CO2, L3]

Q.2(a) Explain the following Instructions of 8085 µp with suitable examples [2]

i) DAA, ii) DAD RP, [CO2, L3]

Q.2(b) Differentiate between memory mapped I/O and I/O mapped I/O bringing out the relative merits and [3]
demerits. [CO2, L2]
Q.2(c) Write down at least two purposes for which Read interrupt mask (RIM) instruction is used in 8085 µp. [5]

Write an 8085 based assembly language program to input 100 bytes of data serially through SID pin of
8085µp and store them in locations starting from DATA. Assume for each byte LS bit is arriving first,
and the MS bit last. The bits are arriving at regular interval of time i.e., 1 millisecond between 2 bits
and a delay subroutine ‘ONEMIL’ is available already. [CO2, L3]

Q.3(a) What do you understand by segmented memory? What are its advantages? How a particular location [2]
in a segment is accessed by the 8086 µp? [CO4, L2]
Q.3(b) What do you understand by the pipelined architecture? How is it implemented in 8086? How do [3]
Request / Grant pins function in maximum mode of 8086µp? Which signals in minimum mode they
replace? [CO4, L4]
Q.3(c) What do you understand by even and odd addressing of memory in 8086 µp? Explain with the [5]
diagram, how is it achieved? Which addressing method is preferred and why? [CO4, L4]

Q.4(a) Write down the different modes of operation of 8255 PPI. Where do we read the status in 8255 PPI? [2]
[CO3, L2]
Q.4(b) Write an 8085 based program to generate a triangular wave of amplitude -2V to +2V. Use 8255 as the [3]
peripheral chip. [CO3, L5]
Q.4(c) Write a program to generate a train of square wave having frequency 0.05 Hz using 8253 timer. [5]
Assume CLK0 frequency is 3 MHz, and PC2 of 8255 is connected to GATE0 of 8253 timers. [CO3, L5]

Q.5(a) Which port of 8051 µc does not have any alternate function and can solely be used for I/O? Explain [2]
the RESET Mechanism in 8051 µc and mention the default values of all the ports, PC, SP and PSW,
following a reset. [CO4, L2]
Q.5(b) Explain the addressing modes of 8051 µc with at least two examples for each mode. What is the [3]
limitation of indirect addressing mode? [CO4, L3]
Q.5(c) Differentiate between General Purpose RAM (GPR) and Special Function RAM (SFR) of 8051 µc. [5]
Explain the Memory organization for the 128 bytes internal RAM of 8051 µc. [CO4, L3]

:::::22/11/2022:::::M
BIRLA INSTITUTE OF TECHNOLOGY, MESRA, RANCHI
(MID SEMESTER EXAMINATION)

CLASS: BE SEMESTER: V
BRANCH: CSE SESSION : MO/2019

SUBJECT : EC4205 MICOPROCESSORS AND MICROCONTROLLERS

TIME: 1.5 HOURS FULL MARKS: 25

INSTRUCTIONS:
1. The total marks of the questions are 30.
2. Candidates may attempt for all 30 marks.
3. In those cases where the marks obtained exceed 25 marks, the excess will be ignored.
4. Before attempting the question paper, be sure that you have got the correct question paper.
5. The missing data, if any, may be assumed suitably.

----------------------------------------------------------------------------------------------------------------------------------

Q1. (a) What are microinstructions? How these instructions are generated in 8085? Why TEMP [3]
register is connected bi-directionally with internal data bus of 8085?
(b) What do you understand by FEO? Explain by giving suitable examples. [2]

Q2. (a) Why flags are not affected in INX and DCX instructions? [1]
(b) What is the use of auxiliary carry flag? Differentiate between INR A and ADI 01H [2]
instructions.
(c) Write a subroutine for BCD decrement and use it for converting a BCD number to binary (2)
number which is stored at memory location 2400H. Store the converted binary number
at 2401H.
Q3. (a) Explain the functions of RESETIN (active low) and READY (active high) pins of 8085. [1]
(b) The ball by ball score of a batsman in a 50 over match is stored in location starting from [4]
2400H. Runs scored by the batsman in a ball may be 00H, 01H, 02H, 03H, 04H, 05H or
06H. If score is FFH then batsman is out in that ball, then WAP to store the following in
BCD.
i) Total ball faced by the batsman at 2600H onwards.
ii) Number of fours and sixes hit by the batsman at 2800H and 2801H respectively.

Q4. (a) Explain LDA 2000H by giving suitable timing diagram. [2]
(b) 1000 bytes are arriving (Ls Bit first- Ms Bit last) at SID pin of 8085 at regular interval of [3]
0.5ms. WAP to input them serially and store in memory location starting from 2500H.

Q5. (a) Interface 8K ROM and 2K RAM chips with 8085. What will be the starting addresses of [4]
ROM and RAM? Justify the starting address of ROM.
(b) What are the two functions for which a ‘SIM’ instruction is used? [1]

Q6. (a) What is the use of INTR pin? [1]


(b) Write a program to input two blocks of data of 16 bytes each through port nos. 20H and [4]
21H respectively using RST5.5 (for first block) and RST6.5 (for second block) interrupts
and store them in two memory locations, one starting from 0C10H and the other starting
from 0C30H. Disable the interrupts after all the bytes in the blocks are inputted.
:::::: 19/09/2019 ::::::E
BIRLA INSTITUTE OF TECHNOLOGY, MESRA, RANCHI
(END SEMESTER EXAMINATION)
CLASS: BE SEMESTER : IV
BRANCH: ECE SESSION : SP/19

SUBJECT: EC4205 MICROPROCESSORS AND MICROCONTROLLERS


TIME: 3 Hours FULL MARKS: 60

INSTRUCTIONS:
1. The question paper contains 7 questions each of 12 marks and total 84 marks.
2. Candidates may attempt any 5 questions maximum of 60 marks.
3. The missing data, if any, may be assumed suitably.
4. Before attempting the question paper, be sure that you have got the correct question paper.
5. Tables/Data hand book/Graph paper etc. to be supplied to the candidates in the examination hall.
----------------------------------------------------------------------------------------------------------------------------------

Q.1(a) Why the TMP Register is connected bidirectional to the Internal data bus in 8085? [2]
Q.1(b) Explain the function of the following signals of 8085: a) ALE, b) Reset out, c) Ready and d) Hold. [4]
Q.1(c) A block of binary bytes resides in locations starting from ARRAY and the count of bytes(in BCD) is given [6]
in location BINCOUNT. Write an 8085 based program to arrange them in descending order in the same
locations.

Q.2(a) Write two instructions which require a read memory operation and a write memory operation in their [2]
Execution cycles (only one Read memory and one Write memory).
Q.2(b) What does DAA instruction do in 8085? Demonstrate the operation of DAA with a suitable examples. [4]
Q.2(c) Six unpacked BCD members are residing in 6 locations starting from BCD. Write an 8085 based program [6]
to form the smallest 6-digit BCD number which can be formed by them and store the BCD number in 3
locations starting from BCDNUM.

Q.3(a) How does an 8085 respond to an interrupt request at INTR pin? Elaborate with the help of relevant [2]
diagrams.
Q.3(b) Show with the help of diagram how to interface a 4K RAM with an 8085, with starting address from [4]
4000H.
Q.3(c) Write a program to count the number of pulses arriving at SID pin of an 8085. The count shall be in BCD, [6]
and the maximum number of pulses can be only 99.

Q.4(a) Demonstrate the Input Handshaking procedure of 8255, with the help of relevant timing diagrams. [2]
Q.4(b) Explain the following terms with respect to a Digital to Analogue Convertor: [4]
a) Absolute Accuracy, b) Relative Accuracy, c) Settling Time and d) Monotonicity.
Q.4(c) Write an 8085 based program to collect 150 samples of a signal at intervals of 10m sec and store them [6]
in locations starting from DATA. For logic 1, the switch is closed and for logic 0, the switch is open.
Acquisition time is 4µ sec. Use PC1 for Logic, PC0 for SOC and PC7 of 8255 for EOC. Collect the digitized
samples through Port A of 8255. ( Assume time delay programs are available).

Q.5(a) Distinguish between Software triggered strobe and Hardware triggered strobe (with neat timing [2]
diagrams) in an 8253 timer.
Q.5(b) Write a program to display and flash 123456 in an SDK-85 kit. [4]
Q.5(c) Write an 8085 based program to design a real time clock, which will count up to 1 hour. Once an hour [6]
is over, the count has to be stopped. Use 8253 Timer 1 to interrupt the CPU at a rate of 200 times per
second. Clock frequency is 2 MHz. Gate of Timer 1 is connected to PC0 of 8255. Out 1 of 8253 is
connected to RST 6.5 interrupt.

Q.6(a) Why ROM is mapped to the higher regions of the memory map and RAM is mapped to lower regions of [2]
the memory map in an 8086 based system?
Q.6(b) Explain the function of the following signals in an 8086 microprocessor: [4]
a) MN/MX , b)TEST c) LOCK d)DEN
Q.6(c) Differentiate between CISC and RISC, stating the salient features of RISC. [6]

Q.7(a) What is meant by Special Function Registers in an 8051 microcontroller? [2]


Q.7(b) What are the salient features of an 8051 microcontroller? [4]
Q.7(c) Explain any six addressing modes of an 8051 microcontroller. [6]
:::::29/04/2019 E:::::
BIRLA INSTITUTE OF TECHNOLOGY, MESRA, RANCHI
(MID SEMESTER EXAMINATION)

CLASS: BE SEMESTER: V
BRANCH: CSE SESSION : MO/2018

SUBJECT : EC4205 MICROPROCESSORS AND MICROCONTROLLERS

TIME: 1.5 HOURS FULL MARKS: 25

INSTRUCTIONS:
1. The total marks of the questions are 30.
2. Candidates may attempt for all 30 marks.
3. In those cases where the marks obtained exceed 25 marks, the excess will be ignored.
4. Before attempting the question paper, be sure that you have got the correct question paper.
5. The missing data, if any, may be assumed suitably.
----------------------------------------------------------------------------------------------------------------------------------

Q1 (a) What is the difference between macroinstructions and microinstructions? How these [2]
instructions are generated by computers?
(b) How Fetch execution overlap is achieved in 8085? Explain by giving suitable timing [3]
diagram.

Q2 (a) Which are the status signals available in 8085? What are their functions? [2]
(b) Six unpacked BCD numbers are given at random in 0C20H. Write a program to form the [3]
largest 6-digit number which can be formed by them and keep it in 0C40H.

Q3 (a) How a given BCD count in a register is decremented / incremented while programming [2]
8085.
(b) Write a program to choose only BCD numbers from a group of 12 bytes residing in [3]
locations starting from 0C20H and add them. Store the sum in BCD in location starting
0C41H.

Q4 (a) What is meant by folded memory? How it could be avoided in a reliable microprocessor [2]
system?
(b) How do you interface 2K RAM with 8085, with starting address 4000 H? [3]

Q5 (a) What is the advantage of Interrupt driven I/O operation over the Status check I/O. [2]
(b) 100 bytes are residing in memory location starting from 2400H. Write a 8085 based [3]
program to output them serially at SOD pin LSB first MSB last at regular interval of 20msec

Q6 (a) Why interrupt acknowledge signal is generated by 8085 in the following cases [2]
i) 8085 is interrupted using vectored interrupts pins like RST 5.5 RST 6.5 RST 7.5.
ii) 8085 is interrupted using non-vectored interrupt pin INTR
(b) Using RST 7.5 interrupt, 16 bytes (maximum value of each data can be only 0CH) are to be [3]
inputted through port no. 21H. Write an ISR to input each byte, multiply by 8, convert it
to BCD, again multiply it by 10 and store them in locations starting from MULTIDATA.
Ensure the interrupts are disabled after receiving 16 bytes.

:::: 10/09/2018 E ::::::


BIRLA INSTITUTE OF TECHNOLOGY, MESRA, RANCHI
(MID SEMESTER EXAMINATION)

CLASS: BE SEMESTER: IV
BRANCH: ECE SESSION : SP/2019

SUBJECT : EC4205 MICROPROCESSORS AND MICROCONTROLLERS

TIME: 1.5 HOURS FULL MARKS: 25

INSTRUCTIONS:
1. The total marks of the questions are 30.
2. Candidates may attempt for all 30 marks.
3. In those cases where the marks obtained exceed 25 marks, the excess will be ignored.
4. Before attempting the question paper, be sure that you have got the correct question paper.
5. The missing data, if any, may be assumed suitably.
-------------------------------------------------------------------------------------------------------------------------------

Q1 (a) Why all the registers connected to W bus in SAP-1 shall be Tri-state enabled? [2]
(b) Differentiate between Hardware Control Matrix and Software Control Matrix, mentioning [3]
the relative merits and demerits. Give an example of Software Control Matrix technique.

Q2 (a) Explain the functions of WZ register pair in 8085 Architecture, mentioning at least four [2]
examples of instructions where they are used.
(b) What is meant by Folded Memory in a Minimum System? Why and how it has to be avoided [3]
in a reliable Microprocessor based system?

Q3 (a) Write a subroutine to generate a Time delay of 9 microseconds, assuming the Clock [2]
frequency is 2 Mega Hertz.
(b) A string of 36 bytes are residing in locations starting from ARRAY. Write an 8085 based [3]
program to select only the odd bytes among them and add them together and keep the
sum in 2 locations starting from ODDSUM and also to keep the count (in BCD) of added
bytes in ODDCOUNT.

Q4 (a) What does an XTHL instruction do? Demonstrate its utility with a sample program. [2]
(b) A string of bytes resides in locations starting from STRING and ends with a Carriage Return [3]
0DH.Write an 8085 based program to count the number of bytes in the string(excluding
0DH) and store the count (in BCD) in location STRINGCOUNT.

Q5 (a) What are the two purposes for which a RIM instruction is used? [2]
(b) Assume data bits are arriving at a synchronous rate of 250 bits per second at SID pin of [3]
an 8085, with MS bit first and LS bit last. Write a program to input 240 bytes of data
through the SID pin and store them in locations starting from DATA. Before starting the
inputting of bytes, send a Start Transmit positive pulse of duration 9 microseconds to the
external input device through the SOD pin. Assume that the required Time delay routines
are available.

Q6 (a) Differentiate between Vectored Calls and Vectored Interrupts. Also mention why they [2]
are termed Vectored.
(b) A rain sensor output is connected to the RST 7.5 interrupt pin of an 8085 and the wiper [3]
motor is controlled by the SOD pin of the same 8085. Write a program to start the wiper
after 3 seconds of rain detection by sending a high signal of 5 volts through the SOD pin
and stop it after 1 minute by sending a 0 volt through the SOD pin. Assume that all the
required Time delay routines are available.

:::: 06/03//2019 E::::::


BIRLA INSTITUTE OF TECHNOLOGY, MESRA, RANCHI
(END SEMESTER EXAMINATION)
CLASS: BE SEMESTER : V
BRANCH: CSE SESSION : MO/18

SUBJECT: EC4205-MICROPROCESSOR & MICROCONTROLLER


TIME: 03:00 FULL MARKS: 60

INSTRUCTIONS:
1. The question paper contains 7 questions each of 12 marks and total 84 marks.
2. Candidates may attempt any 5 questions maximum of 60 marks.
3. The missing data, if any, may be assumed suitably.
4. Before attempting the question paper, be sure that you have got the correct question paper.
5. Tables/Data hand book/Graph paper etc. to be supplied to the candidates in the examination hall.
----------------------------------------------------------------------------------------------------------------------------------

Q.1(a) What is meant by variable machines cycle? How is it achieved? [2]


(b) What are the two functions of TMP register connected to ALU section in 8085? [4]
(c) i) With a neat sketch, explain how the address and data buses are demultiplexed out in an 8085 based [6]
microprocessor system.
ii) Which are the control signals available in 8085? What are their functions?

Q.2(a) Explain the various steps involved in executing a DAD D instruction. [2]
(b) Explain the various flags in the PSW register of 8085? Write a delay subroutine using DCX Rp instruction. [4]
(c) Write a program to count the no. of times odd parity numbers appear as memory pairs. (count shall be [6]
in BCD) in a block of 24 nos. residing in locations starting from DATAHERE and keep the count in location
ODDPARITYCOUNT.

Q.3(a) What are the two functions for which a ‘RIM’ instruction is used? [2]
(b) Differentiate between hardware and software interrupts in 8085 and explain their applications. [4]
(c) Interrupt requests are arriving at RST 6.5 pin, at a rate of 200 requests/second. Write a program to [6]
utilize these pulses, to design a real time clock, which will count up to 1 hour. Keep the count of
seconds, minutes and hour in 3 memory locations SECOND, MINUTE and HOUR respectively. Once 1 hour
is over, disable the interrupts. Assume interrupting pulses are sufficiently long enough to be recognized.

Q.4(a) Explain the difference between port A and port C of 8255. [2]
(b) Interface an 8255 PPI with 8085 with control register address 43H. What will be the status of A8 – A15 [4]
pins during the execution of IN and OUT instructions?
(c) An 8-bit D/A converter is connected to port A of 8255 chip. Write an 8085 program to generate a voltage [6]
waveform in which the voltage rises linearly from –3V to +3 volts and decreases to –3V at the same rate.
The cycle repeats itself.

Q.5(a) Write down the control word of 8253 timer and explain the function of each bit. [2]
(b) Explain the various modes available in 8279 for display and keyboard. [4]
(c) Write a program to design a clock, which will count up to one hour. Once an hour is reached the count [6]
as to be stopped. Use 8253 timer to interrupt the CPU at a rate of 500 times per second. Clock frequency
is 2 MHz. Gate of the timer is connected to PCo of an 8255.

Q.6(a) What do you mean by pipelined architecture? How is it implemented in 8086? [2]
(b) Explain the physical address generation in 8086 by giving suitable example. [4]
(c) Explain the functions of various resisters of 8086. [6]

Q.7(a) Write down the features of 8051 microcontroller. [2]


(b) Explain the Internal RAM structure of 8051 microcontroller. Differentiate between byte address and bit [4]
address.
(c) Write a program to perform the following. [6]
i. Keep monitoring P1.2 until it becomes high.
ii. When P1.2 becomes high write value 45H on P0.
iii. Send a high to low pulse to P2.3

******26.11.18******E
BIRLA INSTITUTE OF TECHNOLOGY, MESRA, RANCHI
(END SEMESTER EXAMINATION)
CLASS: BE SEMESTER : V
BRANCH: CSE SESSION : MO/19

SUBJECT: EC4205-MICROPROCESSOR AND MICROCONTROLLER


TIME: 3 HOURS FULL MARKS: 60

INSTRUCTIONS:
1. The question paper contains 7 questions each of 12 marks and total 84 marks.
2. Candidates may attempt any 5 questions maximum of 60 marks.
3. The missing data, if any, may be assumed suitably.
4. Before attempting the question paper, be sure that you have got the correct question paper.
5. Tables/Data hand book/Graph paper etc. to be supplied to the candidates in the examination hall.
----------------------------------------------------------------------------------------------------------------------------------

Q.1(a) What is meant by variable machines cycle? How is it achieved? [2]


Q.1(b) What is the function of ALE pin in 8085? Explain by giving suitable diagram. [4]
Q.1(c) Which are the status signals available in 8085? Which status do they reflect? What are their functions? [6]

Q.2(a) What will be the status of A8 – A15 pins during the execution of IN and OUT instructions? [2]
Q.2(b) Explain the various steps involved in executing a CALL instruction. [4]
Q.2(C) Write a program to choose only BCD numbers from a group of 12 bytes residing in locations starting [6]
from 0C20H and arrange them in descending order in location 0C41H. Keep the count (BCD) in 0C40H.

Q.3(a) What is the advantage of Interrupt driven I/O operation over the Status check I/O. [2]
Q.3(b) Explain DI and EI instruction by giving suitable examples. [4]
Q.3(c) Interrupt requests are arriving at RST 6.5 pin, at a rate of 200 requests/second. Write a program to [6]
utilize these pulses, to design a real time clock, which will count up to 1 hour. Keep the count of
seconds, minutes and hour in 3 memory locations SECOND, MINUTE and HOUR respectively. Once 1
hour is over, disable the interrupts. Assume interrupting pulses are sufficiently long enough to be
recognized.

Q.4(a) What is meant by BSR mode in 8255? [2]


Q.4(b) Explain the principle of Successive approximation A/D Converter by giving suitable diagram. [4]
Q.4(c) An 8-bit A/D converter is connected to port A of 8255 chip. Write an 8085 program to input 240 bytes [6]
of ADC data at regular interval of 30 seconds and output them to a display connected to port B. Use
PC7 pin for sending SOC and PC0 pin for checking EOC. Assume delay subroutine for 30 second is
available at 3000H.

Q.5(a) Explain the architecture of 8253 timer. [2]


Q.5(b) What is 2key lockout and N key rollover in 8279? [4]
Q.5(C) What are the effects of gate signals in different modes of 8253 timer? Explain by giving suitable [6]
waveforms.

Q.6(a) What do you mean by pipelined architecture? How is it implemented in 8086? [2]
Q.6(b) Explain the concept of segmented memory? What are its advantages? [4]
Q.6(C) Explain the functions of various resisters of 8086. [6]

Q.7(a) Explain PSW SFR of 8051. [2]


Q.7(b) Explain SJMP, AJMP and LJMP instructions of 8051. [4]
Q.7(c) Write a 8051 based program to transfer 10 bytes residing in external RAM starting from 2400H to [6]
internal RAM starting from 30H. Use Register bank 3 only for counting and other purposes.

:::::25/11/2019:::::M

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy