0% found this document useful (0 votes)
18 views17 pages

MMC Pyq

The document contains examination questions related to microprocessors and microcontrollers, covering topics such as register file structure in PIC microcontrollers, addressing modes in 8051, and the architecture of ARM processors. It includes both short answer questions and detailed problems requiring programming and explanation of concepts. The questions are structured in parts, with mandatory short answers and optional detailed responses.

Uploaded by

Sandeep
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)
18 views17 pages

MMC Pyq

The document contains examination questions related to microprocessors and microcontrollers, covering topics such as register file structure in PIC microcontrollers, addressing modes in 8051, and the architecture of ARM processors. It includes both short answer questions and detailed problems requiring programming and explanation of concepts. The questions are structured in parts, with mandatory short answers and optional detailed responses.

Uploaded by

Sandeep
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/ 17

7.

(a) •
Explain Register File Structure in PIC microcontroller.
What are CPU registers? Explain. (7 .5)

Roll No ...................... . Total Pages : 4

008403
(b) What are the different addressing modes supported by
May 2023
the 8051? Explain with examples. Enlist all the ·
B.Tech. (ECE) IV SEMESTER
instructions that use stack memory and program
Microprocessors and Microcontrollers (ECC-03)
memory. (7.5)
Time : 3 Hours] [Max. Marks : 75

Instructions :
1. It is compulsory to answer all the questions (1.5 marks
each) of Part-A in short.
2. Answer any four questions from Part-Bin detail.
3. Different sub-parts of a question are to be attempted
adjacent to each other.
4. Assume data/information wherever required.

PART-A

1. (a) After the execution of the instruction XOR AX, AX


what will be the contents of Accumulator, carry, and
zero flags? (1.5)
(b) What is Segmentation? Why is it required? List all
possible segments of 8086. ( 1.5)
(c) The memory address of last location of a 4 K byte
memory chip is FFFFH. Find the starting address.
(1.5)
(d) Justify the need and method to demultiplex the bus
ADO-AD 16. (1.5)
(e) What is Interrupt service routine? How does it help in
servicing the interrupts? (1.5)

008403/185/111/113 4 008403/185/111/113 ~[P.i.o.


@ ' •
(f) In the 8051 microcontrollers, what is the register bank 3. (a) What are the key components of an ARM, and how do
address range if RSO = 1 and RSI= 0? (1.5) they work together to execute code? (7 .5)

(g) Enlist differences in RISC and CISC processors with (b) What is a programmable interrupt controller? List its
appropriate examples. (1.5) various features and cijscuss all the control words
required for its configuration. (7 .5)
(h) How many times the instruction CPL A is executed in
the following program of an 8051? 4. (a) What do you mean by pipelined architecture? How is
MOVA,#FOH it implemented in 8086? Draw and discuss the internal
block diagram of the 8086 microprocessor. (7.5)
MOV Rl, #60
(b) How does the cache ,hierarchy work, and what are the
NEXT: MOV R6, #lOH different levels of cache memory? What are the benefits
AGAIN: CPLA of using cache memory in a computer system? (7.5)

DJNZ R6, AGAIN 5. (a) What is the difference between the JMP and CALL
DJNZ RI, NEXT (1.5) instructions in the 8086 microprocessor, and when
would you use each one? How does the LOOP
(i) Discuss how instruction pipelining is implemented in
instruction work in the 8086 microprocessor? Explain
PIC microcontroller ? (1.5)
with suitable examples. (7 .5)
(j) Enlist the steps the microprocessor goes through when (b) Interface an 8255 with 8086 to have port A address
a call instruction is executed. (1.5) 00, port B address 01, port C address 02, and CWR
address 03. Explain the different modes of operation
PART-B
of 8255. (7.5)
2. (a) What is virtual memory, and how does virtual memory
differ from physical memory, and why is it necessary?
6. (a) Write a program to find the number of even and odd
numbers from an array of twenty 8-bit numbers. The
What are the benefits and drawbacks of using virtual
array starts from a 15000H memory location. Use
memory? (7 .5)
instructions of 8086. (7 .5)
(b) What is the role of timers and counters in the 8051
(b) Draw the schematic diagram to interface a switch and
microcontroller? List and explain all the special function
LED with a microprocessor or microcontroller. Write a
registers associated with the configuration _of the timer
program to display the value of the switch to LED
module. (7 .5)
continuously. (7 .5)

008403/185/111/113 2 008403/185/111/113 3 [P.T.O.


of used in
memnory
instruction in 5. (a) Explain various types
Detine the use of
MOvY and MOVC microcontrollers. (5)
) (1.5)
8051Microcontroller. (1.5) (b) Draw and explain the functional block diagram of
e Why cache memorv
is sed in devices? cxanples. 8259 interrupt controller with various priority modes.
few
addressine modes
of8086 with (L.5) (10)
) Descnbe

Give Example.
(a Gfeivwe d (c (b) (a
interrupt? 6.
understand by (2) Elaborate ARM microcontroller -iecture with neat If
h What do you (1.5) (10)
diagram. List
location of a 1 K (b) List out the differences between 286 & 486 Pentium
chips the
memory address
of the last Specify the
the
he as FBFFH. processo. (5) are
given
byte memory
chËp is (1.5)
Explain
the
starting address.

Explain the operation of 8255 with the neat diagram and


Port
PART-B
dlso explain the various mode of operation. (15) IO
architectures and to chip
of 8086
diagram &
4 (a) Draw the block
0845/1927 registr esntial required meory progam Compare
feahures available. (10)
explain the muliprocessing
segmented memory. Explain is PART-
(b) Explain the concept of
the physical address formation in
8086. (5)
avilbe features
in of
maupke size
2
c1024 ounter Memory
K x
and
3
microcontroller
(a) Discuss all the registers present in PIC 4
8051. RISC
alongwith their applications. (5)-,
(6) Wite a program to generate a delay of 2 ms for the
bytofes bits, stack MaIpOe.d
clock frequency of 2 MHz. (10)
how pointer.
Explain the architecture of 8051 microcontrollers ith
the help of diagram. List different addressing modes of 9YPT.o archite u .
(1.5) (1.5) (1.5) meory? many (1.5) (1.5)
8051 with an example.
TECHNOl.0GY, YMCA,
J. C. BOSE UNIVERSITY OF SCIENE AND
FARIDABAD (|ARYANA), INDIA
SESSIONAL-I (March 2025)
Microprocessors &Microcontrollers
(ECC 03)

MM: 15 TIME: 90 MIN

Q1. Orei Athe questions are compuleon. Assume data wherever needed.
Dcsign microprocessor-based memory interfacing circuit, including a 3
mieroprocessor, 4 KB RAM 8KB ROM and Address decoding logic (using 741.S13* (HO]
decoder or logic gates). Explain how microprocessor accesses RAM and ROM using
chip select(CS), RD, WR. MEMR, and MEMW signals.
Q2. Given the following subroutine 3 [CO1]
MAIN: CALL SUB in 8086:
SUB: MOV AL, 4OH
MOV AL, 2SH RET
HLT
What will be the final value of the accumulator (AL) after execution? Justify your
answer by explaining how the CALL-RET mechanism works in the 8086.
Q3. Consider the following 8086 program stored in memory starting from addrcss 3000H. 3 [Co1]
Explain how the CMP and JNC instructions affect the flags and program flow:
MOV SI, 4000H
MOV AL, (SI)
CMP AL, 50H
JNC NEXT
MOV AL, OFFH
NEXT: MOV [S00OH], AL
HLT
) Explain how the CMP and JNC instructions affect the flags and program flow in the
8086 processor.
(ii) Analyzc thc output for two diferent memory values:
(i) If memory location 4000H contains 45H, what will be stored at 5000H?
(ii) If memory location 4000H contains 554, what willbe stored at 5000H?
Q4. An 8255 PPI is interfaced with an 8086 microprocessor, where Port B (Input) is 3
connected to a push-button switch and Port C(Output) is connected to a buzzer |CO2]
Write an 8085 program to: [HO]
Continuously monitor the switch status
If he switch is pressed (PBO - 1), (urn ON the buzzer (PCO = 1)
If the switch is released (PBO=0), tum OFF the buzzer (PC0=0)

Q5. Explain the interrupt structure of the 8086 microprocessor with a detailed classification 3
of interrupts. (C02]
(LOJ
J.C. BOSE UNIVERSITY OF SCIENCE AND TECHNOLOGY, YMCA,
FARIDABAD (FIARYANA), INDIA
SESSIONAL-II (May 2025)
Microprocessors & Microcontrollers (ECC 03)
MM: 15 TIME: 90 MIN

Note: All the questions are compulsory. Assunie dat: wnerever needed.
Q1. Explain
List andeach
explain
mude
the different addressing modes supported by the 8051 microcontrollers. 3 (CO3]
[LOJ
with suitable examples.
Q2. Write an assembly language program for the 805 1to store the numbers OAH to OFH into 3 [CO1)
internal RAM locations 50H to 55H (use stack). Then, the data will be retrieved and stored
in locations 60H to 65H.
Q3. Describe the internal memory organizatior: of the 8051 microcontrollers. How are the 3 [CO3]
|LO)
general-purpose registers, bit-addressable memory, and Special Function Registers (SFRS)
structured and accessed within the Memory map?
Q4. Write a program for the 8051 microcontrollers to use Timer I in mode 1 to generate a 1- 6 |CO2
[HO|
second delay via an interrupt and configure external interrupt o(INTO) as edge-triggered
to toggle an LED connected to pin P1.0 upor: each trigger. Provide the necessary register
configurations and explain the role of timers and Interrupts in the program.

Roll No....................... . Total Pages : 3

305403
May, 2019
B.Tech. IV SEMESTER
Microprocessors and Microcontrollers (ECC-03)

Time : 3 Hours] [Max. Marks : 75

Instructions :
1. It is compulsory to answer all the questions (1.5 marks
each) of Pan-A in shon.
2. Answer any four questions from Part-Bin detail.
3. Different sub-pans of a question are to be attempted
adjacent to each other.

PART-A

1. (a) Explain the difference between RISC & CISC


processors. (1.5)
(b) Describe 8051 flag bits and PSW register. (1.5)
(c) Specify the bit of control word for 8255 which
differentiates between the 1/0 mode & BSR mode.
(1.5)
(d) Define Arithmetic Coprocessors. (1.5)
(e) What do you understand by physical address
generation in 8086? (1.5)

305403/350/111 /156 [P.T.O.

1· .
2115

-
(f) •
Calculate the no of chips needed to design 8 K byte
memory if the memory chip size is 1024xl. (1.5)
s. (a) Desle ARM architecture with neat diagram.
(10)

(b) Write an algorithm for Timer Oof 8051 microcontroller


is to be programmed in mode 1 for creating a square
(g) Define the use of MOVX & MOVC instruction in (5)
wave.
8051 microcontroller. (1.5)
(h) When 8086 microprocessor is interfaced to 8253 a (a) Draw and explain the block diagram of 805 1
6.
programmable interval timer. Then the maximum (10)
microcontroller.
number by which the clock frequency on one of the (b) Write a program for add unsigned numbers found in
timers is divided by __. (1.5) internal RAM location 20H, 21 H, 22H store the result
(i) Explain what is interrupt latency? How can you in RAM location 41H (MSB), 40H (LSB) using 8051.
(1.5)
(5)
reduce it?
(j) Define bit addressable RAM in 8051. (1.5)
7. (a) Explain different types of memory used in
Microcontrollers & describe the concept of virtual
PART-B memory. (10)

2. (a) Write a program for division of two BCD no using (b) How can you differentiate between PIC & ARM
(5) Microcontroller architecture? (5)
8085 processors.
(b) What do you mean by interrupt? Describe addressing
modes of 8086 with examples. (10)

3. (a) List out the interrupt s available in 8086


Microprocessor. (5)
(b) Sketch and explain the interface of 8259 to tpe 8086
Microprocessor in minimum mode. (10)

4. Explain the 8255 PPI block diagram. List out the


different operating modes of 8255 with control word &
status word. (15)
2 305403/350/111 /156 3
305403/350/111 /156
0 0
Roll No ....................... . Total Pages : 3

015403
August/September 2022
B.Tech. (EN C) IV SEMESTER
Microprocessors and Its Application (ECP-403)

Time : 3 Hours] [Max. Marks : 75


0 0
Instructions : ·
1. It is compulsory to answer all the questions (1.5 marks
each) of Part-A in short.
2. Answer any four questions from Part-B in detail.
3. Different sub-parts of a question are to be attempted
adjacent to each other.

PART-A
1. (a) List out all the vectored interrupts of 8085 with vector
address. (1.5)
(b) Define instruction cycle and machine cycle.
I
(1.5)
(c) Explain the instructions PUSH D and RAL. (1.5)
(d) Specify the number of times the following loops are
Q @ executed.
MVI A, 17H
LXI H, 2000H
MVI B, 15H
LOOP: ADD M
DCRB
JNZ LOOP (1.5)

015403/100/111/336 \°'([P.T.0.
e 0
• (e) List the operating modes of the 8255A PPI. (l.S) S. (a) Define control words of 8257 DMA controller. (5)
(f) Mention the operating modes of 8254 Programmable (b) Draw and explain the functional block diagram of
Interval Timer. (1.5) 8259 interrupt controller with various priority modes.
(g) What are the three instructions which can be used to (10)

make the accumulator content zero? (1.5)


(h) Explain the program counter and stack pointer. (1.5) 6. (a) Explain the architecture of 8086 with neat diagram.
(i) What is a subroutine program? (1.5) @ (10)

G) What are the different types of instructions in 8086


e (b) Explain memory segmentation and physical address
microprocessor? (1.5) generation in 8086 microprocessor. (5)

PART-B 7. (a) Write an 8086 assembly language program for


conversion of ASCII to binary number. ( 10)
2. (a) Draw the timing diagram of instructions given below:
(i)ADD M. (b) Explain the following assembler directives:

(ii) LHLD 4000H. (10) (i) OFFSET.


(b) Describe the functions of different flags of ALU of (ii) ASSUME.
INTEL 8085 microprocessors. (5) (iii) EVEN.
(iv) DT.
3. (a) Write an 8085 assembly language program to count
(v) · EXTRN.
ee
(5)
the even numbers which is stored in memory location
5000H. Assume that total number is 20. (5)
(b) Describe the various types of addressing modes in
8085 with suitable examples. (10)

4. Explain the operation of 8255 with the neat diagram and


also explain the various mode of operation. (15)

015403/100/111/336 2 015403/100/111/336 3

I
r -1,
ASSIGNMENT
8051 MODULES

1. An 8051 microcontroller operates with a 12 MHz crystal oscillator. Write a subroutine to


generate an accurate time delay of 1 second using a timer.
2. Using Timer 0 in mode 2 (auto-reload mode), write an 8051 program to generate a 4 kHz
square wave on pin P1.2, assuming a 12 MHz oscillator.
3. Write a program to generate a 5 kHz square wave on pin P1.0 using Timer 1, assuming a 12
MHz crystal oscillator.
4. Write a program to implement an up-counter that counts from 00 to 99, incrementing every
second. Use Timer 1 to create the 1-second delay.
5. A switch is connected to pin P1.2 of the 8051 microcontroller. Write a program using Timer
0 in mode 1 to generate the following square wave frequencies on pin P1.7 based on the
switch status:
If SW = 0, generate a 500 Hz wave
If SW = 1, generate a 750 Hz wave
6. Write an interrupt-driven program for the 8051 (XTAL = 11.0592 MHz, baud rate = 4800)
to perform the following tasks:
(i) Receive serial data and send it to Port 0.
(ii) Read input from Port 1, transmit it serially, and copy the same to Port 2.
(iii) Use Timer 0 to generate a 5 kHz square wave on pin P0.1
7. Write a program to generate a square wave with a time period of 160 ms on pin P2.2. At the
same time, continuously send the values 55H and AAH alternately to Port 1.
8. Develop an interrupt-driven program where serially received data is sent to Port 2, and Timer
0 toggles an LED connected to P1.6 every 1 second.
9. Write an interrupt-based 8051 program to continuously read data from Port 1 and send it to
Port 2 while Timer 0 generates a 3 kHz square wave on a separate output pin.
10. In an 8051 microcontroller with a 12 MHz crystal oscillator and SMOD = 0, Timer 1 is
configured in mode 2 for serial communication. If the auto-reload value in TH1 is 155
(decimal), calculate the resulting baud rate.
11. Write a program to continuously read a value ‘x’ from Port 1, compute x², and output the
result to Port 2.
ASSIGNMENT
8086
Q1. Obtain the physical address for?
(a) 5430: 561BH
(b) 5A42: 0038H
Q2. In the 8086 microprocessor, assume:
DS=1300 H, SS=1400 H, BP=1500H, SI=0100H.
Determine the address accessed by each of the following instructions:
(a)MOV AX, [BP+200H]
(b)MOV AL, [BP+SI-200H]
(c)MOV AX, [SI-0100H]
Q3. Write a program for 8086 for adding two multiple-byte numbers. (8 BYTES LONG).

Q4. Write a program for 8086 for moving a block of data from one location to another using
three different methods.

Q5. Write a program for the multiplication of two 16-bit numbers stored in memory
locations. The result is 32-bit and is to be stored in the memory location. Assume all
memory locations.

Q6. Write a program for calculating the average of two values. The result is to be stored in a
defined memory location.

Q7. What are assembler directives? List and explain all.

Q8. Write a program to find the number of even numbers and the number of odd numbers
out of the given 20 numbers.

Q9. Write a program to find out whether a given byte is in the string, and find out the
relative address of the byte from the starting location of the string.

Q10. A string of 6 data bytes is stored starting from memory location 2050H. The string
includes some blanks. Write a program to eliminate the blanks from the string.

Q11.Write a program to add six data bytes stored in memory location starting at 2060 and
display the sum at the output port if the sum does not generate a carry. If a result
generates a carry, it stops the addition and displays 01H at the output port.

Q12. A set of 8DB is stored in the memory location starting at 2050H. Check each data byte
for bits D7 and D0. If D7 or D0 is 1, reject the data byte; otherwise, store the data
bytes at memory locations starting at 2060H.

Q13. What is a machine cycle? Draw and explain machine cycles for the following
operations in the maximum and minimum modes of the 8086:
1. Opcode fetch
2. Memory Read
ASSIGNMENT
8086
1. Write a program to find the number of elements that are divisible by 3 from an
array of twenty 8-bit numbers. The array starts from the 15000H memory
location. Use the instructions of the 8086.
2. Interface an 8255 with an 8086 to work as an I/O port. Initialize port A as output
port, port B as input port and port C as output port. Port A address should be
0740H. Write a program to sense switch positions SW0-SW7 connected at port B.
The sensed pattern is to be displayed on port A, to which 8 LEDs are connected,
while the port C lower displays the number of on switches out of the total eight
switches.
3. Given a series of numbers, calculate the sum of the even numbers only. The
length of the series is available in memory location 9000H. The series begins at
9001H. Stored the result in the assumed location.
4. Write an assembly language program to add 10 data bytes stored at memory
locations starting from 2050H. Store the 16-bit result in locations 2070 and 2071.
5. Write a program using 8085 instructions to output 10 data bytes on the printer
connected at PORT A of 8255 using status check I/O programming mode.
Numbers are stored in memory locations starting at 2050H.
6. It is intended to design an 8085 μP-based controller to continuously keep the
furnace temperature in the range of 700 to 800 ° centigrade. If the temperature of
the furnace is less than 700 °, one sensor connected to the RST 5.5 pin gives an
interrupt signal to the processor. The interrupt service routine (ISR) turns on the
heater of the furnace. Similarly, another sensor output is connected to pin RST6.5.
If the temperature of the furnace is more than 800 °, ISR turns off the heater of the
furnace. Draw a neat schematic diagram and write an assembly language
program to achieve the desired result.
7. Write an 8086-assembly language program to check whether two strings, one
stored from the address 2000H: 1000H in the data segment and the other stored
from the address 2000H: 3000H, are equal or not. If they are equal, store the value
00H in AL. Otherwise, store the value 01H in AL.
8. Write a subroutine to set bits PC7 and PC3 and reset them after 10ms. Assume all
port addresses. Write the delay subroutine also. (Use BSR control word).
9. A string of readings is stored in memory locations starting from 20700H, and the
end of the string is indicated by the byte 0DH. Write a program to check each
byte in the string and save the bytes in the range of 30H to 39H (both inclusive) in
memory locations starting from 20900H.
10. A microprocessor has a 16-bit address bus A15–A0, where A15 is the MSB and
A0 is the LSB, and 64KB of memory. Unfortunately, two address lines, namely
A13 and A6, have become faulty and are stuck at logic 0. In such a situation,
which of the following address locations cannot be accessed in the memory?
a. 0000H b. 1FFFH c. 1F1FH d. None of the above
11. How many address lines are necessary to address two megabytes of memory? The
memory address of the last location of an 8K byte memory chip is FFFFH. Find
the starting address.
12. Find the contents of A and carry flag after the execution of the following
instructions. Assume [A] =B5H and [C] =1 before the execution of instructions.
ADD A, #5EH; SUBB A, #91H; ADDC A, #0FCH.
13. If [BX] =0050H, [DS] =2000H, [00500H] =80H, [20050H] =08, [CX] =5000H,
then after MOV CL, [BX] instruction is executed, evaluate the contents of the CX
register?
14. Write an ALP to calculate the sum and average of 10 numbers stored at 8000H.

You might also like