SUBJECT: MICRPROCESSOR AND PERIPHERALS

19
Mahatma Education Society's PILLAI COLLEGE OF ENGINEERING, NEW PANVEL SUBJECT: MICRPROCESSOR AND PERIPHERALS SEMESTER IV Department of Electronics and Telecommunication Engineering

Transcript of SUBJECT: MICRPROCESSOR AND PERIPHERALS

Mahatma Education Society's

PILLAI COLLEGE OF ENGINEERING, NEW PANVEL

SUBJECT: MICRPROCESSOR AND

PERIPHERALS

SEMESTER IV

Department of Electronics and Telecommunication

Engineering

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 2

Department of Electronics and Telecommunication

Engineering

SYLLABUS AND SCHEME OF EXAMINATION

Course Code Course/ Subject Name Credits

ETC 403

Microprocessor and Peripherals

4

Objectives:

1. To develop background knowledge and core expertise in microprocessor.

2. To study the concepts and basic architecture of 8085, 8086, 80286, 80386, 80486

Pentium processor and Co-processor 8087.

3. To know the importance of different peripheral devices and their interfacing to 8086.

4. To know the design aspects of basic microprocessor.

5. To write assembly language programs in microprocessor for various applications.

.

Outcomes: The Students will be able to

1. The architecture and software aspects of microprocessor 8086

2. Assembly language program in 8086 for various applications.

3. Co-processor configurations.

4. Various interfacing techniques with 8086 for various applications.

5. Basic concepts of advanced microprocessors.

MODULE DETAILED CONTENTS HRS

01 Architecture of 8085 and 8086 Microprocessor

1.1 8085 Architecture and pin configuration.

1.2 8086 Architecture and organization, pin configuration.

1.3 Minimum and Maximum modes of 8086.

1.4 Read and Write bus cycle of 8086.

08

02 Instruction set and programming of 8086

2.1 8086 Addressing modes.

2.2 8086 Instruction encoding formats and instruction set.

2.3 Assembler directives.

2.4 8086 programming and debugging of assembly language program.

10

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 3

03 Peripherals interfacing with 8086 and applications.

3.1 8086-Interrupt structure.

3.2 Programmable interrupt controller 8259A.

3.3 Programmable peripheral Interface 8255.

3.4 Programmable interval Timer 8254.

3.5 DMA controller 8257

3.6 Interfacing 8259A, 8255, 8254, 8257 with 8086 and their

applications

06

04 ADC, DAC interfacing with 8086 and its application

4.1 Analog to Digital Converter (ADC) 0809

4.2 Digital to Analog Convertor (DAC) 0808

4.3 Interfacing ADC 0809, DAC 0808 with 8086 and their applications.

4.4 8086 based data Acquisition system.

08

05 8086 Microprocessor interfacing

5.1 8087 Math coprocessor, its data types and interfacing with 8086.

5.2 Memory interfacing with 8086 microprocessor

10

06 Advanced Microprocessors Basic architectures of 80286, 80386, 80486 and Pentium processor.

06

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 4

MODULE NO 1

ARCHITECTURE OF 8085 AND 8086 MICROPROCESSOR

1.1 8085 Architecture and pin configuration.

Questions Marks

1. Describe pin diagram of 8085 microprocessor. (Dec-2016) 04

2. Describe in brief architecture o 8085 microprocessor. (May-2016) 04

3. Explain the function of following pins of microprocessor 8085. (Dec-2015)

a) SOD/SID b) ALE c) HOLD

05

4. Explain interrupt pin of 8085 microprocessor. (Dec-2015 & Dec-2014 )

05

5. Explain flag register used in 8085 processor. (May-2015) 05

6. Explain functions of following pins of microprocessor 8085. (May-2014)

a) ALE b) SOD/SID c) TRAP d) HOLD e) INTA’

05

7. What is stack? Explain the use and operation of stack and stack pointer. 05

8. Explain following signals of 8085.

a) ALE b) READY c) INTR

1) ALE 2) READY 3) INTR

05

9. Draw and Explain Architecture of 8085 Microprocessor. (Dec-2014 & May-

2014 )

10

10. Draw and explain programmer’s model of 8085 microprocessor. 10

11. Explain features of 8085 Microprocessor. 10

1.1 8085 Architecture and pin configuration.

1.2 8086 Architecture and organization, pin configuration.

1.3 Minimum and Maximum modes of 8086.

1.4 Read and Write bus cycle of 8086.

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 5

1.2 8086 Architecture, Organization and Pin configuration.

Questions Marks

12. Explain what is the need and advantages of memory segmentation in 8086

Microprocessor. (May-2015)

05

13. What are advantages of memory segmentation of 8086? (May-2014) 05

14. Explain the feature of pipelining and queue in 8086 architecture. 05

15. Write a short note on functions of the pins S2’, S1’ & S0’ of 8086. 05

16. Draw & Explain Flag structure of 8086. 05

17. Distinguish between BIU and EU of 8086. 05

18. Explain the significance of HOLD, RESET and READY signals in 8086

processor.

05

19. Describe the function of following pins in 8086 Microprocessor. (Dec-2016)

a) NMI b) READY c) ALE d) QS0 and QS1 e) S0, S1, S2

10

20. Discuss the functions of general purpose registers of 8086. Explain the

function of each register and instruction support for these functions. (Dec-

2016, May-2016)

10

21. Describe the function of following pins in 8086 Microprocessor in

Maximum mode of operation. (May-2016)

a) TEST’ b) RQ’/GT0’ c) RQ’/GT1’ d) QS0 and QS1 e) S0, S1, S2

10

22. Draw & Explain the architecture of 8086 processor. 10

23. Explain features of 8086 Microprocessor. 10

24. What is segmented memory and what are its advantages? Explain logical and

physical address in 8086. What are default segment assignments and what is

segment override? Explain with suitable examples.

10

25. Draw and explain programmer’s model of 8086 microprocessor.

10

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 6

1.3 Minimum and Maximum modes of 8086.

Questions Marks

26. Differentiate between minimum and maximum modes of 8086. (Dec-2016) 04

27. Compare Minimum mode with Maximum mode of 8086. 05

28. Explain maximum mode of 8086 microprocessor. Draw timing diagram for

write operation in maximum mode of 8086 and explain it. (Dec-2014)

10

29. Explain Minimum mode of 8086 microprocessor. Draw timing diagram for

write operation in minimum mode of 8086 and explain it. (May-2014)

10

30. Describe how the control bus signals are produced for an 8086 system

operating in maximum mode.

10

31. Draw & explain maximum mode configuration of 8086 microprocessor. 10

1.4 Read and Write bus cycle of 8086.

Questions Marks

32. Sketch read and write bus cycle of 8086 with example. (Dec-2016 & May-

2016)

04

33. Draw timing diagram of Memory read & Memory write machine cycles for

maximum mode of 8086 Microprocessor. (May-2015)

10

34. Draw timing diagram of Memory read & Memory write machine cycles for

minimum mode of 8086 Microprocessor.

10

Points to Remember:

8085 & 8086 Architecture. Pin diagram & Features.

Segmentation & Pipelining in 8086.

Difference between Minimum Mode & Maximum mode of 8086.

Read & Write machine cycles in Minimum & Maximum mode of 8086.

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 7

MODULE NO 2

INSTRUCTION SET AND PROGRAMMING MODES OF 8086

2.1 8086 Addressing modes.

Questions Marks

1. Explain addressing modes of 8086 Microprocessor with example. (Dec-

2016, May-2016, Dec-2015 & May-2015)

10

2.2 8086 Instruction encoding formats and instruction set.

Questions Marks

2. Explain the difference between JMP and CALL instruction. 05

3. What is REP prefix? How it functions for string instructions? 05

4. Write a short note on String instructions of 8086. 05

5. Explain with suitable examples the following instructions of 8086. (Dec-

2016)

i) CBW ii) TEST iii) LAHF iv) XLAT v) LEA

10

6. Explain with suitable examples the following instructions of 8086. (May-

2016)

i) MOVSB ii) LEA iii) ROL iv) CLC v) CBW

10

7. Draw and explain the instruction template format of 8086. 10

8. Explain the following 8086 instructions.

a) CPMSB b) DIV AX c) LOOPE again d)REP SCASB e) XLATB

10

2.1 8086 Addressing modes.

2.2 8086 Instruction encoding formats and instruction set.

2.3 Assembler directives.

2.4 8086 programming and debugging of assembly language program.

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 8

9. Explain following 8086 instructions

a) STD b) MOVS c) AAS d) IMUL e) RCL

10

10. Explain the following 8086 instructions.

a) AAS b) SHL c) JCXZ d) CLC e) MOVS

10

11. Explain following instructions of 8086 microprocessor.

(i) PUSH (ii) POP (iii) IN (iv) OUT (v) LAHF

(vi) SAHF (vii) NEG (viii) CBW (xi) CWD (x) XCHG

10

2.3 Assembler directives.

Questions Marks

12. Write a short note on Various assembly language directives and Macro

functions.

10

13. Write a short note on Assembler Directives. 10

2.4 8086 programming and debugging of assembly language program.

Questions Marks

14. Write a program to blink bit 4 of Port C using BSR mode of 8255. (May-

2015)

05

15. Write an 8086 assembly language program to divide 16-bit number by 4-bit

number.

05

16. Write an 8086 assembly language program to divide 32-bit number by 8-bit

number.

05

17. Write an assembly language program of 8086 to find out factorial of number

N also draw Flowchart. (Dec-2016)

10

18. Write an assembly language program of 8086 to add two 32 bit numbers and

also draw flowchart. (May-2016)

10

19. Write a program for 8086 microprocessor for arranging given numbers in

ascending order and store the results in memory location from 0000H

onwards. (Dec-2015)

10

20. Write a program for 8086 Microprocessor to multiply two 32-bit numbers

(12345678 X 87654321) (May-2015)

10

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 9

21. Write a program for 8086 Microprocessor to find out smallest number in an

array of 10 numbers. (May-2015)

10

22. Write a program for 8086 Microprocessor to exchange memory block of 10

bytes from location 30000 to 40000. (Dec-2014 & May-2014)

10

23. Write a program for 8086 Microprocessor to find out largest number in an

array of 10 numbers.

10

24. Write a program for 8086 microprocessor for arranging given numbers in

descending order and store the results in memory location from 0000H

onwards.

10

25. Writ 8086 assembly language program to move a string of words from offset

1000H to offset 6000H. The length of the string is 0CH.

10

Points to Remember:

Addressing modes of 8086.

Assemble directives of 8086.

Instructions of 8086.

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 10

MODULE NO 3

PERIPHERALS INTERFACING WITH 8086 AND

APPLICATIONS.

3.1 8086-Interrupt structure.

Questions Marks

1. Explain interrupt acknowledge (INTA’) cycle of 8086. 05

2. Explain 8086 interrupt structure and its method of interfacing with 8086

microprocessor with a suitable example. (May-2016)

10

3. Explain Interrupt structure of 8086. (Dec-2015, May-2014) 10

4. Draw & Explain Interrupt structure of 8086 Microprocessor with its IVT.

(May-2015)

10

5. Which are the different types of interrupt supported by 8086? Explain

interrupt vector table of 8086. (Dec-2014)

10

6. What are exceptions, hardware interrupts and software interrupts of 8086.

Explain their priority structure and interrupt vector table.

10

7. Explain the first five dedicated interrupts of 8086. 10

3.2 Programmable interrupt controller 8259A.

Questions Marks

8. What are the different function blocks in 8259 Programmable Interrupt

Controller? Explain the role of IRR, ISR and priority resolver in process of

interrupt handling.

10

9. Explain programmable interrupt controller 8259 – features and operation. 10

3.1 8086-Interrupt structure. 3.2 Programmable interrupt controller 8259A. 3.3 Programmable peripheral Interface 8255. 3.4 Programmable interval Timer 8254. 3.5 DMA controller 8257 3.6 Interfacing 8259A, 8255, 8254, 8257 with 8086 and their applications

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 11

3.3 Programmable peripheral Interface 8255.

Questions Marks

10. Explain in brief about programmable peripheral interface 8255. (Dec-2016) 04

11. Write a program to blink bit 4 of port C using BSR mode of 8255. (May-

2015)

05

12. Explain modes of PPI 8255. (Dec-2014) 10

13. Write a brief note on programmable peripheral interface (PPI) IC-8255 and

its modes of operation.

10

3.4 Programmable interval Timer 8254.

Questions Marks

14. Explain in brief about programmable interval timer 8254. (May-2016) 04

15. Explain Control Word of 8254 Timer. Write control word for Counter1,

Mode-3 R/W MSB, binary counter. (Dec-2014, May-2014)

05

16. Explain MODE 0 and MODE 1 of 8254 Timer/Counter peripheral IC with

the help of timing diagram. (May-2015)

10

17. Write a program to generate 1 KHz frequency square wave using 8254, if

clock frequency of 8086 is 1 MHz.

10

3.5 DMA controller 8257

Questions Marks

18. What is DMA. Explain 8257 DMAC. 05

19. Explain different modes of operation of 8257 DMA controller. (May-2015) 10

3.6 Interfacing 8259A, 8255, 8254, 8257 with 8086 and their applications

Questions Marks

20. Explain direct memory access (DMA) controller 8257 and its method of

interfacing with 8086 microprocessor with a suitable example. 10

21. Describe the importance of DMA controller. Explain method of interfacing

8057 DMA controller with 8086 microprocessor. (Dec-2015)

10

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 12

22. Draw and explain interfacing of 8086 in maximum mode with 8259 in

cascade mode. (Dec-2014)

10

23. Draw and Explain interfacing of 8086 with 8255 in I/O mapped I/O. (May-

2014)

10

24. Sketch and explain the interface of PPI 8255 to the 8086 microprocessor in

minimum mode. Interface four 7 segment LEDs to display as a BCD

counter.

10

25. Draw and explain interfacing of 8259 with 8086. 10

Points to Remember:

Interrupt structure of 8086 with hardware and software interrupts.

Working, operating modes and interfacing of peripheral ICs like 8255, 8259, 8254 & 8257 with

8086.

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 13

MODULE NO 4

ADC, DAC INTERFACING WITH 8086 AND ITS

APPLICATION

4.1 Analog to Digital Converter (ADC) 0809.

4.2 Digital to Analog Convertor (DAC) 0808.

4.3 Interfacing ADC 0809, DAC 0808 with 8086 and their applications.

Questions Marks

1. Explain pin diagram of ADC 0808/0809 and method of interfacing to 8086

microprocessor with suitable example. (Dec-2016, May-2015)

10

2. Explain the function of analog to digital converter 0809 and describe its

interfacing method with 8086 microprocessor. (Dec-2015)

10

3.. Draw & Explain interfacing of DAC 0808 with 8086 Microprocessor using

8255. Write a program to generate square wave. (May-2015, Dec-2014 &

May-2014)

10

4.4 8086 based data Acquisition system.

Questions Marks

4. What is data acquisition system? Explain 8086 based data acquisition

system. (Dec-2015)

10

Points to Remember:

Working, operating mode and pin diagram of ADC 0809 & DAC 0808.

8086 based Data acquisition system

4.1 Analog to Digital Converter (ADC) 0809

4.2 Digital to Analog Convertor (DAC) 0808

4.3 Interfacing ADC 0809, DAC 0808 with 8086 and their applications.

4.4 8086 based data Acquisition system.

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 14

MODULE NO 5

8086 MICROPROCESSOR INTERFACING

5.1 8087 Math coprocessor, its data types and interfacing with 8086.

Questions Marks

1. Explain features of coprocessor 8087. 05

2. What is 8087 math coprocessor? Explain method of its interfacing with 8086

microprocessor. (Dec-2015)

10

3. Explain interfacing of 8087 co-processor with 8086 Microprocessor. (may-

2015)

10

4. Draw interface diagram of 8086 microprocessor and 8087 NDP, also explain

various interface signals and co-processor working with host processor.

(Dec-2014, May-2014)

10

5.2 Memory interfacing with 8086 microprocessor.

Questions Marks

5. Differentiate between memory mapped I/O and I/O mapped I/O. (May-2016,

Dec-2015)

05

6. Why is it necessary to make even and odd banks while interfacing any kind

of ROM to 8086.

05

7. Design 8086 microprocessor based system using minimum mode with the

following specifications. (Dec-2016)

I) 8086 microprocessor working at 10 MHz.

II) 32KB EPROM using 8KB Devices.

III) 32KB SRAM using 8KB devices.

Clearly show memory map with address range. Draw the neat schematic.

20

5.1 8087 Math coprocessor, its data types and interfacing with

8086.

5.2 Memory interfacing with 8086 microprocessor

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 15

8. Design 8086 microprocessor based system using minimum mode with the

following specifications. (May-2016)

I) 8086 microprocessor working at 10 MHz.

II) 128KB EPROM using 32K devices.

III) 64KB SRAM using 16K devices.

Clearly show memory map with address range. Draw the neat schematic.

20

9. Design 8086 microprocessor based system using minimum mode with the

following specifications. (Dec-2015)

I) 8086 microprocessor working at 10 MHz.

II) 64 KB EPROM using 16K devices.

III) 32KB SRAM using 16 K devices.

Clearly show memory map with address range. Draw a neat schematic.

20

10. Design an 8086 based system with following specifications. (May-2015)

(1) 8086 working at 6 MHz at Minimum mode.

(2) 32 KB EPROM using 16KB devices.

(3) 64 KB RAM using 32KB devices.

(4) 2, 8-bit i/p & 2 8-bit o/p ports in Memory mapped I/O.

Design system with absolute decoding. Clearly show memory address map

and I/O address amp. Draw a neat schematic for chip selection logic.

20

11. Design 8086 microprocessor based system using minimum mode with the

following specifications. (Dec-2014)

I) 8086 microprocessor working at 8 MHz.

II) 16 KB EPROM using 8K devices.

III) 16KB SRAM using 8K devices.

Clearly show memory map with address range. Draw a neat schematic.

10

12. Design 8086 microprocessor based system using minimum mode with the

following specifications. (May-2014)

i. 8086 microprocessor working at 10 MHz.

ii. 32 KB EPROM using 16K devices.

iii. 32KB SRAM using 16 K devices.

Clearly show memory map with address range. Draw a neat schematic.

10

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 16

Points to Remember:

Working, Data types and interfacing of coprocessor IC 8087 with 8086 in Maximum mode.

Memory banking concept in 8086.

Hardware required with 8086 in Minimum & Maximum mode.

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 17

MODULE NO 6

ADVANCED MICROPROCESSORS

6.1 Basic architectures of 80286, 80386, 80486 and Pentium processor.

Questions Marks

1. What are features of 80386 microprocessor? (Dec-2015, Dec-2014) 05

2. Write features of 80486 Microprocessor. (May-2015) 05

3. Write features of 80286 Microprocessor. (May-2014) 05

4. Describe in brief and compare architecture of 80286 and 80386

microprocessors. (Dec-2016, May-2016)

10

5. Draw and explain an architecture of Pentium processor. (Dec-2015, May-

2014)

10

6. Draw and explain an architecture of 80286 processor. (Dec-2014) 10

Points to Remember:

Features and Architecture of advanced processors like 80286, 80386, 80486 and Pentium.

6.1 Basic architectures of 80286, 80386, 80486 and Pentium processor.

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 18

Viva Questions

1. What is operating frequency of 8086 & 8085?

2. Explain basic difference between 8086 & 8088.

3. What is maximum memory addressing and I/O addressing capability of 8086?

4. From which address 8086-start execution after reset.

5. What is use of maximum mode in 8086?

6. What is use of 8284 IC?

7. What is LOCK prefix? What is its use?

8. What is REP prefix? What is its use?

9. Explain the bi-functionality of AX register.

10. Explain the bi-functionality of BX register.

11. Explain the bi-functionality of CX register.

12. Explain the bi-functionality of DX register.

13. How does CPU identify between 8-bit and 16-bit operations?

14. What is the difference between the jump and loop instructions.

15. Which instruction of 8086 can be used for look up table manipulations?

16. What is difference between the respective shifts and rotate instructions?

17. How will you enter the single step mode of 8086?

18. What determines whether the microprocessor is an 8-bit, 16-bit or 32-bit microprocessor?

19. What is the size of 8086-address bus?

20. What do you mean by pipelining?

21. Why instruction queue of 8086 of 6-byte long?

22. What are the uses of flags?

23. Calculate the physical addresses represented by

a. 1234H: 0002H

b. 2670H: 2222H

c. F2F2H: 1234H

24. What are the main differences between the general-purpose registers, index and pointer

registers?

Question Bank for Microprocessor & Peripherals (EXTC) - Semester IV

COMPILED BY: Department of Electronics & Telecommunication Engineering, PCE, New Panvel. Page 19

25. What is the addressing mode used for following instructions

a. MOV AX, BX

b. MOV AX, [DI]

c. MOV [SI + BP]

d. MOV CX, 2342H

26. What is wrong with a MOV [BX], [DI] instruction?

27. What is wrong with a MOV AX, DL instruction?

28. Explain the direction flag and its use in string data transfer instruction

29. What are the differences between LODSB, LODSW, STOSB, and STOSW?

30. What are the differences between LAHF instruction and POP flag reg. Instruction?

31. What is the function of DT/R?

32. How is the 8086 data address bus demultiplexed?

33. What is the function of DEN?

34. What is the function of S2, S1, and S0?

35. What is the function of AND, OR, XOR instructions?

36. What is the function of NOT and NEG instructions?

37. What is the function of TEST instruction? On which register it is effective?

38. What is the function of MUL & IMUL?

39. What is the function of DIV & IDIV?

40. What is the use of A0 and BHE’ pin of 8086.

41. What will happen if ready pin of 8086 is left unconnected?

42. Why 8086 is called as 16-bit Microprocessor?

43. What is BSR mode in 8255?

44. Can ROM be used as stack?

45. Which microprocessor pins are used to request and acknowledge a DM transfer in Minimum

and Maximum mode?