MPMC Question Bank
MPMC Question Bank
1. Explain the different instruction formats used in assembly language. Discuss the
structure of an instruction, including the opcode, operand, and addressing modes.
Provide examples of each.
2. Describe the various addressing modes used in assembly language programming.
Explain the operation of immediate, direct, indirect, and indexed addressing modes
with examples.
3. Discuss the role and importance of data transfer instructions in assembly language
programming. Provide examples of data transfer instructions and explain their
usage in moving data between registers and memory.
4. Explain the concept of data manipulation instructions in assembly language.
Provide examples of arithmetic, logical, and shift operations. Discuss how these
instructions are used to modify data.
5. What are control instructions in assembly language? Explain how jump, branch,
and halt instructions work. Provide examples of their usage in controlling the flow
of a program.
6. Explain the loop structure with counting in assembly language. Provide an example
of how a loop is implemented using counting techniques to repeat a task a specific
number of times.
7. Describe the concept of indexing in loops. Provide an example of an indexed loop
and explain its use in accessing elements of an array or table in assembly language
programming.
8. What is a lookup table, and how is it used in assembly language programming?
Explain with an example how a lookup table can be used to store precomputed
values and speed up data retrieval.
9. Describe the concept of subroutines in assembly language programming. Explain
how subroutines are called, how parameters are passed, and how return values are
handled.
MEENAKSHI RAMASWAMY ENGINEERING COLLEGE
(Approved by AICTE, New Delhi, Affiliated to Anna University, Chennai-25)
DEPARTMENT OF ELECTRICAL AND ELECTRONICS
ENGINNERING
10. Explain the stack and its use in assembly language programming. Discuss the
operations of pushing and popping data from the stack, and explain the significance
of the stack pointer in managing function calls and local variables.
1. Discuss in detail the instruction formats used in assembly language, focusing on the
different addressing modes (immediate, direct, indirect, and indexed).
2. Explain how data transfer, data manipulation, and control instructions work in
assembly language. Provide examples of each and describe their use in real-world
applications.
3. Explain the concepts of loops, indexing, lookup tables, subroutines, and stack
operations, and demonstrate how these features enhance the efficiency and
organization of assembly language programs. Provide a comprehensive example
that integrates all these features.
1. Discuss the architecture and working of the 8255 PPI. Explain its modes of
operation (Mode 0, Mode 1, Mode 2) and how it interfaces with the 8085
microprocessor.
2. Explain the architecture and operation of the 8259 PIC. Describe its role in handling
interrupts in a microprocessor system, including interrupt priority and cascading of
multiple 8259s.
3. Describe the architecture and working of the 8251 USART. Explain how it supports
both synchronous and asynchronous communication and how it interfaces with the
8085.
4. Explain the architecture and operation of the 8279 Keyboard Display Controller.
Discuss how it is used to interface keyboards and displays, including the methods
for scanning keys and displaying output.
MEENAKSHI RAMASWAMY ENGINEERING COLLEGE
(Approved by AICTE, New Delhi, Affiliated to Anna University, Chennai-25)
DEPARTMENT OF ELECTRICAL AND ELECTRONICS
ENGINNERING
5. Describe the architecture and operation of the 8254 Timer/Counter. Discuss the
various modes of operation and how the timer can be used for tasks such as
generating delays and event counting.
6. Explain the interfacing of an A/D converter with the 8085 microprocessor. Discuss
the types of A/D converters and the steps involved in interfacing and retrieving
digital data from an analog signal.
7. Discuss the interfacing of a D/A converter with the 8085 microprocessor. Describe
the types of D/A converters and how the 8085 sends digital data to generate analog
signals for controlling external devices.
8. Explain the programming techniques for using the 8255 PPI. Provide an example of
a program that configures the 8255 for both input and output operations in
different modes.
9. Describe the software and hardware steps involved in interfacing the 8251 USART
with the 8085 microprocessor. Discuss its role in serial communication and the
configuration of baud rate and data format.
10. Discuss the significance of the 8259 PIC in interrupt handling. Explain the role of
the priority resolver, interrupt masks, and the cascading mechanism when multiple
8259s are used.
1. Discuss in detail the architecture and programming of the 8255 PPI, 8259 PIC, 8251
USART, 8279 Keyboard Display Controller, and 8254 Timer/Counter.
2. Explain how each of these ICs interfaces with the 8085 microprocessor, highlighting
the functions of their registers and control signals. Provide examples of applications
for each peripheral IC and explain the data transfer mechanisms.
3. Explain the interfacing of A/D and D/A converters with the 8085, discussing their
use in real-world applications like sensor interfacing and control systems.
1. What are the main components of the 8051 microcontroller functional block
diagram?
MEENAKSHI RAMASWAMY ENGINEERING COLLEGE
(Approved by AICTE, New Delhi, Affiliated to Anna University, Chennai-25)
DEPARTMENT OF ELECTRICAL AND ELECTRONICS
ENGINNERING
o The 8051 microcontroller includes the CPU, RAM, ROM, timers, I/O ports, serial
communication control, and interrupt control, along with the accumulator,
registers, and control unit.
2. Explain the instruction format of 8051 microcontroller.
o The instruction format typically consists of an opcode (operation code) and
operands (data or address). It can be classified into one-byte, two-byte, and three-
byte instructions depending on the size.
3. What are the addressing modes of the 8051 microcontroller?
o The 8051 supports several addressing modes: Immediate, Register, Direct,
Indirect, and External addressing.
4. Explain the Immediate addressing mode with an example.
o In immediate addressing mode, the operand is directly specified in the instruction
itself. For example, MOV A, #25H moves the immediate value 25H into the
accumulator A.
5. What is the purpose of the 8051 Timer?
o The 8051 timers are used for generating time delays, event counting, and creating
pulse-width modulation (PWM) signals.
6. Explain the I/O ports of the 8051 microcontroller.
o The 8051 has four parallel I/O ports (P0, P1, P2, P3) which can be used for input
and output operations. These ports can be configured as input or output by setting
or clearing the corresponding bits in the control registers.
7. What is the serial communication feature in the 8051 microcontroller?
o The 8051 supports serial communication through UART (Universal
Asynchronous Receiver Transmitter). It allows data transmission and reception
via TXD and RXD pins, with support for both 8-bit and 9-bit data formats.
8. What is the role of the accumulator (A) in the 8051 microcontroller?
o The accumulator (A) is used for arithmetic, logical operations, and storing
intermediate results during execution.
9. How many bits are in the Program Counter (PC) of the 8051 microcontroller?
o The Program Counter (PC) in the 8051 is 16 bits long, allowing the
microcontroller to address up to 64KB of program memory.
10. What is the function of the stack in the 8051 microcontroller?
o The stack is used to store return addresses, data, and interrupt-related information.
The 8051 uses a software stack for function calls and interrupt handling.
11. What are the types of interrupts in the 8051 microcontroller?
o The 8051 supports external interrupts (INT0, INT1), timer interrupts (T0, T1),
and serial communication interrupts (RI and TI).
12. Explain the Interrupt Structure in the 8051 microcontroller.
o The 8051 has five interrupt sources: External interrupts (INT0, INT1), Timer
interrupts (T0, T1), and Serial Communication interrupts (RI, TI). Interrupts are
prioritized with specific control bits to enable/disable them.
13. How are interrupts prioritized in the 8051?
MEENAKSHI RAMASWAMY ENGINEERING COLLEGE
(Approved by AICTE, New Delhi, Affiliated to Anna University, Chennai-25)
DEPARTMENT OF ELECTRICAL AND ELECTRONICS
ENGINNERING
o Interrupts in the 8051 are prioritized in the order of external interrupts (highest
priority), timer interrupts, and serial communication interrupts (lowest priority).
14. What are the different timer modes in the 8051?
o The 8051 timers support modes such as 13-bit, 16-bit, and auto-reload modes.
Timer 0 and Timer 1 can be configured for various modes using control bits.
15. Explain how to interface a 16x2 LCD to the 8051 microcontroller.
o To interface a 16x2 LCD, connect its data pins (D0-D7) and control pins (RS,
RW, EN) to the microcontroller. Commands are sent to control the display (clear
screen, move cursor, etc.) and data to display characters.
16. What is the role of the MOV instruction in 8051?
o The MOV instruction is used to move data between registers, memory, or
immediate data. For example, MOV A, R0 moves the contents of register R0 into
the accumulator A.
17. How does the 8051 handle serial data transmission and reception?
o The 8051 uses its serial control registers (SCON) to configure serial transmission.
The TI (Transmit Interrupt) and RI (Receive Interrupt) flags are used to detect
when the transmission or reception is complete.
18. What is the function of the SETB and CLR instructions in 8051?
o SETB is used to set a specified bit to 1, and CLR is used to clear a specified bit
(set to 0) in a register or memory location.
19. What is the function of the TCON register in the 8051 microcontroller?
o The TCON register controls the timer and external interrupt operations. It
contains bits to enable/disable interrupts, control timer operation, and manage
external interrupt flags.
20. What is a Stepper Motor, and how can it be controlled by the 8051?
o A stepper motor moves in discrete steps. The 8051 can control a stepper motor by
sending pulses to the motor's driver circuit to rotate the motor in precise steps.
1. Explain the 8051 microcontroller architecture, detailing its main components and
how they interact.
o Answer should cover the CPU, program memory, data memory, timers, I/O ports,
serial communication module, and interrupt control.
2. Discuss the instruction set of the 8051 microcontroller with examples of the types of
instructions (Data transfer, Arithmetic, Logical, Control, Branching).
o Answer should explain each type of instruction with examples and their
respective usage in 8051 programming.
3. Explain the different addressing modes in 8051, with examples of each addressing
mode.
MEENAKSHI RAMASWAMY ENGINEERING COLLEGE
(Approved by AICTE, New Delhi, Affiliated to Anna University, Chennai-25)
DEPARTMENT OF ELECTRICAL AND ELECTRONICS
ENGINNERING
o Answer should cover the Immediate, Register, Direct, Indirect, and External
addressing modes, with examples of how each one is used.
4. Write an assembly program to interface a 4x4 matrix keypad with the 8051
microcontroller.
o Answer should cover the steps for keypad scanning, detecting the key press, and
returning the corresponding value to the 8051 microcontroller.
5. Discuss the Timer modes in 8051 and explain how to configure a timer for
generating a time delay.
o Answer should explain the different timer modes (Mode 0, Mode 1, Mode 2) and
how to use them to generate a specific delay.
6. Write a program to generate a 1Hz square wave using Timer 0 in the 8051.
o Answer should explain how to set the timer for a 1Hz frequency, along with the
calculation and necessary code.
7. Explain how to use serial communication in the 8051 to send and receive data.
Include a program for sending a string of characters.
o Answer should describe the configuration of the serial communication (SCON
register), enabling the transmitter and receiver, and provide an example code.
8. Discuss the 8051 interrupt structure in detail, including how to handle external
interrupts and configure interrupt priority.
o Answer should explain the interrupt vector table, priority levels,
enabling/disabling interrupts, and writing interrupt service routines (ISRs).
9. Explain the interfacing of a 16x2 LCD display with the 8051 and write a program to
display "Hello World" on it.
o Answer should describe the steps to interface the LCD, control the data and
command pins, and provide the code for displaying text.
10. Discuss the control of a stepper motor using the 8051 microcontroller. Write an
assembly program to rotate the motor in both directions.
o Answer should explain the stepper motor control logic and the required pin
connections, followed by the assembly program to rotate the motor.
1. Describe the complete architecture of the 8051 microcontroller. Discuss its CPU,
memory organization, and various peripheral components.
o Answer should provide a detailed explanation of the internal architecture,
including the CPU, program memory, data memory (RAM), special function
registers (SFRs), timers, I/O ports, and serial communication modules.
2. Write a detailed program for the 8051 microcontroller to implement a temperature
control system. Use a temperature sensor (like LM35) and display the temperature
on an LCD.
MEENAKSHI RAMASWAMY ENGINEERING COLLEGE
(Approved by AICTE, New Delhi, Affiliated to Anna University, Chennai-25)
DEPARTMENT OF ELECTRICAL AND ELECTRONICS
ENGINNERING
o Answer should describe how to interface the temperature sensor, ADC, and LCD
to the 8051, along with the code to read the sensor, convert the temperature, and
display it.
3. Explain how to interface a 7-segment display with the 8051 microcontroller. Write a
program to display a decimal number on the 7-segment display.
o Answer should describe the wiring of the 7-segment display to the
microcontroller and the program to display the digits.
4. Explain the 8051 microcontroller's Timer and Interrupt structure in detail. Write a
program that uses Timer interrupts to toggle an LED at a specific interval.
o Answer should cover the Timer modes, interrupt priorities, and the setup of Timer
interrupts, followed by the program to toggle an LED using Timer interrupt.
1. Explain the instruction set of PIC16 with examples of each type of instruction..
2. Describe the various types of addressing modes used in PIC16 with examples..
3. Discuss the role of Interrupts in PIC16, including how to configure and handle
external and internal interrupts.
4. Explain the programming techniques in PIC16, including delay generation, bit
manipulation, and setting up I/O ports.
5. Explain the working and configuration of Timers in PIC16 with examples..
6. Describe the features and operation of the ADC in PIC16. How would you configure
and use it in a program?
7. Discuss the different I/O port configurations in PIC16. How would you configure a
pin as input or output?
8. Explain the process of serial communication in PIC16 using the USART module.
9. What are the steps to configure and use the Watchdog Timer (WDT) in PIC16?.
10. Explain the use of the special function registers (SFRs) in PIC16. Provide examples.