DHANALAKSHMI COLLEGE OF ENGINEERING CHENNAI. EC6504 Microprocessor and Microcontroller Question Bank IV Semester ECE Department of Electronics and Communication Engineering 1
UNIT I THE 8086 MICROPROCESSOR 1. Draw the pin diagram of 8086 microprocessor and explain the function of each pin. (8)[N/D 11] 2. Explain the internal hardware architecture of 8086 microprocessor with a neat diagram. (12) [N/D 12][A/M 11] 3. Explain the different data transfer schemes with examples. (8) [N/D 12] 4. What are the peripheral I/O instructions? Write its syntax. Explain the same with the timing diagram. (8)[N/D 10] 5. Explain the external memory addressing of 8086. (8)[A/M 11] 6. Explain the interrupt architecture of 8086 microprocessor. (16)[A/M 12] [A/M 11][N/D 10] 7. Explain maximum mode bus cycle in 8086 microprocessor. (8)[A/M 12] 8. Draw and explain the signals and bus cycles in maximum mode system configuration of 8086 microprocessor. (16)[N/D 12] 9. How is 8086 configured in maximum mode and in minimum mode? Explain. (8)[N/D 11] 10. Explain the various multiprocessor configurations. (16) UNIT II 8086 SYSTEM BUS STRUCTURE 1. Explain the 8086 instructions used for transferring data among registers, memory, stack, and I/O devices. (8)[N/D 12] 2. Write a program using 8086 instruction set to multiply a constant value with a sequence of data, from 1 to n, stored in memory. (8)[N/D 12] 3. Write a program using 8086 instruction set to compute the average of n number of bytes stored in the memory. (8)[N/D 12] 4. Explain data transfer, arithmetic and logical group instructions of 8086 microprocessor. (16)[A/M 11][A/M 12] 5. Write an assembly language program for 8086 to arrange the set of numbers in ascending order and explain in detail. (16)[A/M 12] Department of Electronics and Communication Engineering 2
6. How are the 8086 instructions classified according to their functional categories? Explain each with an example. (8)[N/D 11] 7. Write an assembly language program for 8086 to multiply two 16 bit binary numbers to generate a 32 bit result. (8)[N/D 11] 8. Explain with examples the following 8086 instructions (8)[N/D 11] a) AAA b) CBW c) IMUL d) INTO 9. Write an assembly language program for 8086 to sort the array of elements in ascending order. (8)[A/M 11] 10. Write an assembly language program for 8086 to find the largest element in an array. (6)[A/M 11] 11. Explain the 8086 bit manipulation instructions with an example for each. (16)[N/D 10] 12. Write an assembly language program for 8086 to convert BCD data to binary data. (8)[N/D 10] 13. Explain the various assembler directives in 8086 microprocessor programming. (8)[N/D 12] 14. What is the function of the ASSUME, DB, EQU, EVEN assembler directives of 8086? (8)[N/D 11] 15. Explain the assembler directives ASSUME, EQU, DW, and EVEN with suitable examples. (8)[A/M 11] 16. Explain the relative addressing mode and the implied addressing mode with its syntax. Write an example for each. (8)[N/D 10] 17. Design an 8086 based system in minimum mode containing 64kb of EPROM and 64kb of RAM (16) 18. Explain the operand addressing of 8086 with examples (8) UNIT III I/O INTERFACING 1. Explain in detail, the programming and operating modes of 8255 PPI in detail. Department of Electronics and Communication Engineering 3
(16)[N/D 12] [A/M 12] [A/M 11] 2. Draw the block diagram to interface a keyboard and a 7-segment LED using 8255 Programmable Peripheral Interface. (8)[N/D 11] 3. Draw the block diagram of 8279 keyboard and display control and explain them in detail. (16)[N/D 11] [N/D 10] [A/M 11] 4. Describe the architecture and working of 8253 timer. Explain its modes of operation. (16)[A/M 11][N/D 10] 5. Explain the need for sample and hold circuit and multiplexer. (8)[N/D 11] 6. Explain the interfacing of any 8 bit A/D converter with an 8086 microprocessor. Write an assembly language program for conversion. (16)[A/M 12] 7. Draw and explain the operation of R-2R method of D/A converter. (8)[N/D 12] 8. Explain the function of CRT terminal interface. (8)[N/D 12] UNIT IV- MICROCONTROLLER 1. Explain the parallel port architecture of 8051 microcontroller. (8)[N/D 12] 2. Draw the pin diagram of 8051 and explain in detail, the function of each pin. (10) 3. Draw the bit pattern of Program Status Word of 8051 and explain the significance of each bit with examples. (8) 4. List out the special function registers of 8051 microcontroller and explain their functions. (10) 5. Explain the memory organization of 8051 microcontroller. (8)[A/M 12] 6. Explain the architecture of 8051 microcontroller with neat diagram. (16)[N/D 11][A/M 11] [N/D 10] 7. Explain the data memory structure of 8051 microcontroller. (8)[N/D 11] 8. Explain the arithmetic and branching instruction of 8051 microcontroller with example. (8)[N/D 12] 9. Write a program using 8051 instruction set to pack an array of unpacked BCD digits. (8)[N/D 12] 10. Explain the working of program control transfer instructions of 8051 microcontroller. (8)[A/M 12] 11. Write an 8051 assembly language program for a lookup table application. (8)[A/M 12] 12. Write an assembly language program to generate square wave using on-chip timer. Department of Electronics and Communication Engineering 4
(8)[A/M 12] 13. Assume that 5 BCD data items are stored in RAM locations starting at 40 H. Write an 8051 program to find the sum of all the numbers. The result must be in BCD. (8)[N/D 10] 40 = (71) 41 = (11) 42 = (65) 43 = (59) 44 = (37) 14. Explain the logical instructions in 8051 with an example. (8)[N/D 10] 15. Explain the rotate and swap instruction with an example for each. (8)[N/D 10] 16. Explain in detail, the different addressing modes of 8051. (8) 17. Explain the operations carried out when the following instructions are executed by 8051. (16) a) MOVX @ R 0, A b) MOVC A, @A + PC c) RLC A d) CJNE A, 50 H, L 2 e) JBC 20H, L 3 f) XCH A, 30 H where, L 2 and L 3 are labels 25. Explain the following instructions of 8051 with examples: (16) a) CJNE destination, source, label b) MUL AB c) RRL A d) SWAP A e) SETB P2.0 18. Write an 8051 assembly language program to evaluate Q = (u (v + w)) + ( x. y' ) + z' ). (6) 19. Explain the operating modes for serial port of 8051 microcontroller. (4)[A/M 11] 20. Explain the operation of serial port with associated register. (8)[N/D 12] Department of Electronics and Communication Engineering 5
21. Write an assembly language program for 8051 to create a square wave of 66 % duty cycle on bit 3 of port 1. (6)[A/M 11] 22. How are the timers of 8051 used to produce time delay in timer mode? (8)[N/D 11] 23. Explain the interrupt structure of 8051 microcontroller. (8)[N/D 11] 24. Explain the different modes of operation of timers/counters in 8051 with its associated register. (10)[A/M 11] 25. Write a program in 8051 to transfer letter A serially at 4800 baud rate, 8 bit data and 1 stop bit continuously. (8) 26. Write a program in 8051 to transfer message YES serially at 9600 baud rate, 8 bit data and 1 stop bit continuously. (6) UNIT V INTERFACING MICROCONTROLLER 1. Explain the microprocessor based traffic light control system with a neat sketch. (16)[N/D 12] 2. Develop a microcontroller based traffic light controller and explain its working. (16)[A/M 11][A/M 12] 3. Explain the microcontroller based system design with an example. (16)[N/D 12] 4. Explain the working of microprocessor based stepper motor control with suitable circuit diagram. (16)[N/D 10][A/M 12] 5. Draw the diagram to interface a stepper motor with 8051 microcontroller and explain. Write an 8051 assembly language program to run the stepper motor in both forward and reverse direction with delay. (16)[N/D 10][A/M 11] 6. Write any four application of stepper motor? How is microcontroller interfaced with stepper motor? (8)[N/D 11] 7. What is the need for pulse width modulation in motor control application? Explain. (8)[N/D 11] 8. List out the features of RTC device. (6)[A/M 11] 9. How is a byte read from a RTC using I 2 C protocol? (8) [N/D 11] Department of Electronics and Communication Engineering 6
10. How is a washing machine controlled using microcontroller? (8)[N/D 11] 11. How are microcontrollers and microprocessors used for the washing machine control application? (16)[N/D 10] Department of Electronics and Communication Engineering 7