Microprocessor_ short_Qus
Microprocessor_ short_Qus
Ans: It is used:
i. For measurements, display and control of current, voltage, temperature, pressure, etc.
ii. For traffic control and industrial tool control.
iii. For speed control of machines.
Ans: The accumulator is the register associated with the ALU operations and sometimes
I/O operations. It is an integral part of ALU. It holds one of data to be processed by ALU.
It also temporarily stores the result of the operation performed by the ALU.
Ans:
Ans: SID (Serial input data line): It is an input line through which the microprocessor
accepts serial data.
SOD (Serial output data line): It is an output line through which the microprocessor
sends output serial data.
7. What is an Opcode?
Ans: The part of the instruction that specifies the operation to be performed is called the
operation code or opcode.
1
Ans: It is a status signal. It is used to differentiate between memory locations and I/O
operations. When this signal is low (IO/M = 0) it denotes the memory related operations.
When this signal is high (IO/M = 1) it denotes an I/O operation.
9. What is an Operand?
10. How many operations are there in the instruction set of 8085 microprocessor?
11. List out the five categories of the 8085 instructions. Give examples of the
instructions for each group.
Ans:
12. Explain the difference between a JMP instruction and CALL instruction.
Ans: A JMP instruction permanently changes the program counter. A CALL instruction
leaves information on the stack so that the original program execution sequence can be
resumed.
Ans: The IN instruction is used to move data from an I/O port into the accumulator. The
OUT instruction is used to move data from the accumulator to an I/O port. The IN &
OUT instructions are used only on microprocessor, which use a separate address space
for interfacing.
14. What is the difference between the shift and rotate instructions?
Ans: A rotate instruction is a closed loop instruction. That is, the data moved out at one
end is put back in at the other end. The shift instruction loses the data that is moved out of
the last bit locations.
2
16. What are the Control signals used for DMA operation?
Ans:- This state is used by slow peripheral devices. The peripheral devices can transfer
the data to or from the microprocessor by using READY input line. The microprocessor
remains in wait state as long as READY line is low. During the wait state, the contents of
the address, address/data and control buses are held constant.
18. List the four instructions which control the interrupt structure of the 8085
microprocessor.
Ans:-
* DI ( Disable Interrupts )
* EI ( Enable Interrupts )
* RIM ( Read Interrupt Masks )
* SIM ( Set Interrupt Masks )
Ans:- Polling or device polling is a process which identifies the device that has
interrupted the microprocessor.
Ans:- The 8085 microprocessor has five interrupt inputs. They are TRAP, RST 7.5, RST
6.5, RST 5.5, and INTR. These interrupts have a fixed priority of interrupt service. If two
or more interrupts go high at the same time, the 8085 will service them on priority basis.
The TRAP has the highest priority followed by RST 7.5, RST 6.5, RST 5.5. The priority
of interrupts in 8085 is shown in the table.
TRAP 1
RST 7.5 2
RST 6.5 3
RST 5.5 4
INTR 5
3
22. What is a microcomputer?
* Address bus
* Data bus
* Control and status signals
* Power supply and frequency signals
* Externally initiated signals
* Serial I/O ports
Ans:-
Ans:- The 8085 has 5 interrupt signals; they are INTR, RST7.5, RST6.5, RST5.5 and
TRAP
4
Ans:- The primary function of memory interfacing is that the microprocessor should be
able to read from and write into a given register of a memory chip. To perform these
operations the microprocessor should
Ans:-An instruction is a binary pattern entered through an input device to command the
microprocessor to perform that specific function
Ans:-The ALE is used to latch the lower order address so that it can be available in T2
and T3 and used for identifying the memory address. During T1 the ALE goes high, the
latch is transparent ie, the output changes according to the input data, so the output of the
latch is the lower order address. When ALE goes low the lower order address is latched
until the next ALE.
31. How many machine cycles does 8085 have, mention them
* Opcode fetch
* Memory read
* Memory write
* I/O read
* I/O write
* Interrupt acknowledge
* Bus idle
Ans: HOLD indicates that a peripheral such as DMA controller is requesting the use of
address bus, data bus and control bus. READY is used to delay the microprocessor read
or write cycles until a slow responding peripheral is ready to send or accept data. SID is
used to accept serial data bit by bit
5
33. Mention the categories of instruction and give two examples for each category.
Ans: The instructions of 8085 can be categorized into the following five categories
Ans: LDA copies the data byte into accumulator from the memory location specified by
the 16-bit address. STA copies the data byte from the accumulator in the memory
location specified by 16-bit address. DAA changes the contents of the accumulator from
binary to 4-bit BCD digits.
36. What is the use of addressing modes, mention the different types
Ans: The various formats of specifying the operands are called addressing modes, it is
used to access the operands or data. The different types are as follows
* Immediate addressing
* Register addressing
* Direct addressing
* Indirect addressing
* Implicit addressing
Ans: It is used to increase the driving capacity of the data bus. The data bus of a
microcomputer system is bi-directional, so it requires a buffer that allows the data to flow
in both directions.
6
Ans:
Ans: The stack is a group of memory locations in the R/W memory that is used for the
temporary storage of binary information during the execution of the program. The stack
related instructions are PUSH & POP.
Ans: The XRA A instruction is used to clear the contents of the Accumulator and store
the value 00H.
Ans:
CALL PUSH
1.When CALL is executed the 1.PUSH The programmer uses the
microprocessor automatically stores the 16- instruction to save the contents of the
bit address of the instruction next to CALL register pair on the stack
on the stack.
2. When PUSH is executed the stack
2.When CALL is executed the stack pointer is decremented by two.
pointer is decremented by two.
Ans: Microcontroller is a device that includes microprocessor; memory and I/O signal
lines on a single chip, fabricated using VLSI technology. Microcomputer is a computer
that is designed using microprocessor as its CPU. It includes microprocessor, memory
and I/O.
7
Ans: The flags are used to reflect the data conditions in the accumulator. The 8085 flags
are S-Sign flag, Z-Zero flag, AC-Auxiliary carry flag, P-Parity flag, CY-Carry flag.
44. How does the microprocessor differentiate between data and instruction?
Ans: When the first m/c code of an instruction is fetched and decoded in the instruction
register, the microprocessor recognizes the number of bytes required to fetch the entire
instruction. For example MVI A, Data, the second byte is always considered as data. If
the data byte is omitted by mistake whatever is in that memory location will be
considered as data & the byte after the “data” will be
treated as the next instruction.
Ans:
RET POP
1.RET transfers the contents of the top two 1.POP transfers the contents of the top two
locations of the stack to the PC locations of the stack to the specified
register pair
Ans: The assembler translates the assembly language program text which is given as
input to the assembler to their binary equivalents known as object code. The time
required to translate the assembly code to object code is called access time. The
assembler checks for syntax errors & displays them before giving the object code.
Ans: The loader copies the program into the computer’s main memory at load time and
begins the program execution at execution time.
Ans: A linker is a program used to join together several object files into one large object
file. For large programs it is more efficient to divide the large program modules into
smaller modules. Each module is individually written, tested & debugged. When all the
modules work they are linked together to form a large functioning program.
8
49. What is interrupt service routine?
Ans: Interrupt means to break the sequence of operation. While the CPU is executing a
program an interrupt breaks the normal sequence of execution of instructions & diverts
its execution to some other program. This program to which the control is transferred is
called the interrupt service routine.
Ans: It is a data method which is used when the I/O device and the microprocessor match
in speed. To transfer a data to or from the device, the user program issues a suitable
instruction addressing the device. The data transfer is completed at the end of the
execution of this instruction.
Ans: It is a data transfer method which is used when the speed of an I/O device does not
match with the speed of the microprocessor. Asynchronous data transfer is also called as
Handshaking.
Ans: There are two basic modes of operation of 8255, They are:
1. I/O mode.
2. BSR mode.
In I/O mode, the 8255 ports work as programmable I/O ports, while In BSR mode only
port C (PC0-PC7) can be used to set or reset its individual port bits. Under the IO mode
of operation, further there are three modes of operation of 8255, So as to support different
types of applications, viz. mode 0, mode 1 and mode 2.
Ans:
9
1. Two 8-bit ports (port A and port B) and two 4-bit ports (port C upper and lower)
are available. The two 4-bit ports can be combined used as a third 8-bit port.
2. Any port can be used as an input or output port.
3. Output ports are latched. Input ports are not latched.
4. A maximum of four ports are available so that overall 16 I/O configurations are
possible.
Ans: Two groups – group A and group B are available for strobe data transfer.
1. Each group contains one 8-bit data I/O port and one 4-bit control/data port.
2. The 8-bit data port can be either used as input or output port. The inputs and
outputs both are latched.
3. Out of 8-bit port C, PC0-PC2 is used to generate control signals for port B and
PC3=PC5 are used to generate control signals for port A. The lines PC6, PC7 may
be used as independent data lines.
56. What are the signals used in input control signal & output control signal?
Ans:
1. The 8-bit port is bi-directional and additionally a 5-bit control port is available.
2. Three I/O lines are available at port C, viz PC2-PC0.
3. Inputs and outputs are both latched.
4. The 5-bit control port C (PC3=PC7) is used for generating/accepting handshake
signals for the 8-bit data transfer on port A.
10
Ans: Each of the three counters of 8253 can be operated in one of the following six
modes of operation.
59. What are the different types of write operations used in 8253?
The control word register accepts data from the data buffer and initializes the counters, as
required. The control word register contents are used for
The mode control register is a write only register and the CPU cannot read its contents.
11