MPMC QB Ans - Removed
MPMC QB Ans - Removed
SHORT
1. What is the size of address and data bus of Intel 8085 Microprocessor?
Ans: The Intel 8085 Microprocessor has an 16-bit address bus and an 8-bit data bus.
2. What is the operating frequency of Intel 8085 Microprocessor?
Ans: The operating frequency of the Intel 8085 Microprocessor is typically 3-6 MHz.
3. What do you understand by a T-state, Machine cycle, and Instruction cycle?
Ans:
T-state: A T-state is the basic unit of time for the Intel 8085 Microprocessor. Each T-
state is 3 clock cycles long.
Machine cycle: A machine cycle is the time it takes for Microprocessor to fetch and
execute an instruction.
4. How many active flags are present in the flag register of Intel 8085? Name
them.
Ans:
There are five active flags in the flag register of the Intel 8085:
MPMC QB ANS 1
Ans:
The ALE (Address Latch Enable) pin of the Intel 8085 Microprocessor is used to
output the lower eight
bits of the address during the first T-state of each machine cycle.
This allows the external memory devices to latch the address and prepare the data
for the next T-state.
Ans:
One-byte instructions are those instructions that require only one byte of machine code
for their execution.
Two-byte instructions, on the other hand, require two bytes of machine code. For
example:
Two-byte instruction: LXI B, 1624H (opcode: 01, immediate data: 24H, 16H)
Ans:
The HOLD pin of the Intel 8085 Microprocessor is used to suspend the execution of
the microprocessor by an external device.
This is typically used to allow another device, such as a direct memory access
(DMA) controller, to access the memory or I/O bus.
Ans:
The SOD (Serial Output Data) pin of the Intel 8085 Microprocessor is used for serial
data output during the execution of certain instructions.
Ans:
MPMC QB ANS 2
The TRAP (TRAP) pin of the Intel 8085 Microprocessor is used to generate a non-
maskable interrupt.
Ans:
The READY pin of the Intel 8085 Microprocessor is used to indicate to the
microprocessor that an external device is ready to transfer data.
11. What is the size of address and data bus of Intel 8086 Microprocessor?
Ans: The MUL BX instruction multiplies the contents of the AX register by the contents
of the BX register. The result is stored in the AX register.
14. Explain the instruction DIV BL of Intel 8086 Microprocessor.
Ans: The DIV BL instruction divides the contents of the AX register by the contents of
the BL register. The quotient is stored in the AX register, and the remainder is stored in
the DX register.
15. What is the size of instruction queue of Intel 8086 Microprocessor?
Ans: The Intel 8086 microprocessor has a 6-byte instruction queue. This means that it
can hold up to 6 instructions at a time.
16. What are the roles of ̅̅̅̅̅̅BHE & A0 pins of Intel 8086 Microprocessor?
Ans:
The BHE (Bus High Enable) pin is used to indicate the byte being transferred on the
data bus.
The A0 pin is used to select the lower order byte or the higher order byte on the
data bus.
17. What is the role of MN⁄MX ̅̅̅̅̅ pin of Intel 8086 Microprocessor?
MPMC QB ANS 3
Ans: The MN/MX (Memory/No Memory) pin is used to indicate whether the
microprocessor is accessing memory or I/O devices.
18. Explain the instruction XLAT of Intel 8086 Microprocessor.
Ans: The XLAT instruction translates the contents of the AL register into its
corresponding ASCII code. The translated code is stored in the AL register.
19. Explain the instruction CMP of Intel 8086 Microprocessor.
Ans:
The CMP instruction in the Intel 8086 Microprocessor is used for comparing two
operands.
It subtracts the second operand from the first without storing the result and updates
the flags based on the result.
20. How many memory locations that an Intel 8086 Microprocessor can access?
Ans: The Intel 8086 Microprocessor can access up to 1 MB (2^20) memory locations.
21. What is the size of address and data bus of Intel 8051 Microcontroller?
Ans: The Intel 8051 microcontroller has an 8-bit data bus and an 8-bit address bus.
22. What is the operating frequency of Intel 8051 Microcontroller?
Ans: 12 MHz.
23. What is the size of on-chip ROM for Intel 8051 Microcontroller?
Ans: 4KB
24. What is the size of on-chip RAM for Intel 8051 Microcontroller?
Ans: The Intel 8051 microcontroller has four register banks, each with eight registers.
These register banks are named R0, R1, R2, and R3.
27. What is the role of ̅̅̅̅̅̅̅̅PSEN pin of Intel 8051 Microcontroller?
Ans:
The PSEN (Program Store Enable) pin is an active-low signal that is used to select
the external program memory.
MPMC QB ANS 4
When PSEN is low, the microcontroller reads data from the external program
memory. When PSEN is high, the microcontroller accesses the internal program
memory.
28. What is the role of PROG ̅̅̅ ̅̅̅̅̅ pin of Intel 8051 Microcontroller?
Ans:
When PROG is high, the microcontroller is in normal operating mode. When PROG
is low, the microcontroller is in programming mode and can be programmed with
new code.
29. How does the pin ̅EA ̅̅̅ work in Intel 8051 Microcontroller?
Ans:
30. How does the pin VPP work in Intel 8051 Microcontroller?
Ans: The VPP(Voltage Programming Pulse) pin provides a high voltage for
programming the microcontroller's flash memory and can also be used for external
memory interfacing in some variants.
31. What is the role of RS pin in a 16 X 2 LCD Module?
Ans:
The RS (Register Select) pin is used to select the data or command register of the
LCD module.
When RS is low, the data register is selected. When RS is high, the command
register is selected.
Ans: The contrast of a 16x2 LCD module is adjusted by setting the voltage on the Vcom
pin. The Vcom pin is connected to a potentiometer that can be adjusted to control the
voltage.
33. What is the function of command register of a 16 X 2 LCD Module?
MPMC QB ANS 5
Ans: The command register is used to send commands to the LCD module. These
commands can control various aspects of the display, such as the cursor position, the
display mode, and the backlight.
34. What are two methods that are used for digital to analog conversion?
Ans:
Pulse Width Modulation (PWM): In PWM, a digital signal is used to control the
duty cycle of a pulse train. The average voltage of the pulse train is proportional to
the duty cycle.
R-2R Ladder DAC: In an R-2R ladder DAC, a series of resistors is used to divide a
reference voltage into smaller voltages. The digital signal is used to select which of
these smaller voltages is output.
35. What is the step size for a 10 bit Analog to Digital Converter?
Ans: The step size of an ADC is the smallest change in input voltage that will cause a
change in the output code. For a 10-bit ADC, the step size is equal to the reference
voltage divided by 1024.
36. What is the function of E pin in a 16 X 2 LCD Module?
Ans: The E (Enable) pin is used to enable the LCD module to accept data or
commands. When E is high, the data or command is latched onto the data bus. When E
is low, the data or command is ignored.
37. What is the role of ̅̅̅̅RD pin of ADC 0804 chip?
Ans: The RD (Read) pin of the ADC 0804 chip is used to initiate the conversion
process. When RD is low, the conversion starts. When RD is high, the conversion is
complete and the converted data can be read.
38. How many data lines are present in DAC 0808 chip?
Ans: The DAC 0808 chip has 8 data lines, which means that it can output analog
voltages with 8-bit resolution.
39. How many data lines are present in ADC 0804 chip?
Ans: The ADC 0804 chip has 8 data lines, which means that it can input analog
voltages with 8-bit resolution.
40. What is the role of CLK IN pin of ADC 0804 chip?
Ans: The CLK IN (Clock Input) pin of the ADC 0804 chip is used to provide a clock
signal for the conversion process. The clock signal should have a frequency of at least
MPMC QB ANS 6
500 kHz.
41. How many bidirectional I/O lines are present in Intel 8255?
Ans:
42. What are the modes that can be used in Intel 8255?
Ans:
Three modes of operation:
43. How does the instruction LEA works for Intel 8086 Microprocessor?
Ans:
LEA Purpose: The LEA (Load Effective Address) instruction in Intel 8086
Microprocessor calculates the effective address of a specified operand.
Functionality: LEA does not access the data at the calculated address; it loads the
offset into a register for further computation or indirect addressing.
Ans:
2. Stack Operations: SP is used to point to the memory location where the next push
or pop operation will occur in the stack. It manages the stack for subroutine calls
and interrupt handling.
Ans:
MPMC QB ANS 7
1. Register Set Selection: S1 and S0 are status pins in the Intel 8085
Microprocessor.
2. Register Bank Selection: S1 and S0 pins determine which register set (B, C, D, or
E) is currently active, allowing the microprocessor to access different sets of
registers during program execution.
FOCUS
1. Explain the addressing modes of Intel 8085 Microprocessor with examples.
Ans:
Addressing Modes of Intel 8085:
A, 05H .
(B) .
2. Explain instructions DAA, XRA, INR, JMP, CMP, PUSH, LDA, and LXI of Intel
8085.
Ans:
1. DAA (Decimal Adjust Accumulator): Adjusts the accumulator after BCD addition.
MPMC QB ANS 8
5. CMP (Compare): Compares the accumulator with the specified register/memory.
6. PUSH: Pushes the contents of the specified register pair onto the stack.
7. LDA (Load Accumulator Direct): Loads the accumulator with the content of the
specified memory location.
8. LXI (Load Register Pair Immediate): Loads a 16-bit immediate data into a register
pair.
3. Write an ALP for Intel 8085 to find the sum of first 10 natural numbers.
Ans:
Ans:
2. Intel 8086 Example: The Intel 8086 microprocessor employs a two-stage pipeline
comprising fetch and execute stages. While one instruction is executed, the next
one is fetched, enhancing efficiency.
3. Prefetch Queue Function: The 8086 includes a prefetch queue capable of storing
up to six instruction bytes. This feature enables continuous instruction fetching even
MPMC QB ANS 9
if the execution stage is still processing a previous instruction.
; Divide 12345678 H by ABCD H and store the quotient at memory location 11234 H and remain
der at 11236 H
MOV AX, 12345678H ; Load dividend into AX register
MOV BX, ABCD H ; Load divisor into BX register
DIV BX ; Divide AX by BX and store quotient in AX and remainder in DX
MOV [11234H], AX ; Store quotient at memory location 11234 H
MOV [11236H], DX ; Store remainder at memory location 11236 H
Indexed addressing: Access data using base address and index value.
e.g. MOV AX, [BX + SI] ; Move the contents of the memory location pointed to by the
BX register plus the value of the SI register to the AX register
MPMC QB ANS 10
Based addressing: Access data using base address and displacement value.
e.g. MOV AX, [DI + 10H] ; Move the contents of the memory location pointed to by
the DI register plus 10H to the AX register
The Intel 8051 microcontroller supports various addressing modes, allowing flexibility in
accessing data and operands. Here are some addressing modes used in the 8051:
Register Addressing Mode (e.g., MOV A, R0): The operand is in one of the
general-purpose registers.
Direct Addressing Mode (e.g., MOV A, 30H): The operand is specified by a direct
address in the instruction.
Indirect Addressing Mode (e.g., MOV A, @R0): The operand is located at the
address stored in a register (R0 or R1).
Indexed Addressing Mode (e.g., MOV A, 20H+R1): The operand is at the address
obtained by adding an immediate value to a register content.
Bit Addressing Mode (e.g., MOV C, 40H.3): Used for bit manipulation. The
operand is a specific bit in the bit-addressable RAM area.
8. Explain the instructions MOVX, MOVC, MUL, and ADDC of Intel 8051.
Ans:
MOVX (Move External): This instruction is used for moving data between the 8051
and external memory. Examples:
assemblyCopy code
MOVX A, @DPTR ; Move data from external memory to accumulator
MOVX @DPTR, A ; Move data from accumulator to external memory
MPMC QB ANS 11
MOVC (Move Code): MOVC is used to move code bytes from the program memory
to the accumulator. Examples:
ADDC (Add with Carry): ADDC adds the accumulator, a register, and the carry
flag. Example:
9. Find the size of delay in the following program. The frequency is 11.0592MHz.
DELAY: MOV R3, #C8
HERE: DJNZ R3, HERE
RET
Ans:
The program has a loop that decrements the value in register R3 until it becomes zero.
The initial value in R3 is 0xC8 or 200. The clock frequency is 11.0592MHz.
MPMC QB ANS 12
So, the size of the delay in the program is approximately 18.09 μs.
10. How does the clock frequency of ADC 0804 chip is determined?
Ans:
In other words, the external clock frequency is divided by 2 to generate the internal
clock pulses used by the ADC 0804 for its conversion process.
11. Explain the steps to be followed in ADC 0804 chip for data conversion?
Ans:
4. Approximation: The internal voltage divider is adjusted until its output is as close
as possible to the analog input voltage.
5. Output Latch: The digital output is latched onto the data bus.
6. Data Read: The digital output is read from the data bus.
MPMC QB ANS 13
12. How a pressed key is detected by a microcontroller?
Ans:
When a key is pressed, the row and column connected to that key are shorted
together, causing a change in voltage.
Microcontrollers often use a matrix keypad. The steps to detect a pressed key are:
1. Scan Rows: The microcontroller sequentially activates each row of the keypad.
2. Read Columns: While a row is activated, the microcontroller reads the state of
each column.
3. Detect Key Press: The microcontroller identifies the pressed key based on the
row and column intersection. If a key is pressed, the corresponding row and
column will have a connection.
13. How the double word 123478924H will be store at the address 23456H?
Ans:
1. Divide the double word into two 16-bit words: 1234H and 7892H.
Since a double word occupies two consecutive memory locations, the lower word is
stored at the specified address, and the higher word is stored at the next highest
address.
14. Describer the difference between the instructions MOV AX, 1234H and MOV
AX, [1234H] in 8086?
Ans:
Difference between MOV AX, 1234H and MOV AX, [1234H] in 8086:
MPMC QB ANS 14
The instructions MOV AX, 1234H and MOV AX, [1234H] both involve moving data to the
AX register. However, they differ in the source of the data.
MOV AX, 1234H: This instruction moves the immediate value 1234H (hexadecimal)
to the AX register.
MOV AX, [1234H]: This instruction moves the data stored at the memory location
1234H (hexadecimal) to the AX register.
In essence, MOV AX, 1234H loads a constant value into the register, while MOV AX,
[1234H] loads the contents of a memory location into the register.
15. What are the advantages of memory segmentation concept?
Ans:
LONG
1. Draw and explain the timing diagram of the execution of instruction MVI A, 32H.
Ans:
MPMC QB ANS 15