MPMC QB ANS 3 0 (Both QB)
MPMC QB ANS 3 0 (Both QB)
MPMC QB ANS 3 0 (Both QB)
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.
Instruction cycle: An instruction cycle is the sequence of T-states required to execute a single 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:
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.
6. What is the difference between a one-byte and two-byte instructions. Give examples.
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)
The HOLD pin of the Intel 8085 Microprocessor is used to suspend the execution of the microprocessor by an
external device.
The SOD (Serial Output Data) pin of the Intel 8085 Microprocessor is used for serial data output during the execution
of certain instructions.
Ans:
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: 16-bit data bus and 20-bit address bus
12. What is the operating frequency 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?
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:
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?
26. List the register banks that are present in 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.
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:
When EA is low, external interrupts are disabled. When EA is high, external interrupts are enabled.
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.
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 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 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.
Ans:
1. Stack Pointer (SP): The SP register in Intel 8085 Microprocessor is a 16-bit register.
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:
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:
1. Immediate Addressing: Data is directly specified in the instruction. Example: MVI A, 05H .
4. Indirect Addressing: Address of the operand is in a register pair. Example: MOV A,(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.
2. XRA (Exclusive OR Accumulator): Performs XOR operation with the accumulator and a specified operand.
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 if the execution stage is still processing a previous instruction.
4. Performance Improvement: The key benefit of pipelining is a significant reduction in the time a microprocessor
spends waiting for instructions to be fetched from memory, thereby enhancing overall performance.
5. Write an ALP for Intel 8086 Microprocessor to divide 12345678 H by ABCDH. Store the quotient at memory
location 11234 H and remainder at 11236 H.
Ans:
; 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
Indirect addressing: Access data in memory indirectly using register value as address.
e.g. MOV AX, [BX] ; Move the contents of the memory location pointed to by the BX register to the AX register
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
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
Ans:
The Intel 8051 microcontroller supports various addressing modes, allowing flexibility in accessing data and operands.
Here are some addressing modes used in the 8051:
Immediate Addressing Mode (e.g., MOV A, #25H): The operand is directly specified in the instruction.
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:
assemblyCopy code
MOVX A, @DPTR ; Move data from external memory to accumulator
MOVX @DPTR, A ; Move data from accumulator to external memory
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.
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.
Total Delay = Number of iterations * Time for one iteration= 200*(1/11.0592 MHz) = 18.09 μs
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:
Its clock frequency is typically determined by an external clock source connected to its clock input (CLK). The formula
to calculate the clock frequency is:
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?
1. Sampling: The analog input voltage is sampled and held by a sample-and-hold circuit.
2. Initialization: The ADC is initialized by applying a high-to-low transition to the START/EOC (Start of Conversion/End
of Conversion) pin.
3. Comparison: The analog input voltage is compared to the output of an internal voltage divider.
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.
7. Detecting a Pressed Key by a Microcontroller: A microcontroller detects a pressed key by monitoring the voltage
level on the corresponding row and column of the keyboard matrix.
A microcontroller detects a pressed key by monitoring the voltage level on the corresponding row and column of the
keyboard matrix.
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:
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:
Storing Double Word 123478924H at Address 23456H:
To store the double word 123478924H at address 23456H, the following steps are performed:
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:
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.
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:
1. Enhanced Memory Addressing: Segmentation allows for addressing a larger memory space than what is directly
addressable by the processor's registers.
2. Memory Protection: Segmentation enables memory protection by isolating different segments and assigning access
privileges to each segment.
3. Modular Programming: Segmentation facilitates modular programming by allowing program modules to have their
own separate address spaces.
4. Efficient Memory Management: Segmentation enhances memory management by allowing unused segments to be
swapped out to external storage and reloaded as needed.
5. Simplified Addressing: Segmentation simplifies addressing by dividing memory into manageable chunks, making it
easier to locate and access specific memory locations.
LONG
1. Draw and explain the timing diagram of the execution of instruction MVI A, 32H.
Ans:
Time Calculation:
MVI A,32H >>32H→ To be moved in Accumulator
2 machine cycle:
memory read: 3T state required
opcode fetch: 4T state required
clock frequency(f) = 5MHz
1T state = clock period =1/f=0.2 micro sec
❎
Execution time for M1=0.2 4=0.8 micro sec
❎
Execution time for M1=0.2 3=0.6 micro sec
Execution time for instruction =M1+M2=1.4 micro sec
Ans:
Interface 2732 (4KB EPROM) with Intel 8085 Microprocessor:
The 2732 EPROM can be interfaced with the Intel 8085 microprocessor using the following connections:
Address bus: The 2732 EPROM uses the address bus lines A0-A14 to select a specific memory location.
Data bus: The 2732 EPROM uses the data bus lines D0-D7 to read and write data to memory.
Control signals: The 8085 microprocessor uses the following control signals to control the 2732 EPROM:
ALE (Address Latch Enable): This signal is used to latch the address bus
value onto the address latch of the 2732 EPROM.
RD (Read): This signal is used to read data from the 2732 EPROM.
Memory map:
The memory map for the 2732 EPROM is as follows:
4. Address Bus:
- Carries addresses from microprocessor to memory/devices.
- Determines which memory location or device is accessed.
5. Data Bus:
- Transfers data between microprocessor and memory/peripherals.
- Bus width determines the parallel transfer capacity.
BIU(Bus Interface unit): The BIU is responsible for transferring data between the CPU and other devices on the
system bus. It also handles interrupts and other control signals.
EU(Execution unit): The EU is responsible for executing instructions. It contains the instruction decoder, the
arithmetic logic unit (ALU), and the control unit.
MMU(Memory Management Unit): The MMU is responsible for managing the memory system. It translates virtual
addresses to physical addresses and handles paging and segmentation.
14 general-purpose 16-bit registers (AX, BX, CX, DX, SI, DI, BP, SP)
Control Unit:
Address Bus:
Data Bus:
16-bit data bus for transferring data between the CPU and memory.
Segmentation:
5. Suppose DS= 3000H, ES = 2000H, CS= 4000H, SS= 6000H, BX= 1234H, BP=3333H, SI= F000H,
Ans:
6. Write an ALP for Intel 8086 microprocessor to find the largest number from the array of data bytes.
Ans:
GREATER:
INC SI ; Increment SI
LOOP LOOP ; Loop until CX is zero
MOV LARGEST, AX ; Move AX to LARGEST, which contains the largest number in the array
8-bit Processor: The 8051 is an 8-bit processor, meaning it processes data in 8-bit chunks.
General-Purpose Registers: Four additional 8-bit registers (B, DPH, DPL, and PSW) are available for general-
purpose use.
2. Memory:
ROM (Read-Only Memory): Program memory for storing the program code. The 8051 typically has 4KB of on-chip
ROM.
RAM (Random Access Memory): Data memory for temporary storage. The 8051 usually has 128 bytes of on-chip
RAM.
3. I/O Ports:
The 8051 has four parallel I/O ports (P0, P1, P2, P3), each of which is 8 bits wide.
These ports can be used for input or output and are bit-addressable.
The 8051 includes a UART (Universal Asynchronous Receiver/Transmitter) for serial communication.
It supports full-duplex communication and is commonly used for interfacing with other devices.
5. Timers/Counters:
The 8051 has two 16-bit timers/counters (Timer 0 and Timer 1).
These timers can be used for generating time delays, measuring external events, and generating PWM signals.
PSW (Program Status Word): Contains flags and the stack pointer.
PCON (Power Control): Manages power modes and controls the crystal oscillator.
The 8051 can be operated with an external crystal or an external clock signal.
8. Bus Structure:
The 8051 features a straightforward bus structure with separate address and data buses.
Ans:
The crystal frequency of 11.0592 MHz is commonly used for Intel 8051 microcontrollers due to several advantages it
offers:
1. Ease of Baud Rate Generation: The 11.0592MHz frequency allows for straightforward generation of standard
communication baud rates, such as 19200, 9600, 4800, 2400, 1200, and 300 bps.
2. Compatibility with UART Timing Requirements: The Intel 8051 microcontroller's UART (Universal Asynchronous
Receiver/Transmitter) requires specific timing parameters for reliable data transmission. The 11.0592 MHz crystal
frequency aligns well with these timing requirements, ensuring accurate data exchange.
3. Timer Accuracy: The crystal oscillator serves as the primary timekeeping source for the 8051 microcontroller's
timers. The 11.0592 MHz frequency provides a stable and accurate reference for timer operations, ensuring precise
4. Noise Reduction: Higher crystal frequencies, such as 11.0592 MHz, are less susceptible to noise interference
compared to lower frequencies. This helps maintain the stability and accuracy of the clock signal.
5. Availability and Cost-Effectiveness: Crystal oscillators operating at 11.0592 MHz are widely available and relatively
inexpensive, making them a practical choice for 8051 microcontroller applications.
1. CPU: 8-bit with registers such as Accumulator (A) and B Register & several special purpose registers.
4. Program Counter (PC): Keeps track of the address of the next instruction.
5. Stack Pointer (SP): Manages the stack for subroutine and interrupt handling.
7. Data Pointer (DPTR): 16-bit register for indirect addressing of external memory.
8. Control Registers: Include TCON, TMOD, and SCON for timers, counters, and serial communication.
9. Timers and Counters: Two 16-bit timers/counters (Timer 0 and Timer 1).
10. Serial Communication: Supported through UART (Universal Asynchronous Receiver/Transmitter) module controlled
by the SCON register.
10. Write an ALP for Intel 8051 to add two 8 bit numbers and store in a memory location A001H.
Ans:
ORG 0H;
MOV A, #25H;
ADD A, #3AH;
MOV @A001H, A;
END;
11. With neat diagram, Explain the interfacing of a LCD Module with microcontroller?
When interfacing an LCD (Liquid Crystal Display) module with a microcontroller, several pins play crucial roles in
establishing communication and control.
VCC is the power supply voltage for the LCD module. It typically operates at +5V or another specified voltage
level.
VSS is the ground reference for the LCD module, providing the necessary return path for the current flowing from
VCC.
VEE is the contrast control voltage. Adjusting VEE helps control the contrast of the characters displayed on the
LCD.
RS is a control pin that determines whether the data sent to the LCD is interpreted as a command (RS low) or as
character data to be displayed (RS high).
5. R/W (Read/Write):
R/W is a control pin that specifies the direction of data transfer. When low, it indicates a write operation (sending
data to the LCD), and when high, it indicates a read operation (retrieving data from the LCD).
6. E (Enable):
The E (Enable) pin is used to enable the LCD module and initiate data transfer. A high-to-low transition (or vice
versa) on the E pin is often used to latch or read the data on the data pins.
7. Data Pins:
These are typically labeled as D0-D7 and carry the binary data to be displayed on the LCD. The number of data
pins depends on the chosen data bus width (e.g., 4-bit or 8-bit mode).
Interfacing involves connecting these pins from the LCD module to corresponding pins on the microcontroller. Proper
configuration of control signals (RS, R/W, E) and sending appropriate commands/data on the data bus (D0-D7) allows the
microcontroller to communicate effectively with the LCD module, displaying characters, numbers, or other information as
desired.
12. Explain the interfacing of a 4 X 4 Keyboard and Microcontroller with proper diagram and flow chart.
Ans:
2. Multiplexing: The microcontroller sequentially scans rows and columns, grounding one row at a time while checking
the state of the columns to identify the pressed key.
3. Pull-up or Pull-down Resistors: Each column or row line is connected to the microcontroller with pull-up or pull-
down resistors to establish a default state and detect keypress changes.
4. Debouncing: Debouncing circuits or software routines filter out bouncing signals generated by key switches to
ensure accurate keypress detection.
5. Key Identification and Data Transmission: The microcontroller identifies pressed keys based on the row-column
intersection, mapping this information for various applications like displaying characters or triggering specific actions.
1. Data Lines (D0-D7): These are the output lines of the ADC0804, providing the digital output of the converted analog
signal. Connect these to the Port 0 (P0) of the 8051 microcontroller.
2. Control Lines (CS, RD, WR, INTR): These lines control the operation of the ADC. Connect CS (Chip Select) to a
specific pin on the 8051, RD (Read) to P2.7, WR (Write) to P2.6, and INTR (Interrupt) to P3.2.
3. Address Lines (A0-A2): These lines are used to select the internal register of the ADC0804. Connect these to P1.0 -
P1.2 of the 8051.
6. Analog Input (IN+ and IN-): Connect the analog signal to be converted to IN+ and IN-.
2. Control Register:
The control register is used to configure the operating modes of the 8255. It is an 8-bit register that allows the
microprocessor to set the mode of operation for each of the three ports (Port A, Port B, and Port C) as well as
other control features.
Each port is an 8-bit bidirectional I/O port. Port A and Port B can be used as general-purpose I/O ports, while Port
C has additional modes depending on the configuration set in the control register.
The mode selection logic interprets the control register settings to determine the operating mode of each port. The
8255 supports three basic modes of operation for each port: Mode 0 (Basic Input/Output), Mode 1 (Strobed
Input/Output), and Mode 2 (Bidirectional Bus).
This logic allows individual bits in each port to be set or reset (cleared) independently. It provides the capability to
manipulate specific bits without affecting the entire port.
The 8255 has two groups of control lines: Group A controls the operation of Port A, and Group B controls the
operation of Port B and Port C. These control lines include Read, Write, and various mode control signals.
The 8255 may include an internal clock generator for certain modes of operation. External clock inputs can also
be used.
The RESET input initializes the internal registers and puts the 8255 into a known state.
15. Write an Assembly Language Program for Intel 8086 to find the largest number in an array of 8 numbers.
Ans:
ARRAY_SIZE EQU 8
ARRAY_START EQU 0x2000
LARGEST_NUM EQU 0x2001
START:
loop:
dec cx
jz finish
inc ax
cmp ah, al
jg update
jmp loop
loop loop
finish:
mov [LARGEST_NUM], al
hlt
2. What is the size of address and data bus of Intel 8085 and 8086 Microprocessor?
Ans:
Address and Data Bus Size of Intel 8085 and 8086:
Intel 8085:
- Address Bus: 16 bits
- Data Bus: 8 bits
Machine Cycle: A set of related operations that can be performed in a single clock
period.
6. How many active flags are present in the flag register of Intel 8085? Name them.
Ans: Zero (Z), Sign (S), Parity (P), Carry (CY), Auxiliary Carry (AC)
7. What is the role of ALE pin of Intel 8085 Microprocessor?
Ans:
It is used to request control of the system bus (RQ) or to grant control of the bus (GT)
to another requesting device.
It cannot be disabled and takes precedence over other interrupts in the system.
TRAP is a non-maskable interrupt used for error trapping in the 8085 microprocessor.
Each stage of the pipeline performs a different task, improving overall instruction throughput.
Extra segment register extends addressable memory beyond default segments in the 8086 microprocessor.
It allows specifying additional memory segments for more comprehensive memory access.
15. Explain the instruction MUL BX and DIV BL of Intel 8086 Microprocessor.
The instruction queue in the 8086 microprocessor can hold up to 6 instruction bytes.
17. What are the roles of BHE' & A0 pins of Intel 8086 Microprocessor?
Ans:
BHE' (Bus High Enable) enables the higher-order data bus during memory or I/O operations.
A0 is the least significant bit of the memory or I/O address, determining even or odd byte addressing.
MN/MX' pin determines whether the microprocessor operates in minimum or maximum mode.
XLAT (Translate) instruction is used for table look-up, using AL register as an offset.
It facilitates efficient data retrieval from a table based on the AL register content.
It sets flags indicating the result of the comparison for conditional branching.
21. How many memory locations that an Intel 8086 Microprocessor can access?
Ans:
This large address space allows handling extensive data and program storage.
22. What is the size of address and data bus of Intel 8051 Microcontroller?
Ans:
The 8051 microcontroller has an 8-bit address bus and an 8-bit data bus.
These buses determine the range of addresses and data the microcontroller can handle.
The operating frequency of the 8051 microcontroller typically ranges from 12 MHz to 24 MHz.
It defines the speed at which the microcontroller processes instructions and data.
The control unit in a microcontroller manages instruction execution and data flow.
25. What is the size of on-chip ROM and on-chip RAM for Intel 8051 Microcontroller?
Ans:
The 8051 microcontroller typically has 4 KB of on-chip ROM and 128 bytes of on-chip RAM.
These memory components store program instructions and data during execution.
MOVX transfers data between the accumulator and external RAM in the 8051 microcontroller.
MOVC is used to move code bytes from code memory to the accumulator.
27. How many bidirectional input output lines are present in Intel 8051?
Ans:
These lines are versatile and can be configured for both input and output operations.
It manages power modes and monitors external interrupts, contributing to power-efficient operation.
It is commonly used to create pauses or achieve specific timing intervals in the code.
An 11.0592 MHz crystal is commonly used to generate the clock signal for the 8051 microcontroller.
This specific frequency is chosen for compatibility with standard baud rates used in serial communication
33. List the register banks that are present in Intel 8051 Microcontroller.
Ans:
The Intel 8051 microcontroller features four register banks labeled as Bank 0, Bank 1, Bank 2, and Bank 3.
Switching between these banks allows the microcontroller to access different sets of general-purpose registers.
Software Interrupts (RST): RST 0 to RST 7 are restart instructions acting as software interrupts.
A bi-directional data bus allows data to flow bidirectionally between the microprocessor and external devices.
A register bank is a set of general-purpose registers that can be switched in and out of a microcontroller's active
register set.
This switching capability provides additional working storage for the processor.
37. How does the pin 𝑉𝑃𝑃 work in Intel 8051 Microcontroller?
Ans:
The 𝑉𝑃𝑃 (Programming Voltage) pin is used during EPROM programming to apply the programming voltage.
The RS (Register Select) pin in a 16x2 LCD module determines whether the data on the data bus is interpreted as a
command or character data.
CAS is a signal used in dynamic RAM (DRAM) devices to latch the column address during read or write operations.
The command register of a 16x2 LCD module is used to send control commands to the LCD, such as clearing the
display or shifting the cursor.
41. What are two methods that are used for digital to analog conversion?
Ans:
Two methods are PWM (Pulse Width Modulation) and DAC (Digital-to-Analog Converter).
PWM involves varying the duty cycle of a pulse signal, while DAC directly converts digital values to analog voltage.
42. What is the step size for a 10 bit Analog to Digital Converter?
Ans:
The step size for a 10-bit ADC is Vref/2^10, where Vref is the reference voltage.
It represents the smallest change in analog input that can be detected by the ADC.
The E (Enable) pin in a 16x2 LCD module is used to enable the LCD controller for reading data from the data bus.
It signals the LCD to process the data present on the data lines.
The RD' (Read) pin of the ADC 0804 chip initiates the conversion process and allows reading the converted analog
data.
It triggers the chip to provide the digital representation of the analog input.
45. How many data lines are present in DAC 0808 chip?
Ans:
The DAC 0808 chip has 8 data lines, enabling the conversion of an 8-bit digital input to an analog output.
46. How many data lines are present in ADC 0804 chip?
Ans:
The ADC 0804 chip typically has 8 data lines, providing an 8-bit digital output representing the converted analog input.
The 8257 DMA controller has a 16-bit address bus and counter.
This configuration allows efficient memory addressing and control over data transfer operations.
Contrast pins in an LCD module control the contrast or brightness of displayed characters.
They enable adjustments for optimal visibility and readability on the LCD screen.
50. How many bidirectional I/O lines are present in Intel 8255?
Ans:
The Intel 8255 programmable peripheral interface (PPI) features 24 bidirectional I/O lines (Port A, Port B, and Port C).
These lines can be configured for both input and output operations, providing versatile interfacing capabilities.
FOCUS
1 Explain the addressing modes of Intel 8085 Microprocessor with examples.
2. Draw and explain the opcode Fetch machine cycle timing Diagram of 8085 microprocessor.
Ans:
T1: Address bus is available, and the microprocessor sends the 16-bit memory address of the next instruction to the
address bus.
T2: The address is stable, and the control signals for memory read (RD) and chip select (CS) are activated.
T3: The memory responds by placing the opcode on the data bus. The microprocessor reads the opcode from the
data bus.
T4: The microprocessor increments the program counter (PC) to point to the next memory location.
3 Write an ALP for Intel 8085 to find the sum of first 10 natural numbers.
4. What is meant by interrupt, Explain priority interrupt of 8085
Mechanism to temporarily stop a running process in the CPU to handle another task or event.
Used for immediate attention to events like hardware signals, I/O requests, or errors.
2. TRAP:
Fixed vector addresses (RST 7.5 at 34H, RST 6.5 at 30H, RST 5.5 at 2CH).
1. Interrupt Types:
Hardware Interrupts: Triggered by external devices through interrupt request (IRQ) lines.
Software Interrupts: Initiated by executing the INT instruction with an interrupt number.
Contains 256 entries (vectors) in memory, each pointing to a specific Interrupt Service Routine (ISR).
Upon hardware interrupt, flags and instruction pointer (IP) are saved onto the stack. Interrupts are disabled.
Segment and offset are fetched from the corresponding IVT entry to jump to the ISR.
4. Software Interrupt:
Directly specifies the vector in the IVT or points to a specific software ISR.
5. Protected Mode:
In later x86 architectures, the Interrupt Descriptor Table (IDT) is used instead of the IVT.
The IDT contains descriptors providing information about interrupt or exception handlers.
Interrupt Pointer:
The interrupt pointer is a 32-bit value formed by combining the CS (code segment) and IP (instruction pointer) values
of the interrupt service routine.
Components CPU only CPU, memory (RAM and ROM), and I/O peripherals
Integration Low integration (external components required) High integration (all components on a single chip)
Power
Higher Lower
consumption
Personal computers, complex industrial Embedded systems like washing machines, keyboards,
Applications
controllers, traffic lights cameras, security alarms
Examples Intel Pentium, AMD Ryzen Atmel AVR, PIC Microcontrollers, ARM Cortex-M
Memory separation Separate memory for instructions and data Single memory for both instructions and data
Bus usage Separate buses for instructions and data Single bus for both instructions and data
Performance Potentially faster due to dedicated buses Simpler and cheaper design
Flexibility Less flexible, harder to modify More flexible, easier to modify and update code
Special Function Registers in the Intel 8051 microcontroller are memory-mapped registers that control specific
functions and features.
Examples include registers like P0 (Port 0), P1 (Port 1), TCON (TimerControl), TMOD(Timer Mode), etc.
SFRs are used to configure and control I/O, timers, serial communication, and other
peripherals.
DAC Function:
Conversion: Interprets digital values, reconstructs analog waveform using discrete voltage levels.
1. IR0 - IR7 (Interrupt Request Lines 0-7): Input lines for device-generated interrupt requests.
2. INT (Interrupt Acknowledge): Input signal from the CPU to acknowledge received interrupts (active-low).
3. CAS0 and CAS1 (Cascaded Mode Selection): Select operating mode; used for cascading multiple 8259A chips.
4. RD (Read) and WR (Write): Input signals for reading interrupt request register and writing command words/data.
5. A0 and A1 (Address Lines): Used for addressing specific registers during read or write operations.
6. INTA (Interrupt Acknowledge Output): Output signal to devices, indicating interrupt request acknowledgment.
9. CS (Chip Select): Input signal to enable or disable the 8259A for input or output operations.
LONG
Q. Draw and explain the timing diagram of the execution of instruction MVI A, 32H.
1 Draw and explain the architecture of Intel 8085 Microprocessor.
2 Explain different addressing modes of 8085 microprocessor
3. Describe in detail about 8086 microprocessor with it’s pin Diagram and configuration.
Ans:
Pins S0, S1, and S2: Status signals indicating the type of operation being performed.
Pin RD (Read) and WR (Write): Control signals for read and write operations.
Pins SP, BP, SI, DI: Stack and base pointers, source and destination index registers.
Pins CS, DS, ES, SS: Code, data, extra, and stack segment registers.
4 Suppose DS= 3000H, ES = 2000H, CS= 4000H, SS= 6000H, BX= 1234H, BP=3333H, SI= F000H,
DI= 2222H, What physical address are accessed by the following instruction of Intel 8086 microprocessor?
a. MOV AH, [BX+SI+10H]
b. MOV BH, [BP]
c. MOV CX, CS:[SI]
5 Draw suitable block diagram for register organization of Intel 8086 and explain about all the registers.
6 Write an Assembly Language Program for Intel 8086 to find the largest number in an array of 8 numbers.
7 Draw and Explain the architecture of Intel 8051 Microcontroller?
8. Discuss in detail about different types of interrupts in 8051 microcontroller.
Ans:
1. Timer 0 & 1 Overflow (TF0 & TF1): Triggered when their respective timers overflow, enabling timing applications.
Timer 0 Overflow Interrupt (TF0):
Used for various timing applications, such as periodic tasks, delay generation, and pulse width modulation.
Commonly used for longer time measurements and baud rate generation for serial communication.
2. External Hardware Interrupts (INT0 & INT1): Activated by transitions on specific pins, responding to external events
like button presses.
(INT0):
Can be used to respond to external events like button presses, sensor signals, or encoder pulses.
(INT1):
RI (Receive Interrupt): Occurs when a new data byte is received on the serial port.
TI (Transmit Interrupt): Occurs when the previous byte has been transmitted and the transmitter buffer is
empty.
9 Write an ALP for Intel 8051 to add two 8 bit numbers and store in a memory location A001H.
10 Explain the interfacing of a 4 X 4 Keyboard and Microcontroller with proper diagram and flow chart.
11 Explain the interfacing of ADC 0804 and Intel 8051 with proper diagram.
12 Draw and explain the architecture of Intel 8255
13. Draw the circuit diagram to interface 7-segement display with 8051 and explain.
1. 8051 Microcontroller (P2 Port): Connect the P2 port of the 8051 microcontroller to the inputs of the 7-segment
display. Each segment (A to G and DP) of the 7-segment display is controlled by a separate pin on the microcontroller.
2. 7-segment Display: This is a common cathode 7-segment display, where each segment (A to G and DP) is labeled.
Connect the cathode pins of the 7-segment display to the P2 port of the 8051 microcontroller through current-limiting
resistors (R1 to R4). The resistors are used to limit the current flowing through each segment.
3. Current Limiting Resistors (R1 to R4): These resistors limit the current flowing through each segment of the 7-
segment display to prevent damage. The values of these resistors depend on the specifications of the 7-segment
display and the operating voltage.
The program will determine which segments need to be illuminated to display the desired numbers or characters on
the 7-segment display.
1. Control Unit:
Mode Set Register (MSR): Determines the operating mode of the 8257.
Four sets of channel address registers (one for each channel - 0 to 3).
Consists of two 16-bit registers per channel: Base Address Register (BAR) and Word Count Register (WCR).
BAR holds the base address of the memory block for data transfer.
Connects the internal components of the 8257, facilitating data transfer within the controller.
4. Arbitration Logic:
5. Control Logic:
Decodes control signals and manages the overall operation of the DMA controller.
Generates various control signals to synchronize the operation of the DMA controller.