MPMC 2marks Question&Ans
MPMC 2marks Question&Ans
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 of 8085 is +5v and
clock frequency in 3MHZ.
4. What is an opcode ?
The part of the instruction that specifies the operation to be performed is called the
operation code or opcode.
11. How many machine cycles does 8085 have, mention them?
The 8085 have seven machine cycles they are
1. Opcode fetch 2. Memory read
3. Memory write 4. I/O read
5. I/O write 6. Interrupt acknowledge
7. Bus idle
13.Define flags?
The flags are used to reflect the data conditions in the accumulator.the 8085 flags are s-
sign flag,zero flag,auxillary flag,parity flag,CY-CARRY FLAG
D7 D6 D5 D4 D3 D2 D1 D0
S Z AC P CY
14. Difference between memory mapped I/O and peripheral I/O ?
The data transfer between any general-purpose The data transfer only between accumulator
register and I/O port and I/O port
More hardware is required to decode 16-bit Less hardware is required to decode 8-bit
address address
15. Define pipelining?
A 6-byte instruction queue is presented at the Bus Interface Unit (BIU). It is used to pre-fetch
and store at the maximum of 6 bytes of instruction code from the memory. Due to this,
overlapping instruction fetch with instruction execution increases the processing speed.
TWO MARKS
1. What is an instruction?
An instruction is a binary pattern entered through an input device to command the
microprocessor to perform that specific function.
2. How many operations are there in the instruction set of 8085 microprocessor?
There are 74 operations in the 8085 microprocessor
3. List out the five categories of the 8085 instructions.give ex of the instructions for each
group?
1. Data transfer group – MOV,MVI,LXI 2. Arithmetic group – ADD,SUB,INR.
3. Logical group- ANA,XRA,CMP. 4. Branch group – JMP,JNZ,CALL.
5. Stack I/O and machine control group – PUSH,POP,IN,HLT.
8. Mention the categories of instruction and give two ex for each category?
The instructions of 8085 can be categorized in to the following five
1. Data transfer MOV RD,RS,STA 16-BIT
2. Arithmetic ADD R,DCR M.
3. Logical XRI 8- bit,RAR
4. Branching JNZ CALL 16-bit
5. Machine control HLT,NOP
CALL PUSH
When CALL is executed the microprocessor The program uses the instruction PUSH to save
automatically stores the 16-bit address of the the contents of the register pair on the stack
instruction next to CALL on the stack
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
When CALL is executed the stack pointer is When PUSH is executed the stack pointer
decremented by two register is decremented by two
15. How does the microprocessor differentiate b/w 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 ex 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 and the byte
after the “data”will be treated as the next instruction.
RET transfers the content of the top two Pop transfers the content of the top two
locations of the stack to the PC locations of the stack to the specified register
pair
When RET is executed the SP is incremented When POP is executed the SP is incremented
by two.and it has 8 condational RETURN by two and no conditional POP instructions
instructions
3. 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
Bank 0
Bank 1
Bank 2
Bank 3
5. 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.
12. Write a program to subtract the contents of RI of Bank0 from the contents of R0 0f
Bank2.
MOV PSW, #10
MOV A, R0
MOV PSW, #00
SUBB A, R1
13. How the RS-232 serial bus is interrupt to 1TL logic device?
The RS-232 signal voltage level devices are not compatible with TTL logic levels. Hence
for interfacing TTL devices to RS-232 serial bus, level converters are used. The popularly used
level converters are MC 1488 & MC 1489 or MAX 232.
TWO MARKS
2. What are the different types of methods used for data transmission?
The data transmission between 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 place in either direction, but
at a time may be transmitted only in one direction. For example, a computer may communication
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. computer is receiver). However, it is not possible to transmit
data from the computer to terminal and from terminal to the computer simultaneously.
13. What are the different types of write operations used in 8253?
There are two types write operation 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 initialize
(a) Initializing the operating modes (mode 0- mode 4)
(b) Selection of counters (counter 0- counter 2)
(c) Choose 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.
23. 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 functions of the BSR function.
TWO MARKS
1. Write a program using 8051 assembly language to change the data 55h stored in the
lower byte of the data pointer register to AAH using rotate instruction?
MOV DPL,#55H
MOV A,DPL
2. Explain 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
12. Write a program to subtract two 8-bit numbers & exchange the digits using 8051?
MOV A,#9F
MOV R0,#40
SUBB A,R0
SWAP A
13. Write a program to subtract the contents of R1 of bank 0from the contents of R0 of
bank 2 using 8051?
MOV PSW,#10
MOV A,R0
MOV PSW,#00
SUBB A,R1