VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur-603 203 DEPARTMENT OF COMPUTER SCIENCE ENGINEERING EC6504 MICROPROCESSOR AND MICROCONTROLLER YEAR / SEMESTER: II / IV ACADEMIC YEAR: 2015-2016 (EVEN SEMESTER) QUESTION BANK Prepared by,, A.P (O.G), A.P (O.G)
EC6504 MICROPROCESSOR AND MICROCONTROLLER UNIT I THE 8086 MICROPROCESSOR Introduction to 8086 Microprocessor architecture Addressing modes - Instruction set and assembler directives Assembly language programming Modular Programming - Linking and Relocation - Stacks - Procedures Macros Interrupts and interrupt service routines Byte and String Manipulation. PART A Q.No Questions BT Level Competence 1. what is microprocessor? What is the difference between a MP and CPU? 2. Why does the program counter and stack pointer are registers of 16 bit? 3. Can you recall the flags of 8086? 4. What is stack? 5. What is assembler directives? 6. How would you explain various programmed data transfer methods? 7. How is physical address generated in 8086? 8. State in your own words the 8086 instructions used for BCD arithmetic? 9. How would you classify any four program control instructions available in 8086 10. What is meant by assembler directive? Give two examples? 11. How would you show your understanding of any two external hardware synchronization instruction of 8086 microprocessor? 12. How would you use carry and zero flags that reflect the result of the instruction CMP BX, CX? 13. What examples can you find to explain any four miscellaneous instructions in 16 bit processor? 14. Can you identify 8086 instructions used for ASCII arithmetic? BTL 4 Analyze 15. How would you classify various string instructions available in 8086. BTL 4 Analyze 16. What do you think about procedures? BTL 4 Analyze 17. What is your opinion on Macros? BTL 5 Evaluate 18. What is your opinion on modular programming? BTL 5 Evaluate
19. Can you elaborate on any four string instructions? BTL6 20. Can you formulate the theory for why string primitives are used? PART B 1. (a)how would you show your understanding of internal hardware architecture of 8086 microprocessor with neat diagram? (10) (b) What is the main idea of about assembler directives? (6) 2. (a)what are the various addressing modes of 8086 microprocessor with examples? (10) (b)write an assembly language program for performing the Addition of two byte numbers using 8086 Microprocessor. (6) 3. (a)what do you think about Data transfer, arithmetic and branch instructions? (8) (b)how would you apply what you have learned to develop an 8086 ALP to find the sum of numbers in the array of 10 elements? (8) 4. (a)how would you explain modular programming in detail? (10) (b)write an ALP to perform division operation using 8086 mnemonics. (6) 5. (a) Can you recall stack, procedures and macros? (8) (b)write an ALP to perform BCD addition using 8086 instruction set. (8) 6. (a)state in your own words interrupt and their two classes? What is meant by interrupt service routine? (10) (b)write an assembly language program to perform matrix addition using 8086 Microprocessor. (6) 7. (a)what is the main idea of byte and string manipulation? Explain with examples? (10) (b)write an ALP to move a block of data without overlap using 8086 mnemonics. (6) 8. (a)what is your opinion about instruction formats and instruction execution timing? (8) (b)write an assembly language program to find a character in the string using 8086 Microprocessor. (8) 9. (a) Can you invent an ALP to find the largest number and smallest number in the array? (10) (b) Write an assembly language program to simulate code converter using 8086 instruction Set. (6) 10. What do you think about (a)loop, NOP and HLT instructions. (8) BTL 5 BTL 4 Evaluate Analyze
(b) Flag manipulation, logical and shift& rotate instructions? (8) BTL 4 Analyze UNIT II 8086 SYSTEM BUS STRUCTURE 8086 signals Basic configurations System bus timing System design using 8086 IO programming Introduction to Multiprogramming System Bus Structure - Multiprocessor configurations Coprocessor, Closely coupled and loosely Coupled configurations Introduction to advanced processors. PART A Q.No Questions BT Level Competence 1. What is a Bus? 2. How would you describe External & Internal Bus? 3. How would you explain two modes of operation in 8086? 4. What is minimum mode and maximum mode? 5. Can you recall bootstrap loades? 6. How would you explain use of initialization command words and operation command words? 7. Draw the typical sequence of bus cycles? 8. How would you classify I/O. 9. What is meant by direct memory access? 10. How would you compare double buffering and multiple buffering? 11. How would you show your understanding of two classes of interrupts? 12. How would you use nonmaskable interrupt? 13. How would you show your understanding on bus request, bus Grant and cycle stealing? 14. Can you identify system throughput? BTL 4 Analyze 15. Draw the process states and state changes in a simple multiprogramming. BTL 4 Analyze 16. What do you think about first fit algorithm? BTL 4 Analyze 17. What is your opinion on fragmentation problem in multiprogramming? How can we avoid it? BTL 5 Evaluate
18. What is your opinion on coprocessor configuration? BTL 5 Evaluate 19. Can you elaborate on the difference between closely and loosely coupled configurations? 20. Can you elaborate on how a bus access logic help to resolve the bus arbitration problem? PART B 1. What is Minimum mode and maximum mode of operation in 8086? Explain in detail. 2. How would you explain the system bus timing of 8086/8088. 3. How would you show your understanding of (i) Programmed I/O (8) (ii) Interrupt I/O (8) 4. How would you describe block transfers and DMA? Explain in detail. 5. What is meant by closely coupled configurations? Explain. 6. (a)state in your own words about loosely coupled configurations in detail. (8) (b)write short notes on Coprocessor system. (8) 7. How would you show your understanding of (i)process Management & irmx86 (8) (ii)memory Management and Virtual Memory (8) 8. What is your opinion of Numeric data Processor? Explain in detail. 9. Based on what you know, how would you explain I/O Processor. BTL 5 Evaluate 10. What do you think about the following (i) Multiprocessor system and Coprocessor (8) (ii) Multiprogramming and Semaphore (8) BTL 4 Analyze UNIT III I/O INTERFACING Memory Interfacing and I/O interfacing - Parallel communication interface Serial communication interface D/A and A/D Interface - Timer Keyboard /display controller Interrupt controller DMA controller Programming and applications Case studies: Traffic Light control, LED display, LCD display, Keyboard display interface and Alarm Controller. PART A Q.No Questions BT Level Competence
1. What are the advantage and disadvantage of parallel communication over serial communication? 2. How would you describe A/D & D/A convertor 3. How would you explain the four display modes of 8279 keyboard/display controller 4. How would you explain the applications of programmable interval timer. 5. What is interfacing? 6. Can you recall the various modes of 8254 timer? 7. How would you classify the output modes used in 8279? 8. What is the main idea of end of conversion signal while interfacing A/D converter to a microprocessor? 9. What can you say about the modes used by the DMA processor to transfer data. 10. What is meant by key bouncing? 11. How would you use terminal count register? 12. How would you show your understanding on memory interfacing. 13. How would you show your understanding on the use of 8251 chip? 14. What do you think about USART? BTL 4 Analyze 15. Can you identify the features of used mode 1 in 8255? BTL 4 Analyze 16. Can you identify the basic modes of operation of 8255? BTL 4 Analyze 17. What is your opinion on the different types of command words used in 8259? BTL 5 Evaluate 18. What is your opinion on the operating modes of 8259A? BTL 5 Evaluate 19. Can you elaborate on the purpose of control word written to control register in 8255? 20. Can you elaborate on polling? PART B 1. (a)what is 8254 programmable interval timer and explain with diagram.(10) (b)explain the various modes of operation in 8254 programmable interval timer. (6) 2. (a)how would you explain 8279 keyboard. Explain with neat block diagram. (8) (b)explain 8279 keyboard /display controller. Explain with neat block diagram (8)
3. How would you show your understanding on (i) how to interface: (A)ADC and (B) DAC (10) (ii)compare serial and parallel interface? (6) 4. (a)how would you explain block diagram of the 8251. (8) (b)write short notes on 8251 operating modes (8) 5. (a)what can you say about I/O interface &explain in detail with diagrams (10) (b)how would you explain block diagram of the 8255. (6) 6. (a)what is meant by DMA controller? Explain in detail (10) (b) Write an assembly language program in 8086 to display the rolling message CSE - DEPT in the display. (6) 7. (a)how would you show your understanding on the format of I/O mode set control and BSR control word of programmable peripheral interface. Explain in detail the operating modes of PPI? (10) (b)write an assembly language program to demonstrate Mode 0 operation of 8255 by interfacing 8086. (6) 8. (a)what do you think about traffic light control system? Explain with neat diagram. (8) (b)write an assembly language program for interfacing 8279 with 8086. (8) 9. (a) Write an assembly language program to convert Analog signal into a Digital signal using ADC interfacing using 8086 Microprocessor. (10). (b) Write an 8086 ALP to generate a waveform whose duty cycle is 50% using suitable interface. (6) 10. (a) Write an assembly language program in 8086 to interface alarm controller (10) (b)interface DAC with 8086 to generate saw tooth waveform (6) BTL 4 BTL 5 Analyze Evaluate UNIT 4 MICROCONTROLLER Architecture of 8051 Special Function Registers(SFRs) - I/O Pins Ports and Circuits - Instruction set - Addressing modes - Assembly language programming. PART A Q.No Questions BT Level Competence 1. What is the size of memory systems used in 8051 microcontroller?
2. How would you explain the different operand types used in 8051 3. Can you recall the counters in 8051 4. How would you explain the register bank of 8051 5. Can you recall the number of ports are bit addressable in 8051 6. What are the hardware and software interrupts of 8051?mention its vector addresses 7. State in your own words the power down mode of 8051 8. What can you say about the different ways of operand addressing in 8051 9. How do you place a specific value in the DPTR register? 10. What is meant by PSW in 8051 11. How would you show your understanding of four siginificant features of 16-bit microcontroller? 12. What is the difference between microprocessor & micro controller? 13. How would you show your understanding of addressing modes of 8051? 14. What do you think about the instructions used to access external RAM. BTL 4 Analyze 15. Can you identify the features of 8051 microcontroller? BTL 4 Analyze 16. Can you identify the data types of 8051 BTL 4 Analyze 17. What is your opinion on the special functions registers available in 8051 BTL 5 Evaluate 18. What is your opinion on the software and hardware interrupts of 8051? Mention BTL 5 Evaluate its vector addresses. 19. Can you elaborate on how the selection of particular register bank is done in 8051? 20. Can you elaborate on any two instruction of data serialization PART B 1. (i) Come up with a program based on 8051 instruction set to pack array of unpacked BCD digits. (10) (ii) Write an ALP to determine the Cube of a number using 8051 instruction set. (6) 2. (i) How would you describe the I/O pins ports circuit details of 8051 with its diagram. (10) (ii) Describe I/O port configuration details of 8051 with its diagram. (6) 3. (i) Write an ALP to find square of a number in 8051 microcontroller. (10) (ii) Write an assembly language program for Logical and 2 s Complement operations using 8051 Microcontroller. (6)
4. (i)come up with a program to bring in data in serial form and send it out in parallel form using 8051 (8) (ii) Write an assembly language program to determine the square using 8051 microcontroller (8) 5. (i)state in your own words and explain the arithmetic instruction of 8051 microcontroller. (8) (ii) Explain logic instruction of 8051 microcontroller with examples. (8) 6. (i)what is your opinion on the data types and assembler directives of 8051. (10) (ii) Write short notes on label and flag conditional statement. (6) 7. (i) How would you compare the different instruction set of 8051 microcontroller. (10) (ii) Explain different type of addressing modes with examples (6) 8. (i) How would you explain an 8051 ALP to create a square wave 66%duty cycle on bit3 of port 1. (8) (ii) How would you explain an 8051ALP to create a Triangular wave 66% duty cycle on bit3 of port 1. (8) 9. (i)how would you describe the architecture of 8051 with its diagram? (8) (ii) Write short notes on about register bank. (8) 10. (i) Can you elaborate on special function register of 8051 in detail. (10) (ii) Write an assembly language program for performing the multiplication of two 8 bit data using 8051 and store the result in memory. (6) BTL 5 BTL 4 Evaluate Analyze UNIT V INTERFACING MICROCONTROLLER Programming 8051 Timers - Serial Port Programming - Interrupts Programming LCD & Keyboard Interfacing - ADC, DAC & Sensor Interfacing - External Memory Interface- Stepper Motor and Waveform generation. PART A Q.No Questions BT Level Competence 1. What are the uses of I2C bus standard? 2. Can you recall the advantages of microprocessor based system design. 3. Can you list two classifications of stepper motor. 4. Can you recall the applications of stepper motor.
5. What is the use of stepper motor? 6. How would you differentiate microprocessor from microcontroller in system design. 7. State in your own words how is stepper motor interfaced with 8051? 8. What is the main idea of PWM in motor control using microcontroller? 9. State in your own words the features of RTC? 10. What is meant by interrupt service routine 11. How would you show your understanding on polling? 12. How would you compare polling and interrupt 13. How would you show your understanding on interrupt priority in 8051 14. What do you think about signal conditioning BTL 4 Analyze 15. Can you identify the types of memory BTL 4 Analyze 16. What do you think about the use of PSEN signal BTL 4 Analyze 17. What is your opinion on registers associated with timer programming BTL 5 Evaluate 18. What is your opinion on registers associated with counter programming BTL 5 Evaluate 19. Can you elaborate on registers associated with serial programming 20. Can you elaborate on baud rate of 8051 PART B 1. How do you explain with diagram to interface a stepper motor with 8051 microcontroller and explain also write an 8051 ALP to run the stepper motor in both forward and reverse direction with delay. 2. (a) Can you recall how interrupts are handled in 8051. (10) (b) Write short notes on interrupt register in 8051. (6) 3. How would you describe LCD interface. Explain in detail. 4. (a) State in your own words 8051 serial port programming (10) (b) Write short notes on I2C interface. (6) 5. How would you explain about external memory interfacing to 8051 6. How would you show your understanding on 8051 timer and counter programming. 7. (a)state in your own words ADC interfacing using 8051 and explain with diagram. (10)
(b)can you recall DAC interfacing using 8051and explain with diagram. (6) 8. What is your opinion on the keyboard interfacing using 8051 BTL 4 Analyze 9. (a) Can you elaborate onthe sensor interfacing using 8051. (10) (b) How would you describe seven segment LED interface. (6) 10. (i) How do you explain with diagram to interface a DC motor with 8051 microcontroller and explain also (10) (ii) write an 8051 ALP to run the DC motor in both forward and reverse direction with delay. (6) BTL 5 Evaluate