Unit-I (8086) : Microprocessor and Microcontrollers
Unit-I (8086) : Microprocessor and Microcontrollers
Unit-I (8086) : Microprocessor and Microcontrollers
Unit-I (8086)
3. 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.
7. What is the difference between segment register and general purpose register?
The segment registers are used to store 16 bit segment base address of the four memory
segments. The general purpose registers are used as the source or destination register during
data transfer and computation, as pointers to memory and as counters.
9. Write the special functions carried by the general purpose registers of 8086.
The special functions carried by the registers of 8086 are the following.
12. Describe the difference between the instructions MOV AX, 2437H and MOV AX,[2437H].
Difference between the instructions MOV AX, 2437H and MOV AX,[2437H] are former
instruction takes 2437 as 16-bit data and latter instruction takes 2437 as 16-bit address.
15. In 8086 processor the code segment contains 4000H and instruction pointer contains
9F20H. Find the memory location addressed by the processor.
The LOCK prefix allows a microprocessor to make sure that another processor does not take
control of the system bus while it is in the middle of a critical instruction which uses the system
bus.
ESCAPE:
This instruction is used to pass instructions to a coprocessor such as the 8087 math coprocessor
which shares the address and data bus with an 8086.
18.Give the contents of the flag register after execution of following addition.
0110 0101 1101 0001
+ 0010 0011 0101 1001
---------------------------
1000 1001 0010 1010
-----------------------------------
SF = 1, ZF = 0, PF = 1, CF = 0, AF = 0, OF=1.
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
24. What is the operation performed when TEST input pin is low?
If the TEST input goes low, execution will continue, else, the processor remains in an idle state.
The input is synchronized internally during each clock cycle on leading edge of clock.
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
___
28. What is the significance of MX/MN pin in 8086?
The above said pin is used for selecting the mode of the operation of the processor. HIGH in
that pin declares that the system comprises of uni-processor (Minimum Mode) and LOW
declares that the system comprises of multi-processor (Maximum Mode).
29. What are the differences between maximum mode and minimum mode?
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
34. Give the advantage of loosely coupled system over the tightly coupled system.
The loosely coupled system has the following advantage over the tightly coupled system,
• More number of CPUs can be added in a loosely coupled system to improve the system
performance.
• The system structure is modular and hence easy to maintain and troubleshoot.
• A fault in a single module does not lead to a complete system breakdown.
• Due to the independent processing modules used in the system, it is more fault -tolerant.
• More suitable to parallel applications due to its modular organization.
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
In handshake input operation, the input device will check whether the port is empty or not. If the
port is empty, then the data is loaded into the port. When the port receives the data, it will
inform the processor for read operation. Once the data have been read by the processor, the port
will signal the input device that it is empty. Now the input device can load another data to port
and the above process is repeated.
In handshake output operation, the processor will load a data to port. When the port receives the
data, it will inform the output device to collect the data. Once the output device accepts the data,
the port will inform the processor that it is empty. Now the processor can load another data to
port and the above process is repeated.
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
8. Draw the control word format for BSR (Bit Set Reset) Mode.
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
8251 – USART:
10. What is USART? What are the functions performed by INTEL 8251A?
The device which can be programmed to perform Synchronous or Asynchronous serial
communication is called USART (Universal Synchronous Asynchronous Receiver Transmitter).
The INTEL 8251A is an example of USART.
The INTEL 825lA is used for serial data transmission or reception either asynchronously or
synchronously. The 8251A can be used to interface MODEM for serial communication through
telephone lines.
Data is sent continuously in blocks either without any time interval or in fixed time intervals.
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
13. 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.
15. What is 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.
16.What are the different types of errors that can occur in asynchronous serial
communication?
1. Framming Error
2. Over run Error
3. Parity Error
_
17. What is the significance of C/D signal in 8251?
This pin is used to select either Control register for configuring or Data bus buffer for read /
write operations.
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
20. What is the difference in programming the 8279 for encoded scan and decoded scan?
If the 8279 is programmed for decoded scan then the output of scan lines will be decoded output
and if it is programmed for, encoded scan then the output of scan lines will be binary count. In
encoded mode, an external decoder should be used to decode the scan lines.
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
ADC / DAC:
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
Unit – IV
a. DJNZ Rn, rel - Decrement the content of the register Rn and jump if not zero.
b. DJNZ direct , rel - Decrement the content of direct 8-bit address and jump if not zero.
3. 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
4. State the function of RS1 and RS0 bits in the flag register of Intel 8051 microcontroller?
5. 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
RL A
Label : SJMP Label
7. 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.
11. Write down the different operating modes for serial communication of 8051.
Serial communication of 8051 operate under four modes. They are mode 0 , mode 1, mode 2 and
mode3 .SM0 and SM1 bits of SCON register specifies the mode.
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
14. Name the five interrupt sources of 8051?
The interrupts are:
15. Write a program to load accumulator A, DPH and DPL with 30H.
MOV A,#30
MOV DPH,A
MOV DPL,A
16. Write a program to subtract the contents of R1 of Bank0 from the contents of R0 of Bank2.
MOV PSW, #10
MOV A, R0
MOV PSW, #00
SUBB A, R1
17. How the RS -232C serial bus is interfaced to TTL 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.
24. Write a program to mask the 0th &7th bit using 8051?
MOV A, #data
ANL A, #81
MOV DPTR, #4500
MOVX @DPTR, A
LOOP:SJMP LOOP
27. Write program to load accumulator, DPH & DPL using 8051?
MOV A, #30
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
MOV DPH, A
MOV DPL, A
31. Write a program to subtract 2 8-bit numbers & exchange the digits using 8051?
MOV A, #9F
MOV R0, #40
SUBB A, R0
SWAP A
32. Write a program to subtract the contents of R1 of Bank0 from the contents of R0 of Bank2 using
8051?
MOV PSW, #10
MOV A, R0
MOV PSW, #00
SUBB A, R1
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
UNIT - I
2.Draw the Pin Diagram of 8086 and explain the function of various signals.
-Pin Diagram
-Explanation about all signals
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
1.With neat sketch explain the functions of 8255 PPI.
-Block Diagram
-Explanation about all the ports available.
-Explanation about the modes of transfer
-Explain the control Word Register
5.With neat sketch explain the function of Keyboard and display controller.
-Block Diagram
-Types of Display Available
-Types of keys available
-Explanation about all blocks in the block diagram
Vvcet/ECE
Microprocessor & Microcontrollers 2 Marks - QB
UNIT – IV
2.Draw the Pin Diagram of 8051 and explain the function of various signals.
-Pin Diagram
-Explanation about all signals
5.Draw the Pin Diagram of 8096 and explain the function of various signals.
-Pin Diagram
-Explanation about all signals
Vvcet/ECE