Microprocessor 2 Marks V PDF
Microprocessor 2 Marks V PDF
com
TWO MARKS
1. What is Microprocessor? Give the power supply & clock frequency of 8085.
A microprocessor is a multipurpose, programmable logic device that reads binary
instructions from a storage device called memory accepts binary data as input and processes data
according to those instructions and provides result as output. The power supply of 8085 is +5V
and clock frequency in 3MHz.
7. What is an Opcode?
The part of the instruction that specifies the operation to be performed is called the operation
code or opcode.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
9. What is an Operand?
The data on which the operation is to be performed is called as an Operand.
10. How many operations are there in the instruction set of 8085 microprocessor?
There are 74 operations in the 8085 microprocessor.
11. List out the five categories of the 8085 instructions. Give examples of the instructions
for each group.
• Data transfer group – MOV, MVI, LXI.
• Arithmetic group – ADD, SUB, INR.
• Logical group –ANA, XRA, CMP.
• Branch group – JMP, JNZ, CALL.
• Stack I/O and Machine control group – PUSH, POP, IN, HLT.
12. What is the difference between a JMP instruction and CALL instruction?
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.
14. What is the difference between the shift and rotate instructions?
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.
18. List the four instructions which control the interrupt structure of the 8085
microprocessor.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
• DI ( Disable Interrupts )
• EI ( Enable Interrupts )
• RIM ( Read Interrupt Masks )
• SIM ( Set Interrupt Masks )
www.Vidyarthiplus.com
www.Vidyarthiplus.com
31. How many machine cycles does 8085 have, mention them?
The 8085 have seven machine cycles. They are
• Opcode fetch
• Memory read
• Memory write
• I/O read
• I/O write
• Interrupt acknowledge
• Bus idle
33. Mention the categories of instruction and give two examples for each category.
The instructions of 8085 can be categorized into the following five
• Data transfer MOV Rd,Rs STA 16-bit
• Arithmetic ADD R DCR M
• Logical XRI 8-bit RAR
www.Vidyarthiplus.com
www.Vidyarthiplus.com
36. What is the use of addressing modes, mention the different types?
The various formats of specifying the operands are called addressing modes, it is used to ccess
the operands or data. The different types are as follows
• Immediate addressing
• Register addressing
• Direct addressing
• Indirect addressing
• Implicit addressing
www.Vidyarthiplus.com
www.Vidyarthiplus.com
contents of the register pair on the stack. When CALL is executed the stack pointer is
decremented by two. When PUSH is executed the stack pointer register is decremented by two.
44. How does the microprocessor differentiate between data and instruction?
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.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
the address of the current stack, which is used to store the temporary results. If the amount of
data used is more the Extra segment register points out where the large amount of data is stored
in the memory.
73. What is the maximum memory size that can be addressed by 8086?
In 8086, an memory location is addressed by 20 bit address and the address bus is 20 bit
address and the address bus is 20 bits. So it can address up to one mega byte (2^20) of memory
space.
75. What are the different flag available in status register of 8086?
There are 6 one bit flags are present. They are,
AF - Auxiliary Carry Flag
CF - Carry Flag
OF - Overflow Flag
SF - Sign Flag
PF - Parity Flag
ZF - Zero Flag
www.Vidyarthiplus.com
www.Vidyarthiplus.com
80. What are the functions of bus interface unit (BIU) in 8086?
(a) Fetch instructions from memory.
(b) Fetch data from memory and I/O ports.
(c) Write data to memory and I/O ports.
(d) To communicate with outside world.
(e) Provide external bus operations and bus control signals.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
90. What are the schemes for establishing priority in order to resolve bus arbitration
problem?
There are three basic bus access control and arbitration schemes
1. Daisy Chaining
2. Independent Request
3. Polling
92.What are the different types of methods used for data transmission?
The data transmission between two points involves unidirectional or bi-directional
transmission of meaningful digital data through a medium. There are basically there modes of
data transmission
(a) Simplex
(b) Duplex
(c) Half Duplex
In simplex mode, data is transmitted only in one direction over a single communication
channel.For example, a computer (CPU) may transmit data for a CRT display unit in this mode.
In duplex mode, data may be transferred between two transreceivers in both directions
simultaneously.
In half duplex mode, on the other hand, data transmission may take pace in either
direction, but at a time data may be transmitted only in one direction. For example, a computer
may communicate with a terminal in this mode. When the terminal sends data (i.e. terminal is
sender). The message is received by the computer (i.e the computer is receiver). However, it is
not possible to transmit data from the computer to terminal and from terminal to the computer
simultaneously.
96. What are the functional types used in control words of 8251a?
www.Vidyarthiplus.com
www.Vidyarthiplus.com
The control words of 8251A are divided into two functional types.
1. Mode Instruction control word
2. Command Instruction control word
Mode Instruction control word :-This defines the general operational characteristics of 8251A.
Command Instruction control word:-The command instruction controls the actual operations of
the selected format like enable transmit/receive, error reset and modem control.
100. What are the signals used in input control signal & output control signal?
Input control signal
STB (Strobe input)
IBF (Input buffer full)
INTR(Interrupt request)
Output control signal
OBF (Output buffer full)
ACK (Acknowledge input)
INTR(Interrupt request)
www.Vidyarthiplus.com
www.Vidyarthiplus.com
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.
103. What are the different types of write operations used in 8253?
There are two types of write operations in 8253
(1) Writing a control word register
(2) Writing a count value into a count register
The control word register accepts data from the data buffer and initializes the counters, as
required. The control word register contents are used for
(a) Initializing the operating modes (mode 0-mode4)
(b) Selection of counters (counter 0- counter 2)
(c) Choosing binary /BCD counters
(d) Loading of the counter registers.
The mode control register is a write only register and the CPU cannot read its contents.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
The scan counter has two modes to scan the key matrix and refresh the display. In the
encoded mode, the counter provides binary count that is to be externally decoded to provide the
scan lines for keyboard and display. In the decoded scan mode, the counter internally decodes
the least significant 2 bits and provides a decoded 1 out of 4 scan on SL0-SL3.The keyboard and
display both are in the same mode at a time.
1.Display Scan.
In this mode, 8279 provides 8 or 16 character-multiplexed displays those can be organized as
dual 4-bit or single 8-bit display units.
2.Display Entry
8279 allows options for data entry on the displays. The display data is entered for display from
the right side or from the left side.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
118. What is the purpose of control word written to control register in 8255?
The control words written to control register specify an I/O function for each I.O port.
The bit D7 of the control word determines either the I/O function of the BSR function.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
128.Define HRQ.
The hold request output requests the access of the system bus. In non- cascaded 8257
systems, this is connected with HOLD pin of CPU. In cascade mode, this pin of a slave is
connected with a DRQ input line of the master 8257, while that of the master is connected with
HOLD input of the CPU.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
TXD- Transmitter Data Output is a output pin carries serial stream of the transmitted data
bits along with other information like start bit, stop bits and priority bit.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
139. Write the advantages of loosely coupled system over tightly coupled systems?
1. More number of CPUs can be added in a loosely coupled system to improve the system
performance.
2. The system structure is modular and hence easy to maintain and troubleshoot.
3. A fault in a single module does not lead to a complete system breakdown.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
A device which contains the microprocessor with integrated peripherals like memory,
serial ports, parallel ports, timer/counter, interrupt controller, data acquisition interfaces like
ADC,DAC is called microcontroller.
150. State the function of RS1 and RS0 bits in the flag register of intel 8051
microcontroller?
RS1 , RS0 – Register bank select bits
RS1 RS0 Bank Selection
Bank 0
Bank 1
Bank 2
Bank 3
151. Write a program using 8051 assembly language to change the date 55H stored in the
lower byte of the data pointer register to AAH using rotate instruction.
MOV DPL,#55H
MOV A, DPL
RL A
Label :SJMP label
152. Give the alternate functions for the port pins of port3?
RD WR T1
INT1 INT0 TXD RXD
RD – Read data control output.
WR – Write data control output.
T1 – Timer / Counter1 external input or test pin.
T0 – Timer / Counter0 external input or test pin.
INT1- Interrupt 1 input pin.
INT 0 – Interrupt 0 input pin.
TXD – Transmit data pin for serial port in UART mode.
RXD - Receive data pin for serial port in UART mode.
153. Specify the single instruction, which clears the most significant bit of B register of
8051, without affecting the remaining bits.
Single instruction, which clears the most significant bit of B register of 8051, without
affecting the remaining bits is CLR B.7.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Microcontroller
Microcontroller based system requires less hardware reducing PCB size and increasing
the reliability.
Less access times for built-in memory and I/O devices.
It has many bit handling instructions
It has one or two instructions to move data between memory and CPU.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
160.What are the contents of the accumulator after the execution of the following program
segments?
MOV A,#3CH
MOV R4,#66H
ANL A,R4
A 3C
R4 66
A 24
161. Write a program to load accumulator A, DPH and DPL with 30H.
MOV A,#30
MOV DPH,A
MOV DPL,A
163. How the RS -232C serial bus is interfaced to 1TL logic device?
The RS-232C signal voltage levels are not compatible with TTL logic levels. Hence for
interfacing TTL devices to RS-232C serial bus, level converters are used. The popularly used
level converters are MC 1488 & MC 1489 or MAX 232.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
d. It has 100 instructions, which can operate on bit, byte, word, and double words.
e. The bit operations are possible and these can be performed on any bit in the register file or in
the special function register.
www.Vidyarthiplus.com