Microprocessor Viva Questions and Answers
Microprocessor Viva Questions and Answers
3. What is Bandwidth ?
The number of bits processed by the processor in a single instruction.
• This example copies a word sized value into the register AX.
• Combined, the three parameters in brackets determine what is called the effective address,
which is simply the offset referenced by the instruction
Data bus : This is used to carry the Data from the memory.
Control bus : This is used to carry the Control signals like RD/WR, Select etc.
<2> Direct:-A 16-bit memory address(offset) is directly specified in the instruction as a part of it.
<3> Register:-Data is stored in a register and it is referred using the particular register (except
IP).
<4> Register Indirect:-The address of the memory location which contains data or operand is
determined in an indirect way.
<6> Register Relative:-The data is available at an eefective address formed by adding an 8-bit or
16-bit displacement with the content of any one of the registers BX,BP,SI and DI in the default
(either DS or ES) segment.
<7> Based Indexed:-The effective address of the data is formed,in this addressing mode,by
adding content of a base register to the content of an index register.
<8> Relative Based Indexed:- The effective address is formed by adding an 8 or 16-bit
displacement with the sum of contents of any one of the base registers and any one of the index
registers,in the default segment.
<9> Intrasegment Direct Mode:-In this mode,the address to which the control is to bve
transferred lies in the segment in which the control transfer instruction lies and appears directly
in the instruction as an immediate displacement value.
<10> Intrasegment Indirect Mode:-In this mode,the displacement to which the control is to be
transferred,is in the same segment in whgich the control transfer instruction lies,but it is passed
to the instruction indirectly.
<11> Intersegment Direct:-In this mode,the address to which the control is to be transferred is in
a different segment.
<12> Intersegment Indirect:-In this mode,the address to which the control is to be transferred lies
in a different segment and it is passed to the instruction indirectly sequentially.
28. What are the General Data Registers & their uses?
A:- The Registers AX,BX,CX,DX are the general Purpose 16-bit registers.AX register as 16-bit
accumulator.BX register is used as an offset Storage.CX register is used as default or implied
counter.Dx register is used as an implicit operand or destination in case of a few instructions.
T-Trap Flag:-Is set,the processor enters the single step execution mode.
I-Interrupt Flag:-Is set,the maskable interrupts are recognised by the CPU.
D-Direction Flag:-Is set for autoincrementing or autodecrementing mode in string manipulation
instructions.
AC-Auxiliary Carry Flag:-Is set if there is a carry from the lowest nibble during addition or
borrow for the lowest nibble.
O-Overflow Flag:-Is setif the result of a signed operation is large enough to be accommodated in
a destination register.
A:- Rep
MovSB/MovSW
Cmps
Scas
Lods & Stos
62. What is the drawback in machine language and assembly language, programs?
The machine language and assembly language programs are machine dependent. The programs
developed using these languages for a particular machine cannot be directly run on another
machine .
73. How clock signal is generated in 8086? What is the maximum internal clock frequency
of 8086?
The 8086 does not have on-chip clock generation circuit. Hence the clock generator chip, 8284 is
connected to the CLK pin of8086. The clock signal supplied by 8284 is divided by three for
internal use. The maximum internal clock frequency of8086 is 5MHz.
Polling is a scheme or an algorithm to identify the devices interrupting the processor. Polling is
employed when multiple devices interrupt the processor through one interrupt pin of the
processor.
90. What are the control words of 8251A and what are its functions ?
The control words of 8251A are Mode word and Command word. The mode word informs 8251
about the baud rate, character length, parity and stop bits. The command word can be send to
enable the data transmission and reception.
91. What are the information that can be obtained from the status word of 8251?
The status word can be read by the CPU to check the readiness of the transmitter or receiver and
to check the character synchronization in synchronous reception. It also provides information
regarding various errors in the data received. The various error conditions that can be checked
from the status word are parity error, overrun error and framing error.
The timing and control unit synchronizes all the microprocessor operations with clock and
generates control signals necessary for communication between the microprocessor and
peripherals.
103. Write the special functions carried by the general purpose registers of 8086.
The special functions carried by the registers of 8086 are the following.
Register Special function
1. AX 16-bit Accumulator
2. AL 8-bit Accumulator
3. BX Base Register
4. CX Count Register
5. DX .Data Register
109. List the components of microprocessor (single board microcomputer) based system
The microprocessor based system consist of microprocessor as CPU, semiconductor memories
like EPROM and RAM, input device, output device and interfacing devices.
111. What is the difference between CPU bus and system bus?
The CPU bus has multiplexed lines but the system bus has separate lines for each signal. (The
multiplexed CPU lines are demultiplexed by the CPU interface circuit to form system bus).
114. Why EPROM is mapped at the beginning of memory space in 8085 system?
In 8085 microprocessor, after a reset, the program counter will have OOOOH address. If the
monitor program is stored from this address then after a reset, it will be executed automatically.
The monitor
program is a permanent program and stored in EPROM memory. If EPROM memory is mapped
at the beginning of memory space, i.e., at OOOOH, then the monitor program will be executed
automatically after a reset.
118. Give some examples of port devices used in 8085 microprocessor based system?
The various INTEL I/O port devices used in 8085 microprocessor based system are 8212, 8155,
8156, 8255, 8355 and 8755.
127. How many machine cycles constitute one instruction cycle in 8085?
Each instruction of the 8085 processor consists of one to five machine cycles.
130. What operation is performed during first T -state of every machine cycle in 8085 ?
In 8085, during the first T -state of every machine cycle the low byte address is latched into an
external latch using ALE signal.
132. How the 8085 processor differentiates a memory access (read/write) and 1/0 access
(read/write)?
The memory access and 1/0 access is differentiated using 10 I M signal. The 8085 processor
asserts 10 I M low for memory read/write operation and 10 I M is asserted high for 1/0
read/write operation.