MPMC Q.bank
MPMC Q.bank
MPMC Q.bank
KUMARAMANGALAM, NAMAKKAL
DEPARTMENT OF ECE
QUESTION BANK
PART A
• Six status or condition flags (OF, SF, ZF, AF, PF, CF)
• Three control flags ( TF, DF, IF)
4. Given that (BX)=1058 (DI)=10A5 displacement=1B57 (DS)=2100.Determine the effective address and physical
address for the following addressing modes. A)register indirect b) relative based indexed.(MAY 2019)
a)Register indirect: Effective address =BX+DI= 20FD
Physical Address=DS*10+BX=22058
b)Relative base index: effective address = BX+DI + displacement=2BAF
Physical Address= DS * 10H + BX + DI + displacement=24C54
5. What is an assembler and linker? (Nov 2014)
The assembler translates the assembly language program text which is given as input to the
assembler to their binary equivalents known as object code.
A linker is a program used to join several object files into large object files.
6. Define Stack and stack pointer? (May 2016, May 2017, May 2018)
A stack pointer is a small register that stores the address of the last program request in a stack. A
stack is a specialized buffer which stores data from the top down. As new requests come in, they "push
down" the older ones
7. What is the need for interrupts in microprocessor operation? (Nov 2018)
Interrupt is the method of creating a temporary halt during program execution and allows
peripheral devices to access the microprocessor. It responds to that interrupt with an ISR Interrupt
service routine, which is a subroutine program.
8. What are byte and string manipulation? (Nov 2018)
Operations such as move, scan, store, load, compare performed on strings is called string
manipulation. Byte instructions are used to perform operations where data bits are involved.
9. Write a 16 bit delay program to generate a delay of 100 milli seconds using 8086 Microprocessor. (May 2017,
May 2018) (April 2022)
MOV CX, COUNT 4 states
L1 : DEC CX ` 2 states
NOP 3 states
JNZ L1 16 states
No. of clock cycles for execution of the loop once =2+3+16 = 21
Time required to execute the loop once is 21*.1=2.1 micro sec.
COUNT=required delay (td), N* T
Required count = 100*10^-3
2.1*10^6 = 47.619*10^3 = 47619 = BA03
10. Give example for the following modes of addressing: i) Relative based indexed mode ii) Direct addressing.
(NOV/DEC 2019)
Relative based indexed mode: In this addressing mode, the offset address of the operand is
computed by summing the base register to the contents of an Index register. Ex: MOV CL, [BX + SI].
Direct addressing: In this mode, the address of the memory location is supplied as a part of instruction
directly Ex:MOV CL, [4321].
11. List the types of interrupts in 8086. (Nov 2020, April 2021)
An interrupt is used to cause a temporary halt in the execution of program.
It consists of following groups
• Hardware interrupt
• Non-maskable interrupts
• Maskable Interrupt
• Software interrupt
12. Compare Procedure and Macro.
Procedure Macro
Procedure contains a set of instructions which can be Macro definition contains a set of instruction to support
called repetitively which can perform a specific task. modular programming.
CALL and RET instruction/statements are required in CALL and RET instruction/statements are not required
procedure. in macro.
Assembler directive PROC is used to define procedure Assembler directive MACRO is used to define macro
and assembler directive ENDP is used to indicate the and assembler directive ENDM is used to indicate the
end of procedure. end of Macro.
Less memory is required More mory is required
PART B ( 13 Marks)
CHAPTER I (0.5 UNITS)
1. Explain the internal architecture of 8086 and explain the functions of each block in detail. (April 2021,22)
2. Briefly describe about addressing modes of 8086. (Nov 2016, 2018, 2020, April 2021)
3. Explain in detail about the interrupts and interrupt service routine of 8086.Explain interrupt sequence for
8086 (16) (May 2016, Nov 2017, 2018, 2019) (April 2022)
4. Discuss the instruction set of 8086 in detail (April/May 2011,21,22)
5. i) Find the status of the CF and ZF flags after the execution of each of the following set of instructions.
Given that AX=4160H(ii) ADD AX, 9034H b) CMP AX, 0B08H c) XOR AL, AL d) MOV AL, 34H. (Nov
2019)
ii) Write a program for 8086 microprocessor that multiples two bytes and stores the result in in a chosen
memory location.
6. Write an 8086 ALP to sort out any given ten numbers in ascending and descending order.(Nov 2013)
UNIT II 8086 SYSTEM BUS STRUCTURE
PART A
1. What is meant by multiprocessor system?
If a microprocessor system contains two or more components that can execute instructions
independently then the system is called as multi-processor system.
2. Write the advantages of loosely coupled configuration over tightly coupled? (May 2019)
• Better system throughput by having more than one processor
• A greater degree of parallel processing can be achieved
• System structure is more flexible
• A failure in one module does not cause any breakdown of the system
3. Compare closely coupled and loosely coupled configurations. (May 2016)
Closely coupled Loosely coupled configurations
Here, the microprocessors share a common clock Here, each CPU may have its own bus
and bus control logic control logic.
9. How clock signal is generated in 8086? What is the maximum internal clock frequency of 8086? (Nov 2020, April
2021)
8086 requires an external clock generator/driver chip Intel 8254 to generate the 8086 clock input
signal. The 8086 divides the external clock connected at the CLK pin internally by three. Therefore for 5
MHz internal clock, the 8284 must generate 15 MHz at its output, which will be given to the CLK pin of
8086.
10. What is the function of MN/MX pin? (Nov 2020, April 2021)
MN/MX - Minimum/Maximum. This pin signal indicates the operating mode of 8086. When
MN/MX is high the 8086 operates in minimum mode and 8086 is configured to support small single
processor system. When MN/MX is low, the 8086 operates in maximum mode and 8086 is configured
to support multiprocessor system.
11. State the function of ALE signal in 8086. (Nov/Dec 2019)
Address Latch Enable (ALE) is the output pin of 8086. In is used to latch the address by
de- multiplexing (separate) address and data line from AD0-AD15, A16-A19 and
S7/BHE.
12. Write some examples for advanced processors. (May 2017, Nov 2017)
Some of the advanced processors can be given as Intel 80286,80386,80486, ARM
processors, SHARC processors
13. What is machine cycle? (Nov 2016)
It is the time required by the microprocessor to complete the operation of accessing the memory
devices or I/O devices. In machine cycle various operations like opcode fetch, memory read, memory
write, I/O read, I/O write are performed.
14. List two differences between maximum mode and minimum mode. (May 2018)
Minimum mode Maximum mode
A processor is in minimum mode when MN/MX’=1 A processor is in minimum mode when MN/MX’=0
There is a single microprocessor There may be more than one microprocessor
All control signals are generated by microprocessor All control signals are generated by bus controller 8244
itself
PART B ( 13 Marks)
CHAPTER I (0.5 UNITS)
1. (i) Draw the pin details of 8086 and explain the function of each pin. (Nov 2020, April 2021)
(ii) Give the functions of NMI, BHE and TEST pins of 8086. (Nov 2013)
2. Explain the system bus structure of 8086. Draw the timing diagram for interrupt acknowledgement
cycle. (May 2017, Nov 2017,Nov 2018)
3. Discuss about the multiprocessor configuration of 8086?(Nov 2016,May 2018)
4. Explain the maximum mode and minimum mode of operation of 8086. Explain the functions of various
signals used in these modes.(Nov 2015, Nov 2020, April 2021, April 2022)
5. Draw the timing diagram for the memory read machine cycle of 8086.Explain the function of the relevant
signals and discuss how each signal changes in the progress of the machine cycle. (Nov/Dec 2019)
UNIT III I/O INTERFACING
PART A
2. Compare memory mapped I/O and I/O mapped I/O interfacing techniques.
memory mapped I/O I/O mapped I/O interfacing
16-bit device address 8-bit device address
data transfer between any register and the ports data transfer between the I/O devices and the
processor.
same address space is used for both memory and separate address spaces are used for memory and
I/O device I/O device.
3. Give the various modes of 8254 Programmable Interval Timer. (May 2018)(April 2022)
Mode 0 (Interrupt on Terminal Count) , Mode 1 (Hardware Retriggerable One Shot), Mode 2
(Rate Generator) , Mode 3 (Square Wave Generator) , Mode 4 (Software Triggered Strobe), Mode 5
(Hardware Triggered Strobe)
4. What are the differences between LED and LCD display?(Nov 2018)
LED LCD
PN-junction device which discharges visible lights It is an optical device used for displaying information
when an electric charge passes through it. in the form of text and images.
LED monitor uses light-emitting diodes for backlights LCD monitor uses fluorescent backlights
5. What is Key bouncing? What are the methods to detect the denouncing? (May 2016).
Whenever a key is pressed or released once, it generates a transient response. These transient
variations may be interpreted as the multiple key pressures and responded accordingly by the
microprocessor system. To avoid this problem,the microprocessor should be made to wait for the
transient period (usually 10ms), so that the transient response settles down and reaches a steady state
6. How is DMA initiated? Or How DMA operation is performed with 8086. (Nov 2017).
Process of transferring the data from memory to peripheral device or from peripheral to memory
without CPU with the help of external hardware is known as DMA.
The 8086 microprocessor receives bus requests through its HOLD pin and issues grants
from the hold acknowledge (HLDA) pin.
7. What is the drawback of memory mapped I/O?(Nov 2016)
The big disadvantage of memory-mapped I/O devices is that they consume addresses in the
memory map. Generally, the minimum amount of space you can allocate to a peripheral is a four
kilobyte.
8. List the operating modes of 8255 A and 8237 A. (Nov 2013) (Nov 2015) (April 2022)
BSR mode: In this mode, any of the 8 bits of port C can be set or reset.
I/O mode: Mode 0- Simple I/O mode, Mode 1- I/O mode with Handshaking & Mode 2 -
Bidirectional data transfer mode.
Operating modes of 8237 A: Rotating Priority Mode, Fixed Priority Mode, Extended
Write Mode, TC Stop Mode, Auto Load Mode
9. Draw the format of read back command register of 8254. (May 2017)
14. What is the function of the following two signals in an ADC.(i)EOC,(ii) SOC
EOC [End of conversion]: ADC sends this high EOC signal to Micro-Controller to
indicate completion of conversion.
SOC [Start of conversion]: When High to low signal is appears to this pin of ADC,
ADC then starts conversion
15. What are the signals available for serial communication? (Nov 2020, April 2021)
In serial connection, a minimum of three lines are used for communication: transmit (TX),
receive (RX), and ground (GND). Some high-speed serial communication systems use
additional control signals for synchronization, such as CTS, DTR, and so on.
16. Define conversion time. (Nov 2020, April 2021)
It is the time required by the ADC to perform a complete conversion process. The
conversion is commonly started by a “strobe” or synchronization signal, controlling the
sampling rate
PART B ( 13 Marks)
CHAPTER I (0.5 UNITS)
1. Draw the block diagram and explain the operations of 8251 serial communication interface. Describe
Synchronous and Asynchronous mode of transmission. (Nov 2015, Nov 2017, May 2019, April 2022)
2. Draw and explain the functional block diagram of parallel communication interfacing chip. (May 2017)
3. Draw and explain the functional block diagram of keyboard & display controller. (Nov 2020, April 2021)
4. Draw the block diagram of programmable interrupt controller and explain its operations. (Nov 2015, Nov
2018)
5. Explain the internal architecture of 8237 Direct Memory Access Controller. (Nov 2016, 2018 May 2016,
2017, 2018, Nov 2020, April 2021)
6. Draw and explain the block diagram of alarm controller. (May 2016, May 2018)
7. Explain in detail about the traffic light controller in detail.
UNIT IV MICROCONTROLLER
PART A
1. What is the difference between microprocessor & microcontroller?(May 2014,Nov 2018) (April 2022)
11. How does 8051 differentiate between bit and byte addresses in its internal RAM? (Nov/Dec 2019)
The RAM memory of the 8051 microcontroller, which is divided into 3 areas such as banks, bit-
addressable area, and scratch-pad area. The 8051 contains 210 bit-addressable locations of which 128
are at locations 20Hto 2FH while the rest are in the SFRs
12. Write a program to mask the 0th & 7th bit using 8051. (Nov 2020, April 2021)
The source operand can be a register, in memory, or immediateORG 00H
MOV A, #FFH ; A = FFH = 255D = 11111111BANL A, #7E H ;
126 D= 7E H= 01111110B END
Input: FFH, Output: 7EH
13. Write a program to find the 2’s complement using 8051. (Nov 2020, April 2021)(April 2022)
MOV A, #55H
CPL A ; 1's complement ADD A, #01H ; 2's
complement
MOV R0,A
SJMP
14. What are the steps in interfacing an LCD with 8051 Microcontroller?(April 2022)
Connect port pins of 8051 to data lines of LCD
Configure LCD as two line display
Configure each character in 5x7 matrix
Store ASCII codes of the letters to be displayed
15. How to set 8051 in Idle mode? (Nov 2017)
PCON Register: Power control register
PCON (Power control) register is used to force the 8051 microcontroller into power saving mode.
Power control register of 8051 contains two power saving mode bits and one serial baud rate bit.
PART B ( 13 Marks)
CHAPTER I (0.5 UNITS)
1. Draw the architecture of 8051 and explain? (May 2018, Nov 2016, 2017, 2020, April 2021)
2. Explain in detail the memory organization of 8051 microcontroller. (Nov 2014)(April 2022)
3. Explain in detail about the Special Function Registers in 8051.Explain each register with its format and
functions. (May 2017, Nov 2018)
4. Discuss the ports and its circuits of 8051. How input/output ports and pins help in circuit of microcontroller?
(Nov 2017) (Nov 2018)
5. Briefly explain about addressing modes of 8051 with one example. (Nov 2020, April 2021, April 2022)
6. List the various instructions available in 8051 microcontrollers. (Nov 2020, April 2021)
7. Find the content of A register, after the execution of each of the following set of instructions, given the
contents of A and B registers, A = A5 H , B= 01H. (a) RLA b) SWAP A c) MUL AB d) ADD A, #22H.
(April 2022)
1. Write short notes on interrupts in 8051? / List of 8051 interrupts with its priority.
(May 2017)
Five interrupts are provided in 8051. Three of these interrupts are generated automatically by
internal operations: Timer flag 0, Timer flag 1, and the serial port interrupts (RI or TI). Two
interrupts are triggered by external signals provided by the
circuitry that is connected to the pins INT0 and INT1 (port pins P3.2 and P3.3).
2. What is the purpose of Interrupt priority (IP) Control register in 8051? (May 2017)
Register IP bits determine if any interrupt is to have a high or low priority. Bits set to 1give
the accompanying interrupt a high priority; a 0 assigns a low priority. If two interrupts with the same
priority occur at the same time, then they have the followingranking: IE0, 2.TF0, 3.IE1, 4.TF1,
5.Serial = RI or TI.
3. What is SBUF?
SBUF stands for SERIAL BUFFER. SBUF is physically two registers. One is write only and is used to
hold the data to be transmitted out of the 8051 via TXD. The other one is read only and holds the
received data from external sources via RXD
4. Define baud rate of 8051? (May 2016)
In serial communication the data rate is known as the baud rate, which simply means the
number of bits transmitted per second.
5. How to program 8051 timer? (Nov 2018)
The 8051 has two timers: Timer 0 and Timer 1. They can be used either as timers or asevent
counters. It can be programmed using TCON and TMOD registers.
6. What are the types of sensors used for interfacing? / Give two examples of sensors and its uses. (May 2017,
Nov 2017, May 2018)
The different types of sensors that can be interfaced with microprocessors are Temperature
Sensors, IR Sensors, Ultrasonic Sensors, Touch Sensors, Proximity Sensors, Pressure Sensors, Level
Sensors, Smoke and Gas Sensors etc.
7. When is external memory access generated in 8051?(May 2019).
PSEN (Program Store Enable) is an output signal for the 8051 microcontroller, which is
connected to the OE pin of external ROM containing the program code. This is used when external ROM
has to be accessed.
8. What are the different modes timer 2 can operate?(may 2019)
Details 00 01 10 11
M1 M0 This is for Mode 0. This is Mode 1. This is Mode 2 This is Mode 3
(8-bit timer/counter, (16-bit (8-bit auto reload- function dependent
with 5-bit pre-scaler) timer/counter) timer/counter) on Timer0 or
Timer1
9. Draw the format of the SCON register of 8051 and give the function of each bit. (April 2022)
10. Give the priority level in 8051?(May 2018)
11. Define the operating mode 0 of 8051 serial ports. (Nov 2020, April 2021)
Mode 0 is a synchronous communication system. Through the RxD pin is transmit data, while the sync
pulses are located at TxD. For this mode, the transmission speed is fixed to the oscillator frequency ÷ 12.
12. Give the different types of ADC. (Nov 2020, April 2021)
The common types of ADCs are flash, successive approximation, and sigma-delta.
13. Give the format and list the function of the instruction DJNZ for 8051. (Nov/Dec 2019)
Decrement and Jump if Not Zero (DJNZ) Syntax: DJNZ register, reladdr
Description: DJNZ decrements the value of register by 1. If the new value of register is not 0
the program will branch to the address indicated by relative addr.
14. Write about the design steps involved in using microcontroller for stepper motor.
(May 2014)
The four leads of the stator winding are controlled by four bits of the 8051 port (P1.0-
P1.3). Since the 8051 lacks sufficient current to drive the stepper motor windings, a driver
such as ULN2003 is used to energize the stator. The ULN2003 has an internal diode to
take care of back EMF.
15. Define TMOD and TCON register.
PART B ( 13 Marks)
CHAPTER I (0.5 UNITS)
1. Illustrate the serial communication in 8051, with its special function register. (Nov 2016, 2017)(April 2022)
2. Describe the different modes of operations of timer/counter in 8051 microcontroller? (Nov 2016)
3. Interface the ADC and DAC converter with 8051 and explain with neat diagram. (Nov 2020, April 2021)
4. Draw the schematic for interfacing a stepper motor with 8051 microcontroller and write 8051 ALP for
changing speed and direction of motor and also and develop program to rotate the motor in clockwise
direction. (Nov 2015, May 2014, Nov 2016, 2017)(April 2022).
5. Describe how to program and interface an LCD to an 8051 using assembly language programming.(May
2019)
6. With necessary diagrams explain how to interface LM35 temperature sensor and then discuss the issues of
signal conditioning .(May 2019)