100% found this document useful (1 vote)
3K views10 pages

Question Bank: UNIT I - 8086 Microprocessor Part - A (2 Marks)

This document contains a question bank for the course "Microprocessor and Microcontroller" taught by G. Mahalakshmi Malini. The question bank covers two units - 8086 Microprocessor and Instruction Set and Programming of 8086. It contains questions in two parts - Part A contains short answer questions worth 2 marks each and Part B contains longer answer questions worth 16 marks each. The questions assess students' understanding of the architecture, registers, addressing modes, interrupts and instruction set of the 8086 microprocessor. Sample programs in 8086 assembly language are also included to test programming skills.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
3K views10 pages

Question Bank: UNIT I - 8086 Microprocessor Part - A (2 Marks)

This document contains a question bank for the course "Microprocessor and Microcontroller" taught by G. Mahalakshmi Malini. The question bank covers two units - 8086 Microprocessor and Instruction Set and Programming of 8086. It contains questions in two parts - Part A contains short answer questions worth 2 marks each and Part B contains longer answer questions worth 16 marks each. The questions assess students' understanding of the architecture, registers, addressing modes, interrupts and instruction set of the 8086 microprocessor. Sample programs in 8086 assembly language are also included to test programming skills.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Avinashilingam Institute for Home Science and Higher Education for Women

(Deemed to be University under Category 'A' by MHRD, Estd. u/s 3 of UGC Act 1956)
Re-accredited with 'A+' Grade by NAAC. Recognised by UGC under Section 12 B
Coimbatore-641 043, Tamil Nadu, India
School of Engineering
(Approved by AICTE)
Ayya Avinashilingam Nagar, Varapalayam, Thadagam post, Coimbatore-641 108.

18BELC09 Microprocessor and Microcontroller

Question Bank
Course Instructor: G. Mahalakshmi Malini, Assistant Professor/ ECE

UNIT I - 8086 Microprocessor


Part - A (2 marks)
1. What is the size of the address bus and data bus in the 8086?
2. What is meant by multiplexed address and data bus?
3. Write the different memory segments used in the 8086 and their functions.
4. What is the function of an interrupt in a microprocessor
5. Write the function of DF, IF, and TF bits in the 8086.
6. What is the difference between the minimum and maximum mode operation of the 8086?
7. What is the difference between maskable and non maskable interrupt?
8. What is the difference hardware and software interrupts?
9. How many interrupt types are present in the 8086 and how they are classified?
10. Name the dedicated interrupts in the 8086 along with their functions.
11. What are the differences between INTR and NMI interrupt in the 8086?
12. Mention the differences between 8085 and 8086 microprocessor
13. How many 8K X 8 memory chips are required to construct a 1MB memory?
14. How does the 8086 recognize an NMI interrupt?
15. How does the 8086 return to the main program after completing the ISR of an interrupt?
16. What is an interrupt vector? What is the maximum number of interrupt vectors that can be stored in
the IVT of the 8086?
17. How is a software interrupt generated in the 8086?
18. What are the advantages of software interrupt?
19. Write the priority among the interrupts in 8086.

Part – B (16 marks)

1. Explain the architecture of the 8086 with a neat functional block diagram.
2. Explain the function of the different flags in the 8086.
3. Define addressing modes of 8086 processor. What are the different addressing modes of 8086
microprocessor? Explain each addressing mode with example.
4. What is the purpose of ALE, BHE, DT/R and DEN pins of 8086? Show their timing in the system
bus cycle of 8086.
5. Sketch and explain the 8086 bus activities during read machine cycle
6. What is the difference between system bus cycle and bus idle cycle? Draw the timing diagram of the
bus idle cycle?
7. Draw and explain a block diagram showing 8086 in maximum mode configuration.
8. Draw and explain a block diagram showing 8086 in minimum mode configuration.
9. Draw and explain the timing diagram for 8086 minimum mode memory write cycle.
10. Draw and explain the timing diagram for 8086 maximum mode memory write cycle.
11. Draw and explain the timing diagram for 8086 minimum mode memory read cycle.
12. Draw and explain the timing diagram for 8086 maximum mode memory read cycle.
13. Explain the interrupt structure of an 8086 in detail.

UNIT II - Instruction Set and Programming of 8086

Part - A (2 marks)

1. What are the steps involved when PUSH BX is executed by the 8086?
2. ´ and ALE signal in 8086?
What the function is of BHE
3. The content of the different register in the 8086 is CS = F000H, DS = 1000H, SS = 2000H, and
ES=3000H. Find the base address of the different segments in the memory.
4. If the current content of the CS and IP registers is FFFFH and 0000H, respectively from which
memory location will the 8086 fetch the data, while executing the instruction MOV CX,[BX]?
5. If the content of the SS and SP registers is 5000H and 1000H, respectively, in which memory
location is the content of DX saved, when the 8086 executes the instruction PUSH DX?
6. ´ pin in the 8086?
What is the role of TEST
7. Why is memory divided into segments in the 8086? What are its advantages?
8. Write the function of the assembler directives BYTE PTR and WORD PTR?
9. What is the difference between the MUL and IMUL instruction in the 8086?
10. What is the difference between the DIV and IDIV instruction in the 8086?
11. What is the function DAA instruction in the 8086?
12. What is the function of assembler and assembler directives?
13. What is the function of the assembler directives ORG and DB?
14. What is macro? Give an example.
15. What is the difference between macro and subroutine?
16. Is it possible to exchange the content of two memory locations or the content of two segment
register using the XCHG instruction? Why?
17. What is the difference between SUB and CMP instruction?
18. What is the difference between SUB and CMP instruction?
19. What is the difference between TEST and AND instruction?
20. If the content of BP=1000 and SI = 2000H, what is the value present in CX after the 8086 executes
the instructions LEA CX, [BP+SI], and LEA CX,[SI].
21. Write the procedure to determine physical address for the following instruction as given below:
(i) MOV AX,[SI+03] (ii) MOV AL,CS:[BX+0400]
(ii) MOV AX,[3000] (iv) MOV AL,[BX+SI+22]
Assume CS = 4000H, IP = 2300, SI – 02300 and DS = 5000
22. What are errors present in the following:
(a) MOV AX 3D (b) MOV 23,AX
(c) MOV CX,CH (d) MOVE AX,1H
(e) INC AX,2 (f) ADD 3,6
(g) INC AX,2

23. Find the syntax errors in the following instructions:


(a) MOV BH, AX (b) MOV 7632H, CX
(c) MOV DX,CL (d) IN BL,04H
(e) ADD AL,2073H

Part - B (16 marks)

1. Let the content of the different registers in the 8086 be as follows: DS = 1000H, SS= 2000H,
ES=3000H, BX=4000H, SI=5000H, DI=6000H, and BP = 7000H.
Find the memory address/addresses from where the 8086 accesses the data while executing the
following instruction:
(i) MOV AX,[BX]
(ii) MOV BX,[SI]
(iii) MOV CX,[BP]
(iv) MOV AL,[DI]
(v) MOV BH,SS:[SI]
(vi) MOV CX,ES:[DI]
(vii) MOV AX,[BX+DI]
(viii) MOV BX,[BP+DI+5]
(ix) MOV AH,[BX+10H]
(x) MOV CX,DS:[BP+4]
(xi) MOV BX,[SI-5]
(xii) MOV AX, [BX+10]

2. Consider the following pair of partial programs:


(i) MOV AX,4000H (ii) MOV AX,4000H
ADD AX,AX ADD AX,AX
ADC AX,AX RCL AX,1
JZ DOWN JZ DOWN
For each case, what is the data in AX after execution of the third instruction and from where does
the processor fetch the next instruction after execution of the fourth instruction?
3. Explain operations of the following instruction:
(i) CBW and CWD (ii) MOV reg, immediate and LEA reg, address
(ii) DEC AX and SUB AX, 1 (iv) RCL and ROL
(v) IRET and RET
4. Explain the operation of the loop, LOOPE/LOOPZ, and LOOPNE/LOOPNZ instructions what does
the INT n instruction push onto the stack that the CALL FAR instruction does not? What is the
JCXZ instruction typically used for?
5. Write the instructions to perform the following operations:
(i) Copy content of BX to a memory location in the data segment with offset 0234H
(ii) Increment content of CX by 1
(iii) Multiply AX with 16 bit data 2467H
(iv) Rotate left the content of AL by two bits
6. Write results after execution of the following instruction:
(i) MOV AL, 22; MOV BL, 44; ADD AL, BL;
(ii) MOV AX, 1002; MOV BX, 44; MUL AX,BL;
(iii) MOV CL,34; MOV AL,FF; SUB AL,CL;
(iv) MOV AX,8796; MOV CL,2; ROR AX,CL;
7. Find the object codes for the following instruction
(i) MOV AX,2345 (ii) MOV [BX+SI],4444 (iii) ADD AL,FF
(iv) ADD [BX],4567 (v) MUL CL (vi) IMUL CX
(vii) DIV BX (viii) IDIV CL
8. Write an assembly language program to find the largest number in a data array.
9. Write an assembly language program to find the smallest number in a data array.
10. Write an assembly language program to arrange numbers in descending order.
11. Write an assembly language program to arrange numbers in ascending order.
12. Write an assembly language program to move a block of data from one memory location to another
location.
13. Write an assembly language program to find the sum of a series of 16 bit numbers
14. Write an assembly language program to find the subtraction of two 3 X 3 matrices.
15. Write an assembly language program for addition, subtraction, multiplication and division of two
numbers
16. Write an assembly language program for addition of first 100 decimal numbers.
17. Write an assembly language program to convert a 16 bit binary number into its equivalent gray code.
18. Write an assembly language program for addition of two 8 bit numbers and with a sum of 8 bits.
19. Write an assembly language program for addition of a string bytes whose sum is 8 bits.
20. Write an assembly language program for finding 1’s compliment of an 8 bit number
21. Write an assembly language program for finding 1’s compliment of an 16 bit number
22. Write an assembly language program for finding 2’s compliment of an 8 bit number
23. Write an assembly language program for finding 2’s compliment of a string of bytes
24. Write an assembly language program to convert a binary number into its equivalent BCD number.
25. State any four addressing modes used in 8086 microprocessor. Identify addressing modes used in
each of the following 8086 instruction.
(a) MOV BX,0354H (b) MOV BL,CX
(c) MOV AX,[BX+SI] (d) MOV AX,[BX+SI+04]
26. Write an 8086 assembly language program to find the sum of 100 words present in an array stored
from the address 3000H:1000H in the data segment and store the result from the address
3000H:2000H
27. Write an 8086 assembly language program to find the prime numbers among 100 bytes of data in an
array stored from the address 4000H:1000H in the data segment and store the result from the address
4000H:3000H
28. Write an 8086 assembly language program to find the number of occurrences of the character ‘A’
among 50 character of a string type data stored from the address 5000H:1000H in the data segment
and store the result in the address 2000H:5000H.

UNIT III - Memory and I/O Interfacing with 8086

Part - A (2 marks)

1. What are the types of memory? Explain the comparison between different types of memory.
2. What are the advantages and disadvantages of memory mapped I/O over I/O mapped I/O?
3. What are the interrupts pins of 8085/8086/808 microprocessor?
4. Give the list of applications of the 8253 timer.
5. Define priority interrupts.
6. What is programmable interrupt controller?
7. What happens when the RESET pin of 8255 is made high?
8. List the applications of 8255 PPI?
9. Mention the different modes of operation of 8253 IC.
10. What are the control signals used for memory and I/O read and write operations?
11. Compare static RAM and Dynamic RAM.
12. Give the register organization of 8257.
13. What are the features of 8279?

Part - B (16 marks)

1. Explain memory mapped I/O and I/O mapped I/O. write the between memory mapped and I/O
mapped I/O. what are the instructions available in memory mapped I/O and I/O mapped I/O scheme.
2. Explain the generation of MEMR
´ , MEMW ´ ´ , and IOW
, IOR ´ control signals from IO/ Ḿ , RD
´
´ Signals.
WR
3. Explain the interfacing of 8259A with 8086 microprocessor.
4. Interface two 16k X 8 EPROM chips with the 8086, such that the memory address range assigned to
the EPROM chips is F8000H – FFFFFH, using an address decoder having only logic gates.
5. Interface two 16k X 8 EPROM chips with the 8086, such that the memory address range assigned to
the EPROM chips is 00000H – 07FFFH, using an address decoder having only logic gates.
6. Interface two 8k X 8 EPROM chips with the 8086, such that the memory address range assigned to
the RAM chips is 20000H – 23FFFH, using an address decoder that employs two 74138 ICs and
logic gates.
7. Interface two 8k X 8 RAM chips with the 8086, such that the memory address range assigned to the
RAM chips is F0000H – F3FFFH, using an address decoder that employs two 74138 ICs and logic
gates.
8. Interface four 16k X 8 EPROM chips with the 8086, such that the memory address range assigned to
the EPROM chips is 90000H – 9FFFFH, using an address decoder that employs two 74138 ICs and
logic gates.
9. Interface four 16k X 8 RAM chips with the 8086, such that the memory address range assigned to
the RAM chips is A0000H – AFFFFH, using an address decoder that employs two 74138 ICs and
logic gates.
10. Draw the functional block diagram of 8255 and explain the operation of each sub-block
11. What are the different operating modes of 8255? Explain any one operating mode.
12. Explain with a neat waveform the mode 0 of the 8253 timer/counter.
13. Explain with the help of block diagram, functioning of 8253 in various programmable modes.
14. Explain the functional block diagram of 8257 with pin details.
15. Draw and discuss the status register of 8257.
16. Write a short note on 8279 keyboard/display interface.
17. Draw the functional block diagram of 8279 IC and explain its all three input modes.
18. Explain the scanned sensor matrix mode of 8279
19. Draw the functional block diagram of 8251 and explain the operation of each sub-block
20. Interface an A/D converter to 8086 and write a program to convert the analog input to digital
21. Interface a D/A converter to 8086 and write a program to convert the digital input to analog output.
22. What is RS-232C? Explain the function of different pins RS-232C

UNIT IV - 8051 Microcontroller

Part - A (2 marks)

1. Differentiate between microprocessor and microcontroller


2. Why microcontrollers are often called single-chip computers?
3. Write the format of the 8051 PSW
4. What is a special function register?
5. Which port of the 8051 is used as address/data bus?
6. What is function of RS0 and RS1 bits in the PSW of the 8051?
7. What is the address range of the bit addressable internal memory of the 8051?
8. How can you put the 8051 in idle mode?
9. What are microcontroller families?
10. What are the advantages of microcontroller based system over microprocessor based systems?
11. Give a list of applications of microcontroller.
12. What are the features of the intel 80C51 microcontroller?
13. What are the general purpose register of 80C51?
14. What is the addressing mode of MOV A, @ Ri instruction?
15. What will be the content of the accumulator after execution of the following instruction?
i) MOV A,#FFH ii) ADD A,#23H
16. How many I/O ports are available in 8051?
17. What are the SFR registers associated with the 8051 timers?

Part - B (16 marks)

1. Write short note on memory organization in the 8051.


2. Draw and explain the architectural details of the 8051.
3. Explain the stack operation in 8051.
4. What are the addressing modes of 8051 microcontroller? Explain each addressing mode with an
example.
5. Write the addressing modes of the following instructions:
(i) MOV A,@R0 (ii) MOVX @DPTR,A (iii) MOV A,@A+DPTR (iv) MOV R0,#45H
6. State different types of instruction of 8051 and explain any three instructions from each group of the
instructions.
7. Write an assembly language program to add two 8 bit numbers using 8051
8. Write an assembly language program to add two 16 bit numbers using 8051
9. Write an assembly language program to subtract two 8 bit numbers using 8051
10. Write an assembly language program to find the largest number in a data array using 8051
11. Write an assembly language program to find the Two’s complement of an 8 bit numbers using 8051
12. Write an assembly language program to perform division of two numbers using 8051
13. Write an assembly language program to arrange a series of numbers in descending order and
ascending order using 8051
14. Write an assembly language program for logical OR of two 8 bit data using 8051
UNIT V - Interfacing with 8051 Microcontroller

Part - A (2 marks)

1. Explain mode 0 operation of the 8051 timers.


2. What is the difference between mode 0 and mode 1 operation of the 8051 timer?
3. What is the function of IF0/1 bit in the TCON register of the 8051?
4. What are the ways to mask an interrupt in 8051?
5. When does the 8051 check for an interrupt signal?
6. List the features of the 8051 serial port
7. How many timers are available in 8051?
8. Differentiate between serial and parallel interface.
9. What is the need for 8255 in a microcontroller based system?

Part - B (16 marks)


1. How many operating modes are available in the serial port of the 8051? Explain the differences
among them.
2. Discuss in detail the interfacing of the stepper motor with the 8051.
3. Explain with a neat diagram, the interfacing of an LCD with the 8051.
4. Explain the traffic light control using the 8051.
5. Write a program for A/D converter interface with the 8051 microcontroller.
6. Draw a circuit diagram for keyboard interface with 8051 microcontroller and write a program for
reading any key.
7. Write a program for DAC converter interface with the 8051 microcontroller.

You might also like