This document contains a question bank related to microprocessors and microcontrollers. It includes questions related to the 8085 microprocessor, 8051 microcontroller, and their programming, architecture, interrupts, timers/counters and interfacing. Some sample questions include the number of flags in 8085, addressing modes in 8051, interfacing DAC and ADC with 8085, and using timers in 8051. The questions are divided into multiple units covering microprocessor basics, programming, applications, microcontroller basics, instructions and addressing modes, and interrupts and timers.
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
0 ratings0% found this document useful (0 votes)
110 views5 pages
MPMC Question Bank
This document contains a question bank related to microprocessors and microcontrollers. It includes questions related to the 8085 microprocessor, 8051 microcontroller, and their programming, architecture, interrupts, timers/counters and interfacing. Some sample questions include the number of flags in 8085, addressing modes in 8051, interfacing DAC and ADC with 8085, and using timers in 8051. The questions are divided into multiple units covering microprocessor basics, programming, applications, microcontroller basics, instructions and addressing modes, and interrupts and timers.
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/ 5
Question Bank: Microprocessor and Microcontroller
Unit-1: Microprocessor Basics
1. The interrupt with highest priority of 8085 is _________ 2. Which are the temporary registers in 8085? 3. Number of flags in 8085 is__________ 4. Maximum size of memory that can be supported by 8085 is ______ 5. 8085 is a _____ bit processor 6. What is instruction register in 8085? 7. The number of pins in 8085 is ________ 8. The pin used to demultiplex address and data bus is ________ 9. The instruction code currently being executed is stored in _____ 10. SP holds the address of stack memory’s ________ 11. In 8085 the first machine cycle of any instruction of any instruction is _______ 12. The full form of MBR is _______ 13. The power supply level required for 8085 is ________ 14. The lowest priority interrupt of 8085 is ________ 15. When is the zero flag set in 8085? 16. When is the sign bit set in 8085? 17. What is PSW of 8085? 18. What is the biggest integer that can be stored in 8-bit memory is _____ 19. What is the relation between crystal frequency and operating frequency of 8085? 20. What is the use of SIM instruction in 8085? 21. Explain with diagram the functional block diagram of 8085. 22. Draw the timing diagrams of the following for 8085- STA 3020H, MOV A, M 23. Describe the register structure of 8085? 24. Write the steps involved in interrupt driven data transfer in 8085. 25. Write down the steps of interrupts in 8085. 26. Write short notes on status signals of 8085. 27. Name one non-vectored interrupt of 8085. 28. What is ALU? What are its functions in 8085? 29. What are the reset signals in 8085? 30. The DMA signals of 8085 are ________ 31. The names of general purpose registers of 8085 are __________ 32. Explain the functions of the following signals in 8085- (a) HLDA, (b) READY, (c) ALE, (d) RESET, (e) HOLD, (f) INTA
Unit-2: Microprocessor Programming
1. Give an example of implied addressing mode in 8085? 2. Which of the following instruction does not modify any flag? (a) ADD (b) CMP (c) XRA (d) INX.
Ghatal Govt Polytechnic
Prepared by Anirban Mandal, Lecturer, DEE 3. Which of the following command is udes for clearing the accumulator? (a) XRA A, (b) MVI A, 00H, (c) SUB (d) All of the above. 4. Executing PUSH instruction SP is incremented _____ 5. What is the result when 59H is subtracted from 50H? 6. If the memory location of the instruction STA 2060H is 201D, then what will be the memory location of the next instruction? 7. What are the two basic stack operations? 8. The type of addressing used in MOV A, M is _________ 9. The instruction to to move the contents of register 3 to the accumulator is- (a) MOV 3R,A (b) MOV R3,A (c) MOV A,R3 (d) MOV A, 3R 10. Addressing mode related with MVI B, 09H is _________ 11. Name the flag not affected by INR instruction. 12. What is done in 8085 when RLA instruction is given? 13. A compiler is __________ than accumulator. 14. When a CALL instruction is executed the SP is _______ by 2 15. Write an assembly language program to convert – (a) BCD to HEX, (b) HEX to BCD. 16. Explain what will happen after the execution of the following instructions- (a) LXI B, 2050H, (b) LDA 2050H, (c) LHLD 2050H, (d) STA 2050H, (e) SHLD 2050H 17. Write an assembly level language program to (a) multiply two unsigned 8-bit numbers, (d) divide two 8 bit numbers. 18. Write an assembly level program to add two 16-bit numbers. 19. Explain the functionality of the following instructions- (a) JNZ (b) XHTL (c) RAR (d) PCHL 20. Write an assembly language program to– (a) to add two 8-bit numbers, (b) to subtract two 8- bit numbers.
Unit-3: Application of microprocessor
1. Full scale output of an 8-bit DAC for 0-12V input is ________ 2. What is the mode-2 of 8255? 3. What is the full form of PPI? 4. Define Control Word Register. 5. The total number of pins in 80255 is _______ 6. Draw a schematic of interfacing an 8-bit DAC through 8255 PPI. 7. Design a stepper motor controller using 8085. Also write down the program to rotate it in a fixed rpm. 8. Explain mentioning the names of suitable interfacing devices, how a triangular wave can be formed using 8085. 9. Write an assembly language program to operate a d.c. motor at two different speeds interfacing with 8085 through 8255 PPI. 10. Describe how frequency can be measured using 8085.
Ghatal Govt Polytechnic
Prepared by Anirban Mandal, Lecturer, DEE 11. Write short notes on the following- (a) 8255, (b) Interfacing ADC and DAC with 8085, (c) Speed control of DC motor.
Unit-4: Microcontroller Basics
1. In 8051 the maximum size of stack is ________ 2. Number of 16 bit registers in 8051 is ________ 3. The size of internal ROM of 8051 is ________ 4. An example of a microcontroller without ROM is ________ 5. How many bytes of bit-addressable memory locations are there in the RAM of 8051? 6. In which register are there flag bits, which are set/ reset by arithmetic operations? 7. The alternate function of port pin P3.4 of 8051 is ________ 8. The alternate function of port pin P3.0 of 8051 is ________ 9. The total size of memory that can be interfaced by 8051 is ________ 10. The number of parallel ports in 8051 is _______ 11. The number of serial pins in 8051 is ________ 12. The full form of ALE in the context of 8051 is ________ 13. PSEN in the context of 8051 stands for _________ 14. PCON in 8051 is used for _______ 15. What is power down mode in 8051? 16. What is the size of data bus of 8051? 17. The number of timer/ counter in 8051 is _______ 18. 8051 is an ________ microcontroller 19. Write the differences between a microprocessor and a microcontroller. 20. Explain with a functional block diagram the internal architecture of 8051 microprocessor. 21. Write short notes on PSW and Data pointer of 8051. 22. Write short notes on any 5 SFRs. 23. What is the relation between oscillator frequency and machine cycle in 8051?
Unit-5: 8051 addressing modes and instructions
1. What is the addressing mode associated with MVI B, 09H? 2. In 8051, the instruction MOV 20H, 42H is a- (a)1 byte, (b) 2 byte, (c) 3byte, (4) 4 byte instruction. 3. Which of the following statement will add to the accumulator the content of Register-3 (a) ADD @R3 (b) ADD @, R3 (c) ADD R3, A (d) ADD A, R3. 4. Which of the following command will copy the contents of RAM whose address is in register 0 to port 1? (a) MOV @P1, R0 (b) MOV @R0, P1 (c) MOV P1, @R0 (d) MOV P1. R0 5. Which of the following command will move the number 27H into the accumulator? (a) MOV A, @27 (b) MOV A, #27H (c) MOV A, 27H (d) MOV A, @27H. 6. What is the content of Accumulator after MOV A, #2BH operation?
Ghatal Govt Polytechnic
Prepared by Anirban Mandal, Lecturer, DEE 7. MOV A, @R1 will- (a) Copy R1 to the accumulator, (b) copy the accumulator to R1, (c) copy the contents of memory whose address is in R1 to the accumulator, (d) copy the accumulator to the contents of memory whose address is in R1. 8. What will be the content of the accumulator after execution of the following instruction in 8051 - (a) MOV A, #55H XRL A, #8AH (b) MOV A, #55H ANL A, #8AH (c) MOV A, #55H ORL A, #8AH 9. Write programs in 8051 to convert (a) a HEX number to BCD, (b) a BCD number to HEX. 10. JNC is an example of ________ 11. RLC is an example of ________ 12. CLR C is an example of _____ level instruction 13. Stack memory works on last in ______ out 14. Name various addressing modes of 8051. Give two examples of each type. 15. Write programs in 8051 to convert (a) a HEX number to BCD, (b) a BCD number to HEX. 16. What are full forms of the following commands- (a) DJNZ, (b) CJNE. 17. Write an instruction to switch from register bank-0 to register bank-3 in 8051. 18. What is RLA instruction in 8051? 19. Write instructions to add two 8-bit numbers stored in memory locations 10H and 11H and copy the result in 20H. 20. Write a program in 8051 to add two 16-bit numbers. 21. What is the function of stack pointer in 8051? 22. What is the function of program counter in 8051? 23. The functionality of REC instruction of 8051 is _________ 24. How can you use DIV and MUL functions in 8051? 25. Write a program in 8051 to perform subtraction of two 8-bit numbers. 26. What is SWAP instruction in 8051? 27. Write a program to subtract the contents of R1 of bank 0 from the contents of R0 of bank-3. 28. Give one example (explaining the meaning) of each of the topics below – (a) Mixed direct and immediate addressing mode in 8051, (b) Mixed direct and indirect addressing mode in 8051, (c) Mixed indirect and immediate addressing mode in 8051. 29. What will be the content of accumulator after execution of steps (a) and (b) as given below in 8051? MOV A, #98h ORL A, #57h -----------(a) ANL A, #34h -----------(b)
Ghatal Govt Polytechnic
Prepared by Anirban Mandal, Lecturer, DEE 30. What will be the content of accumulator and carry flag after execution of steps (a) and (b) as given below in 8051? MOV A, #2Bh SETB C RLC A ------------(a) RR A ------------(b) 31. What will be the content of Accumulator, SFR B and overflow flag after execution of the following set of commands in 8051? MOV A, #07h MOV B, #02h MUL AB
Unit-6: 8051 interrupts, timer/counters
1. What is the function of Gate in the TMOD register of 8051? 2. How a timer is made to work as a counter in 8051? 3. Define interrupt in the context of a microcontroller or a microprocessor. 4. Explain the bit-structure of IE register. 5. The address of IE register is _________ 6. How many interrupt sources can 8051 handle? 7. What is the priority level of serial interrupt in 8051? 8. What is the highest priority interrupt of 8051? 9. The byte-level addresses of TMOD and TCON are ______ and ______ respectively 10. TMOD is a ____ addressable register 11. TCON is a ____ addressable register 12. Write the vector addresses of interrupts of 8051. 13. The bits of IE used to enable external interrupts is ______ 14. The use of EA bit in 8051 is for _______ 15. Briefly describe the interrupts of 8051. 16. Draw and discuss the formats and bit definitions of TMOD and TCON SFRs in 8051. 17. Write a program for 8051 to generate a square wave of 50% duty cycle over port 1.0 using timer-0 of in mode-1. 18. Write a short note on 8-bit Auto-reload mode of 8051. 19. Write down the steps to enable an interrupt in 8051? 20. Write an assembly language program to generate a delay of 10 ms.
Unit-7: Application of microcontroller
1. Write a program in the 8051 microcontroller to generate a triangular waveform. 2. Write a program in the 8051 microcontroller to generate a stair-case waveform. 3. Write a program in the 8051 microcontroller for control of a Stepper motor. 4. Write a program in the 8051 microcontroller to measure frequency of an electrical signal.