MMC Pyq
MMC Pyq
(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
(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)
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.
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)
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· .
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)
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)
015403
August/September 2022
B.Tech. (EN C) IV SEMESTER
Microprocessors and Its Application (ECP-403)
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)
015403/100/111/336 2 015403/100/111/336 3
I
r -1,
ASSIGNMENT
8051 MODULES
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.
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.