2 Marks MPMC QB With Answers
2 Marks MPMC QB With Answers
2 Marks MPMC QB With Answers
com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Execution Unit: It fetches, decodes and executes the instructions. It consists of Instruction
decoder, Arithmetic and Logic unit, Flag registers, General purpose registers, Pointers and
index registers.
1. B.3. Explain any 8 addressing modes of 8086 processor with an example. (April/ May 2011)
1. B.4. Explain in detail about 8086 instruction set. ( Nov/Dec 2010,2012, April/May 2011)
Data transfer instructions
Arithmetic and logical instructions
Shift instructions
Rotate instructions
String instructions
Program control transfer instructions
Unconditional Jump instructions
Iteration control instructions
Processor control instructions
External hardware synchronization instructions
Interrupt instructions
Sign Extension instructions
1.B.5.Explain in detail about Assembler derivatives and operators. (Nov/ Dec 2011,2012, April/
MAY 2011,2013)
There are some instructions in the assembly language which are not a part of
processor instruction set. These instructions are instructions to the assembler, linker and loader.
These are referred to as pseudo-operations or as assembler derivatives.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Commonly used assembler derivatives are ALIGN, ASSUME, END, DUP, EQU,
EXTRN, GROUP, LABEL, NAME, OFFSET etc.,
Variable is an identifier that is associated with the first byte of data item. In
assembly language base of the number is indicated by suffix.
B- Binary
D-Decimal
O-Octal
H- Hexadecimal
Software interrupts
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Maskable interrupts
The event that causes the interruption is called interrupt and the special routine executed
to service the interrupt is called interrupt service routine.
1.B.8.Explain the interrupt structure of an 8086 microprocessor with 8086 interrupt pointer
table.(April/May 2011,2012,2014)
The event that causes the interruption is called interrupt and the special routine
executed to service the interrupt is called interrupt service routine.
When the external device interrupts the processor, processor has to execute
interrupt service routine for servicing the interrupt. If the internal control circuit of the
processor produces a CALL to a predefined memory location which is the starting address of
interrupt service routine, then that address is called Vector address and such interrupts are
called vector interrupts.
In an 8086 system the first 1 Kbyte of memory from 00000H to 003FFH is
reserved for storing the stating address of interrupt service routines. This block of memory is
often called interrupt vector table or the interrupt pointer table.
and the bus is not to be used by another processor. RQ / GT signals are sampled at the rise
edge of the clock pulse.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
2. A.4. How does CPU differentiate the 8087 instructions from its own instructions? (May/June
2013)
8087 instructions can be distinguished from 8086 instructions by letter F which
stands for floating point number. All mneumonics in 8087 begins with letter F. It has 68
instructions.
2. A.5 In what ways are the microprocessor and co-processor differ from each other?
(Nov/Dec 2012 , April/May 2010)
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 Coprocessor is a processor which is specially designed processor to work under the
control of the processor and to support special processing capabilities.
2.A.6 Compare closely coupled configuration features with loosely coupled configuration features.
(May/June 2012, April/May 2010)
closely coupled configuration features:
A multiprocessor system with common Shared memory.
i) Parallelism can be implemented less efficiently.
ii) System structure is less flexible.
Loosely coupled configuration features
i) A multiprocessor system has its own Private local memory
ii) Parallelism can be implemented more efficiently.
iii) System structure is more flexible.
2.A.7 List any four 8087 data formats. (May/June 2012)
i) Word integer
ii) Short integer
iii) Short real
iv) Long real
2.A.8. What are the features of closely coupled multiprocessor systems? (Nov/Dev 2011)
i)A multiprocessor system with common Shared memory.
ii) Parallelism can be implemented less efficiently.
ii) System structure is less flexible.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
PART-B
2. B.1.Explain Min/Max mode of 8086 microprocessor. (April/May 2011)
Minimum Mode:
Maximum Mode:
2. B.2.Describe the minimum mode 8086 system and its timing diagram.(May/June 2013)
Minimum Mode:
It is implemented by using two EPROMs and two RAMs. It uses driver circuit to
increase the
current. Timing diagram for read and write operations. The 8284 clock
Clock generation
RESET Synchronization
READY synchronization
www.Vidyarthiplus.com
www.Vidyarthiplus.com
performance degradation which occur when two processor access the same memory. CPU is
the master or host and the supporting processor is slave. The CPU provides control logic.
Bus request signal from the supporting processor is connected to the CPU. In closely
coupled system no special instructions like WAIT or ESC is used. Status bit is used.
2. B.4.Explain in detail about Loosely Coupled Multiprocessor configuration. (April/May 2010,
Nov/Dec 2010, 2012, 2013)
A multiprocessor system in which each processor has its own private local
memory is known as loosely coupled system.
Here the information is transferred from one processor to other by messagepassing system.
2. B.5. Discuss the schemes used to solve the bus arbitration problem in multiprocessors
(Nov/ Dec 2011).
Bus Arbitration: The mechanism which decides the selection of current master to access bus
is Known as bus arbitration. The three different mechanisms are commonly used are:
Daisy Chaining
Polling
Independent requesting
Daisy chaining: Simple and cheaper method. All masters make use of same line for request.
Polling method: Controller is used to generate address for the masters.
Independent priority: Each master has a separate pair of bus request and bus grant lines.
UNIT III I/O Interfacing
PART-A
3. A.1.List the features of memory mapped I/O. (April/May 2014)
(i) Maximum number of I/O devices are 1 Mbyte.
(ii) Requires decoding of 20 address lines and hence more hardware involved.
3.A.2.What are the basic modes of operation of 8255? (Nov/Dec 2013)
There are two basic modes of operation of 8255. They are:
(i) I/O mode
(ii) BSR mode
www.Vidyarthiplus.com
www.Vidyarthiplus.com
3. A.3.How to change the direction of the stepper motor from clockwise direction to anticlockwise
direction using a program segment? ( Nov/Dec 2012)
By reversing step sequence (excitation code sequence) it is possible to change the
direction of rotation of the stepper motor.
3. A.4.Name the peripheral ICs used for parallel and serial data transfer. (April/May 2010)
8255 and 8251.
3. A.5.What are the advantages of Programmable interval Timer / Counter IC ? ( April/May 2014)
(i)The 8253/8254 includes three identical 16 bit counters that can operate independently.
(ii)The 8254 is a superset of 8253.
3. A.6.What is the function of scan section in 8279 controller? (April/May 2014)
(i) Encoded scan- Scan lines are decoded externally to provide 8 scan lines.
(ii) Decoded scan- internal decoder decodes and provides 4 scan lines.
3. A.7.What is the cascaded mode of 8259 programmable interrupt controller? (April/May 2010)
The mode in which 8259s are interconnected to get multiple interrupt is called cascaded
mode.
3. A.8.What is DMA? (Nov/Dec 2011, 2012)
A special control unit may be provided to enable transfer a block of data directly between
an external device and memory without contiguous intervention by the CPU. This approach is
called DMA (Direct Memory Access).
3. A.9.State the advantages of DMA. (Nov/Dec 2011, 2012)
(i) The data transfer is very fast.
(ii) Processor is not involved in the data transfer operation and hence it is free to execute
other tasks.
3. A.10.What is the difference between two key lockout and N- key rollover modes in 8279?
(Nov/Dec2010)
2-Key lock out: Simultaneous key depression is not allowed.
N-key rollover: Each key depression is treated independently from all others.
PART-B
3. B.1.With a neat diagram discuss the various modes of operation of 8255.(April/May 2011,2012)
There are two basic modes of operation of 8255. They are:
I/O mode
www.Vidyarthiplus.com
www.Vidyarthiplus.com
BSR mode
Bit Set-Reset mode: The individual bits of Port C can be set or reset by sending out a
single OUT instruction to the control register. When Port C is used for control/Status
operation, this features can be used to set or reset individual bits.
I/O modes: There are three types. They are
Mode 0: Outputs are latched. Inputs are buffered. Do not have handshake.
Mode 1: input or output data transfer is controlled by handshake signals.
Mode 2: Bidirectional. Both inputs and outputs are latched.
3. B.2. Explain the parallel communication interface with microprocessor. ( Nov/Dec 2012)
Interfacing 8255 to 8086 in I/O Mapped I/O Mode:
8086 has four special instruction in I/O Mapped I/O Mode: IN, INS, OUT,OUTS
Only 256 address can be generated
Only lower data bus is used as 8255 is 8 bit device
Direct addressing mode is used.
Interfacing 8255 to 8086 in Memory Mapped I/O:
20 address lines to identify an I/O device
I/O device is connected to memory register
Address lines are used by 8255 for internal decoding
Same control signals are used to access I/O as those of memory.
3. B.3.With neat sketch, explain the microprocessor based traffic light control system.(April/ May
2011, Nov/ Dec 2012).
The traffic light should be controlled in the following manner.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Both hardware and software are used , The electrical bulbs are controlled by relays .
3. B.4. With the help of block diagram explain the operation of USART(8251A). (Nov/Dec 2011)
The device s which provides synchronous as well as asynchronous
transmission and reception are called Universal Synchronous Asynchronous Receiver
Transmitter (USART)
Features: Asynchronous protocol
Three counters
Control register
Counters: Each counter has two input signals CLOCK and GATE and one output signal
OUT. It consists of a single, 16 bit, pre/settable, down counter.
Data bus buffer: Three basic functions
www.Vidyarthiplus.com
www.Vidyarthiplus.com
and
Control Word register : It is used to write a command word which specifies the counter to
be used, its mode can either read or write operation.
3. B.6. Discuss briefly about Keyboard/Display controller. (April/May 2013)
Keyboard / Display controller consists of four main sections:
Scan section
Keyboard section
Display section
CPU interface and control section : It consists of data buffers, I/O control, Control and
timing registers and control logic. Data buffers are 8 bit bidirectional buffers.
Scan section : The Scan section has a scan counter which has two modes. Encoded mode
and Decoded mode.
Keyboard section: It consists of return buffers, Keyboard debounce and control,
FIFO/sensor RAM and FIFO sensor RAM status. There functions depend on selected
keyboard mode out of three keyboard input modes: Scanned Keyboard, Sensor matrix and
Stored input.
Display section: It consists of display RAM, display address registers and display registers.
3.B.7.With a neat block diagram explain the operation of 8259 PIC. (Nov/Dec 2011)
8259 PIC includes eight blocks:
Read/Write logic
Control Logic
Three registers
Priority resolver
Cascaded buffer
www.Vidyarthiplus.com
www.Vidyarthiplus.com
PART-A
4. A.1.Distinguish between microprocessor and microcontroller. (April/May 2014)
Microprocessor:
(i) It has one or two bit handling instructions.
(ii) Access time for memory and I/O devices are more.
Microcontroller:
(i) It has many bit handling instructions.
(ii) Less access time for built/in memory and I/O devices.
4. A.2.What is the significance of the EA line of 8051 microcontroller? (April/ May 2014)
It stands for external access. When the EA pin is connected to Vcc, program fetched
to addresses 0000H through 0FFFH are directed to the internal ROM and program fetches to
addresses 1000H through FFFFH are directed to external ROM / EPROM. When the EA pin
is grounded, all addresses fetched by program are directed to the external ROM/EPROM.
4.A.3. List the different types of 8051 instructions. (April/May 2010)
(i) Data transfer instructions
(ii) Byte level logical instructions
(iii) Arithmetic instructions
(iv) Bit level logical instructions
(v) Rotate and Swap instructions
(vi) Jump and Call instructions
4. A.4.What are the addressing modes supported by 8051? (Nov/Dec 2010, April/May 2011)
(i) Register addressing mode
(ii) Direct Byte addressing mode
(iii) Register Indirect addressing mode
(iv) Immediate addressing mode
(v)
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
4.B.2 Describe the architecture of 8051 with neat diagram. (Nov/ Dec 2010, April/May 2011)
8051 is a 8 bit microcontroller, It consists of
CPU
Data pointer
Program counter
Flag registers
Carry flag
FO
Overflow flag
Parity flag
Special Function Registers: The group of registers implemented to perform special functions
and are located immediately above the 128 bytes of RAM are called special function
registers.
4. B.3 Explain the different types of addressing modes in 8051. (Nov/ Dec 2010,
April/ May 2011)
www.Vidyarthiplus.com
www.Vidyarthiplus.com
The way using which the data sources or destination addresses are specified in the
instruction mnemonic for moving the data, is called addressing mode. They are
Register addressing
Immediate addressing
Index addressing
Stack addressing
Increment
Decrement
Addition
Subtraction
Multiplication
Divison
Decimal Operations.
UNIT V Interfacing Microcontroller
PART-A
5.A.1.Write an ALP to receive input from port P1.5 and if it is high then an output 35H is sent to
port 0. (April/May 2013)
SETB P1.5
www.Vidyarthiplus.com
www.Vidyarthiplus.com
8 bit microcontroller, each 16 bit register can be assessed as Low-byte register (TL)
And High byte register (TH)
C/T
Gate
5.B.2. Write a program for counter 1 in mode 2 to count the pulses and display the state of TL1
count on PORT 2. Assume that clock input is connected to T1 pin ( P 3.5) ( Nov/Dec 2012).
MOV TMOD, # 01100000B
MOV TH1, # 0
SETB P3.5
START:
SETB TR1
BACK:
MOV A, TL1
MOV P2, A
JNB TF1, BACK
www.Vidyarthiplus.com
www.Vidyarthiplus.com
CLR TR1
CLR TF1
SJMP START
It is full duplex.
5. B.4. Explain how an LCD is interfaced with 8051. (Nov/Dec 2012, May/June 2013)
LCD modules are available which have built in drivers for LCD and interfacing circuit
to interface them to microprocessor/microcontroller system.
5. B.5.Explain the interfacing of keyboard with 8015 microcontroller. (Nov/Dec 2010, Nov/Dec
2013)
In keyboard interfacing eight keys are individually collected to specific pins of port 1.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
To reduce the number of connection keys, they are arranged in matrix form.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com