SlideShare a Scribd company logo
1 of 6
Download to read offline
Dr. Nilesh Bhaskarrao Bahadure
School of Technology
Department of Electronics Engineering
Sanjay Ghodawat University Kolhapur, Maharashtra
Question Bank
Introduction & Programming of 8051:
1. Explain the differences between Microprocessor based system and Microcontroller based system.
2. What is OTP, explain OTP in details.
3. Explain the applications of microcontroller.
4. What is embedded microcontroller?
5. List different 8051 family microcontroller with their features indicating serial port, timers, interrupt
sources and memories.
6. List the differences between 8051, 8052, 8031, 8032, 8751, 8752, AT89C2051, AT89C51, and AT89C52.
7. Explain the features of Intels 8051 Microcontroller.
8. Draw and explain the architecture of Microcontroller 8051.
9. What is the Program status word explains in details with suitable example.
10. Explain register structure of the 8051 Microcontroller.
11. Explain following registers of the 8051 Microcontroller DPTR, PC and SP.
12. Explain the memory organization of the 8051 Microcontroller.
13. What is the special function register, what are their significances in the 8051 Microcontroller?
14. What are the addressing modes? Explain addressing modes of the Microcontroller 8051 in details.
15. Write an ALP to add RAM location contents from 40 44h. Store the result of low byte in register
A and higher byte in register R7.
16. Write a program to add two 16 bit numbers 2345h and 567Ch. Place the sum in register R7 and
R6. R6 should have the lower byte of the result.
17. Write an ALP to add 5 BCD numbers present in RAM memory location starting at 40h. Store the
result of lower byte in register A and higher byte in register R7.
18. Write an ALP to transfer value 41h serially via pin P2.1 .Put two high at the start and two high at
the end of the data. Send the byte LSB first.
19. Write a program to copy data byte serially one bit at a time from port pin P1.7 and save it in
register R2. The byte comes in with LSB first.
20. Write an ALP to count even and odd numbers from the 10 bytes present in the memory location
from 30h. Put the even and odd count in register R7 and R6 respectively.
21. Write an ALP to count positive and negative numbers from the 10 bytes present in the memory
location from 30h. Put the +ve and ve count in register R7 and R6 respectively.
22. Write an ALP to find smallest byte from 10 bytes present in the memory location from 30h. Put
the smallest byte in register R7.
Question Bank - Microcontroller 8051 Page 1
Dr. Nilesh Bhaskarrao Bahadure
23. Write an ALP to find largest byte from 10 bytes present in the memory location from 30h. Put the
largest byte in memory location 7Fh.
24. Write an ALP to find cubes of a number 0 - 6 and put the result in the memory location from 30h.
25. Write an ALP to count byte 00h from 20 bytes present in the memory location from 30H. Put the
result in the external memory at 0200h.
26. Write an ALP to count byte 55h from 20 bytes present in the memory location from 30H. Put the
result in the external memory at 0200h.
27. Assume that register A has packed BCD number write a program to convert packed BCD number
to two ASCII numbers and place them in register R2 and R6.
28. Explain the following instruction JMP @A + DPTR, CALL, RET, INC DPTR, SWAP.
29. Explain absolute and long call with suitable examples.
30. State the contents of RAM location after the following program
SETB PSW.3
MOV R1, #67H
MOV R5, #34H
MOV R7, #0ACH
MOV R2, #55H
31. Write a program to add 3 to the accumulator 10 times. Save the result in register R7.
32. Write a program to load accumulator with AAh and complement the accumulator 700 times.
33. Find the size of the delay in the following program. Assume that the crystal frequency for the 8051
Microcontroller is 11.0592 MHz.
Delay: MOV R3, #200
Here: DJNZ R3, Here
RET
34. Find the size of the delay in the following program. Assume that the crystal frequency for the 8051
Microcontroller is 11.0592 MHz
MOV R3, #250
Here: NOP
NOP
NOP
NOP
DJNZ R3, Here
RET
35. Find the size of the delay in the following program. Assume that the crystal frequency for the 8051
Microcontroller is 11.0592 MHz
MOV R2, #200
Rep: MOV R3, #250
Here: NOP
NOP
DJNZ R3, Here
DJNZ R2, Rep
RET
36. Write a program to clear 16 RAM locations starting at RAM address 60h.
Question Bank - Microcontroller 8051 Page 2
Dr. Nilesh Bhaskarrao Bahadure
37. Write an ALP to find number of 1s in a given byte. Assume byte is available in register R6.
38. Written an ALP to obtained 2s complement of register R6 and store the result at internal RAM
30h.
39. Write an ALP to find twos complement of 16 bit number present in the internal RAM 31h-30h,
memory location 31h consist higher byte and 30h consist lower byte. Put the result in the same
memory location.
40. Write an ALP to find number of ones in a given byte and stored the result in external memory
location at 4000h.
41. Write a program to
(a) Write a value 55h to the RAM locations 40h - 4Fh
(b) Add all these RAM location contents together and save the result in RAM location 60h and
61h.
42. Explain the following pins of the 8051 Microcontroller EA, PSEN, ALE, and RXD.
43. Draw and explain power on reset circuit.
44. What are the reset values for the register of 8051 Microcontroller? Also explain the importance of
Port P0 and Port P2.
45. Write an ALP to toggle all the bits of P0, P1 and P2 every second. Assume a crystal frequency of
11.0592 MHz
46. Write an ALP
(a) To create a square wave of 50% duty cycle on bit 0 of port 1.
(b) To create a square wave of 66% duty cycle on bit 3 of port 1.
(c) To create a square wave of 33% duty cycle on bit 4 of port 1.
Timers of 8051 Microcontroller:
47. Explain the registers of timers. Also explain TMOD and TCON registers.
48. Explain the following:
(a) 13 - bit timer mode
(b) 16 - bit timer mode
(c) 8 - bit timer mode or auto reload mode
(d) Split timer mode
49. Draw and explain timer/counter 0 and timer/counter 1 for the mode 1
50. Draw and explain timer/counter 0 and timer/counter 1 for the mode 2
51. Explain how to initialize the timer with suitable example.
52. Explain 13 - bit timer mode and split timer mode of timers 8051 Microcontroller.
53. Assume that XTAL = 11.0592 MHz Write an ALP to generate pulse width of 5ms on port pin P2.3
using timer 0.
54. Assume that XTAL = 11.0592 MHz, write a program to generate a square wave of 2 KHz frequency
on pin P1.5 using timer 1.
55. Write an assembly language program to generate square wave of 200 µSecond frequency using timer
1 in mode 2. Assume that XTAL = 11.0592 MHz
Question Bank - Microcontroller 8051 Page 3
Dr. Nilesh Bhaskarrao Bahadure
Serial Communication of 8051 Microcontroller:
56. What is serial communication? Explain integrated means of serial communication.
57. Explain the type of transmission used in serial communication.
58. Explain the following: Simplex communication, Duplex Communication and Asynchronous serial
communication in details with examples.
59. Explain asynchronous serial communication using suitable example.
60. What are the means of data transfer rate in serial communication explain in details.
61. Explain in details how to write to the serial port.
62. Explain SBUF and SCON register of 8051 serial communication.
63. Explain the importance of transmit interrupt flag and receive interrupt flag bit of serial communi-
cation.
64. Write an ALP for the 8051 to transfer character ‘A’ serially at 4800 baud rate, continuously.
65. Write a program to transfer the message “YES” serially at 9600 baud rate, 8 bit data, and 1 stop
bit continuously.
Interrupts of 8051 Microcontroller:
66. Explain the differences between Interrupts and Polling.
67. Explain the Interrupts of 8051 Microcontroller in details.
68. Draw and explain interrupt structure of 8051 Microcontroller also explain enabling and disabling
the interrupts.
69. Explain Interrupt enable and Interrupt priority register.
70. Show the instruction to
(a) Enable serial interrupt, timer 0 interrupt and external hardware interrupt 1.
(b) Disable timer 0 interrupt.
(c) Show how to disable all the interrupt with a single instruction.
71. Program the IP register to assign the highest priority to external interrupt 1 then discuss what
happen if INT0, INT1 and TF0 are activated at the same time.
72. Assume that after reset the IP register is set by the instruction MOV IP, 0Ch. Discuss the sequence
in which the interrupts are serviced.
Memory Interfacing with 8051 Microcontroller:
73. Show that the design of an 8031 based system with 8K bytes of program ROM and 8K bytes of data
ROM.
74. Design the interfacing system of 16 K x 8 data RAM with 8051 Microcontroller. Use starting
addresses 8000h.
Question Bank - Microcontroller 8051 Page 4
Dr. Nilesh Bhaskarrao Bahadure
75. Design the interfacing of 8031 based system with 16 KB program space, 16 KB of data ROM starting
at 0000h and 16 KB of NV - RAM starting at 8000h. Show the design using 74LS138 for the address
decoder.
76. Design the interfacing system of 8051 Microcontroller with 256K x 8 data NV - RAM. Also write
an assembly language program to read the contents of memory location from 20000h and store the
contents in internal memory location form 30h.
77. Find the address range of the memory design for Y0, Y3 and Y6 of the 74LS 138 for the given
diagrammed design shown in figure 1
Figure 1: Figure for example 77
Applications of 8051/AT89C51:
78. Design an application to interface LED with the port pin P1.2 and write an assembly language
program to blink the LED.
79. Design an application to interface 7-segment LED with 8051 and write an ALP to display number
8 on it.
80. Design an application to interface 2 Seven - segment LED with 8051 and write an ALP to display
3 and 5 on it.
81. . Design an application to interface 7-segment LED with 8051 Microcontroller and write an ALP
to display 0 - 9 on it
82. Design an application to interface 2*16 LCD with 8051 and write an ALP to display “SGU Kolhapur”
on it.
83. Design an application to interface stepper motor with 8051 and write an ALP to rotate stepper
motor clockwise continuously.
84. Design an application to interface stepper motor with 8051 and write an ALP to rotate stepper
motor anticlockwise continuously.
85. A switch is connected to pin P2.7. write a program to monitor the status of switch and perform the
following.
(a) If SW = 0 ; the stepper motor moves clockwise
(b) If SW = 1 ; the stepper motor moves anticlockwise
86. Design an application to interface ADC 0804 with 8051.
87. Interface ADC 0804 with 8051 Microcontroller. write an ALP to brings an analog input into register
A and then stored then in the internal memory location from 30h onwards.
Question Bank - Microcontroller 8051 Page 5
Dr. Nilesh Bhaskarrao Bahadure
88. Design an application to interface DAC 0808 with 8051 Microcontroller. Write an ALP to generate
a sine wave continuously on DAC. Use port P1 of 8051.
89. Interface DAC 0808 with 8051 µC. Write an ALP to generate a stair- step ramp on port P1.
90. Interface DAC 0808 with 8051 µC. Write an ALP to generate reverse sawtooth waveform using port
P1.
91. Interface DAC 0808 with 8051 µC. Write an ALP to generate triangular waveform at the DAC
output. Generate 200 cycles. Use port P1.
92. Design an application to interface 8 * 8 matrix keyboards with 8051 Microcontroller.
93. Interface 4 * 4 matrix keyboards with 8051 Microcontroller. Write an ALP to read the keypad and
send the ASCII code of pressed key to the port P0.
P1.0 - P1.3 Connected to rows (output)
P2.0 - P2.3 Connected to columns (Input)
94. Design an application to interface 4 * 4 matrix keyboards with 8051 Microcontroller.
95. Design an application for temperature sensor LM 35 with 8051 Microcontroller. Display temperature
reading value on the LCD.
96. Design an application for interfacing of strain gauge with 8051 Microcontroller.
97. Design an application for interfacing of LDR sensor with 8051 Microcontroller.
98. Design an application to interface two 8051 Microcontroller, write a program to transmit character
byte serially from one microcontroller and receive serially by other microcontroller. Also display
received character byte on display device connected with the port P1.
Question Bank - Microcontroller 8051 Page 6

More Related Content

What's hot

Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessorAMAN SRIVASTAVA
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorNikhil Kumar
 
Register Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorRegister Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorNikhil Kumar
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051Muthu Manickam
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller Nitesh Kumar
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Ganesh Ram
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller NotesDr.YNM
 
Proteus Circuit Simulation
Proteus Circuit SimulationProteus Circuit Simulation
Proteus Circuit SimulationAbdul Haseeb
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
Serial communication in 8085
Serial communication in 8085Serial communication in 8085
Serial communication in 8085Nitin Ahire
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1deval patel
 

What's hot (20)

Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 Microprocessor
 
Register Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorRegister Organisation of 8086 Microprocessor
Register Organisation of 8086 Microprocessor
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
Question Bank Microprocessor 8085
Question Bank Microprocessor 8085Question Bank Microprocessor 8085
Question Bank Microprocessor 8085
 
Arm instruction set
Arm instruction setArm instruction set
Arm instruction set
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
Proteus Circuit Simulation
Proteus Circuit SimulationProteus Circuit Simulation
Proteus Circuit Simulation
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Serial communication in 8085
Serial communication in 8085Serial communication in 8085
Serial communication in 8085
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 

Similar to Question Bank microcontroller 8051

Eee iv-microcontrollers [10 es42]-assignment
Eee iv-microcontrollers [10 es42]-assignmentEee iv-microcontrollers [10 es42]-assignment
Eee iv-microcontrollers [10 es42]-assignmentGopinath.B.L Naidu
 
Question bank malp 3340302
Question bank malp 3340302Question bank malp 3340302
Question bank malp 3340302SHAH JAINAM
 
A12 microprocessors & microcontrollers (common to eee & ecm)
A12 microprocessors & microcontrollers (common to eee & ecm)A12 microprocessors & microcontrollers (common to eee & ecm)
A12 microprocessors & microcontrollers (common to eee & ecm)Abhinay Potlabathini
 
A10 microprocessor & microcontrollers ( eee, ece & ecm )
A10 microprocessor & microcontrollers ( eee, ece & ecm )A10 microprocessor & microcontrollers ( eee, ece & ecm )
A10 microprocessor & microcontrollers ( eee, ece & ecm )Abhinay Potlabathini
 
Ashish microcontroller 8051
Ashish microcontroller 8051Ashish microcontroller 8051
Ashish microcontroller 8051ASHISH RAJ
 
Microprocessor lab manual
Microprocessor lab manualMicroprocessor lab manual
Microprocessor lab manualDhaval Shukla
 
A10 a11-microprocessor & microcontrollers (common to eee, ece & ecm)
A10 a11-microprocessor & microcontrollers (common to eee, ece & ecm)A10 a11-microprocessor & microcontrollers (common to eee, ece & ecm)
A10 a11-microprocessor & microcontrollers (common to eee, ece & ecm)Abhinay Potlabathini
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310DHEERAJ DHAKAR
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions convertedArghodeepPaul
 
Microprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. KawareMicroprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. KawareProf. Swapnil V. Kaware
 
EE6502 Microprocessors and Microcontrollers
EE6502 Microprocessors and MicrocontrollersEE6502 Microprocessors and Microcontrollers
EE6502 Microprocessors and MicrocontrollersSanthosh Kumar
 
05322201 Microprocessors And Microcontrollers Set1
05322201 Microprocessors And Microcontrollers Set105322201 Microprocessors And Microcontrollers Set1
05322201 Microprocessors And Microcontrollers Set1guestd436758
 
05322201 Microprocessors And Microcontrollers Set1
05322201 Microprocessors And Microcontrollers Set105322201 Microprocessors And Microcontrollers Set1
05322201 Microprocessors And Microcontrollers Set1guestac67362
 

Similar to Question Bank microcontroller 8051 (20)

Eec503, mp 30 questions
Eec503, mp 30 questionsEec503, mp 30 questions
Eec503, mp 30 questions
 
Eec503, mp 30 questions
Eec503, mp 30 questionsEec503, mp 30 questions
Eec503, mp 30 questions
 
Eee iv-microcontrollers [10 es42]-assignment
Eee iv-microcontrollers [10 es42]-assignmentEee iv-microcontrollers [10 es42]-assignment
Eee iv-microcontrollers [10 es42]-assignment
 
Question bank malp 3340302
Question bank malp 3340302Question bank malp 3340302
Question bank malp 3340302
 
Mpi lab manual eee
Mpi lab manual eeeMpi lab manual eee
Mpi lab manual eee
 
A12 microprocessors & microcontrollers (common to eee & ecm)
A12 microprocessors & microcontrollers (common to eee & ecm)A12 microprocessors & microcontrollers (common to eee & ecm)
A12 microprocessors & microcontrollers (common to eee & ecm)
 
A10 microprocessor & microcontrollers ( eee, ece & ecm )
A10 microprocessor & microcontrollers ( eee, ece & ecm )A10 microprocessor & microcontrollers ( eee, ece & ecm )
A10 microprocessor & microcontrollers ( eee, ece & ecm )
 
Ashish microcontroller 8051
Ashish microcontroller 8051Ashish microcontroller 8051
Ashish microcontroller 8051
 
Microprocessor lab manual
Microprocessor lab manualMicroprocessor lab manual
Microprocessor lab manual
 
8085 alp programs
8085 alp programs8085 alp programs
8085 alp programs
 
EE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab ManuelEE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab Manuel
 
A10 a11-microprocessor & microcontrollers (common to eee, ece & ecm)
A10 a11-microprocessor & microcontrollers (common to eee, ece & ecm)A10 a11-microprocessor & microcontrollers (common to eee, ece & ecm)
A10 a11-microprocessor & microcontrollers (common to eee, ece & ecm)
 
8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
 
Microprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. KawareMicroprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. Kaware
 
Ques 2
Ques 2Ques 2
Ques 2
 
EE6502 Microprocessors and Microcontrollers
EE6502 Microprocessors and MicrocontrollersEE6502 Microprocessors and Microcontrollers
EE6502 Microprocessors and Microcontrollers
 
05322201 Microprocessors And Microcontrollers Set1
05322201 Microprocessors And Microcontrollers Set105322201 Microprocessors And Microcontrollers Set1
05322201 Microprocessors And Microcontrollers Set1
 
05322201 Microprocessors And Microcontrollers Set1
05322201 Microprocessors And Microcontrollers Set105322201 Microprocessors And Microcontrollers Set1
05322201 Microprocessors And Microcontrollers Set1
 

More from Nilesh Bhaskarrao Bahadure

Microcontroller 8051 instruction set and assemble directives
Microcontroller 8051 instruction set and assemble directivesMicrocontroller 8051 instruction set and assemble directives
Microcontroller 8051 instruction set and assemble directivesNilesh Bhaskarrao Bahadure
 

More from Nilesh Bhaskarrao Bahadure (20)

Biomedical Signal Origin and Dynamics
Biomedical Signal Origin and DynamicsBiomedical Signal Origin and Dynamics
Biomedical Signal Origin and Dynamics
 
Introduction to Medical Image Processing
Introduction to Medical Image ProcessingIntroduction to Medical Image Processing
Introduction to Medical Image Processing
 
Timing diagram of microprocessor 8085
Timing diagram of microprocessor 8085Timing diagram of microprocessor 8085
Timing diagram of microprocessor 8085
 
Timers and counters of microcontroller 8051
Timers and counters of microcontroller 8051Timers and counters of microcontroller 8051
Timers and counters of microcontroller 8051
 
Serial communication of microcontroller 8051
Serial communication of microcontroller 8051Serial communication of microcontroller 8051
Serial communication of microcontroller 8051
 
Peripherals of Microprocessor 8085
Peripherals of Microprocessor 8085Peripherals of Microprocessor 8085
Peripherals of Microprocessor 8085
 
Microprocessor 8085 Basics
Microprocessor 8085 BasicsMicroprocessor 8085 Basics
Microprocessor 8085 Basics
 
Microcontroller 8051 instruction set and assemble directives
Microcontroller 8051 instruction set and assemble directivesMicrocontroller 8051 instruction set and assemble directives
Microcontroller 8051 instruction set and assemble directives
 
Microcontroller 8051 basics (part I)
Microcontroller 8051 basics (part I)Microcontroller 8051 basics (part I)
Microcontroller 8051 basics (part I)
 
Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085
 
Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051
 
Interrupts of microprocessor 8085
Interrupts of microprocessor 8085Interrupts of microprocessor 8085
Interrupts of microprocessor 8085
 
Interrupts of microcontroller 8051
Interrupts of microcontroller 8051Interrupts of microcontroller 8051
Interrupts of microcontroller 8051
 
Instruction sets of microprocessor 8085
Instruction sets of microprocessor 8085Instruction sets of microprocessor 8085
Instruction sets of microprocessor 8085
 
Embedded Systems
Embedded Systems Embedded Systems
Embedded Systems
 
Basic Electronics Semiconductor Diodes
Basic Electronics Semiconductor DiodesBasic Electronics Semiconductor Diodes
Basic Electronics Semiconductor Diodes
 
Basic Electronics Electrical Transducers
Basic Electronics Electrical TransducersBasic Electronics Electrical Transducers
Basic Electronics Electrical Transducers
 
Basic Electronics BJT
Basic Electronics BJTBasic Electronics BJT
Basic Electronics BJT
 
Applications of Microcontroller 8051
Applications of Microcontroller 8051Applications of Microcontroller 8051
Applications of Microcontroller 8051
 
Question Bank Programmable Logic Controller
Question Bank Programmable Logic ControllerQuestion Bank Programmable Logic Controller
Question Bank Programmable Logic Controller
 

Recently uploaded

Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 

Recently uploaded (20)

Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 

Question Bank microcontroller 8051

  • 1. Dr. Nilesh Bhaskarrao Bahadure School of Technology Department of Electronics Engineering Sanjay Ghodawat University Kolhapur, Maharashtra Question Bank Introduction & Programming of 8051: 1. Explain the differences between Microprocessor based system and Microcontroller based system. 2. What is OTP, explain OTP in details. 3. Explain the applications of microcontroller. 4. What is embedded microcontroller? 5. List different 8051 family microcontroller with their features indicating serial port, timers, interrupt sources and memories. 6. List the differences between 8051, 8052, 8031, 8032, 8751, 8752, AT89C2051, AT89C51, and AT89C52. 7. Explain the features of Intels 8051 Microcontroller. 8. Draw and explain the architecture of Microcontroller 8051. 9. What is the Program status word explains in details with suitable example. 10. Explain register structure of the 8051 Microcontroller. 11. Explain following registers of the 8051 Microcontroller DPTR, PC and SP. 12. Explain the memory organization of the 8051 Microcontroller. 13. What is the special function register, what are their significances in the 8051 Microcontroller? 14. What are the addressing modes? Explain addressing modes of the Microcontroller 8051 in details. 15. Write an ALP to add RAM location contents from 40 44h. Store the result of low byte in register A and higher byte in register R7. 16. Write a program to add two 16 bit numbers 2345h and 567Ch. Place the sum in register R7 and R6. R6 should have the lower byte of the result. 17. Write an ALP to add 5 BCD numbers present in RAM memory location starting at 40h. Store the result of lower byte in register A and higher byte in register R7. 18. Write an ALP to transfer value 41h serially via pin P2.1 .Put two high at the start and two high at the end of the data. Send the byte LSB first. 19. Write a program to copy data byte serially one bit at a time from port pin P1.7 and save it in register R2. The byte comes in with LSB first. 20. Write an ALP to count even and odd numbers from the 10 bytes present in the memory location from 30h. Put the even and odd count in register R7 and R6 respectively. 21. Write an ALP to count positive and negative numbers from the 10 bytes present in the memory location from 30h. Put the +ve and ve count in register R7 and R6 respectively. 22. Write an ALP to find smallest byte from 10 bytes present in the memory location from 30h. Put the smallest byte in register R7. Question Bank - Microcontroller 8051 Page 1
  • 2. Dr. Nilesh Bhaskarrao Bahadure 23. Write an ALP to find largest byte from 10 bytes present in the memory location from 30h. Put the largest byte in memory location 7Fh. 24. Write an ALP to find cubes of a number 0 - 6 and put the result in the memory location from 30h. 25. Write an ALP to count byte 00h from 20 bytes present in the memory location from 30H. Put the result in the external memory at 0200h. 26. Write an ALP to count byte 55h from 20 bytes present in the memory location from 30H. Put the result in the external memory at 0200h. 27. Assume that register A has packed BCD number write a program to convert packed BCD number to two ASCII numbers and place them in register R2 and R6. 28. Explain the following instruction JMP @A + DPTR, CALL, RET, INC DPTR, SWAP. 29. Explain absolute and long call with suitable examples. 30. State the contents of RAM location after the following program SETB PSW.3 MOV R1, #67H MOV R5, #34H MOV R7, #0ACH MOV R2, #55H 31. Write a program to add 3 to the accumulator 10 times. Save the result in register R7. 32. Write a program to load accumulator with AAh and complement the accumulator 700 times. 33. Find the size of the delay in the following program. Assume that the crystal frequency for the 8051 Microcontroller is 11.0592 MHz. Delay: MOV R3, #200 Here: DJNZ R3, Here RET 34. Find the size of the delay in the following program. Assume that the crystal frequency for the 8051 Microcontroller is 11.0592 MHz MOV R3, #250 Here: NOP NOP NOP NOP DJNZ R3, Here RET 35. Find the size of the delay in the following program. Assume that the crystal frequency for the 8051 Microcontroller is 11.0592 MHz MOV R2, #200 Rep: MOV R3, #250 Here: NOP NOP DJNZ R3, Here DJNZ R2, Rep RET 36. Write a program to clear 16 RAM locations starting at RAM address 60h. Question Bank - Microcontroller 8051 Page 2
  • 3. Dr. Nilesh Bhaskarrao Bahadure 37. Write an ALP to find number of 1s in a given byte. Assume byte is available in register R6. 38. Written an ALP to obtained 2s complement of register R6 and store the result at internal RAM 30h. 39. Write an ALP to find twos complement of 16 bit number present in the internal RAM 31h-30h, memory location 31h consist higher byte and 30h consist lower byte. Put the result in the same memory location. 40. Write an ALP to find number of ones in a given byte and stored the result in external memory location at 4000h. 41. Write a program to (a) Write a value 55h to the RAM locations 40h - 4Fh (b) Add all these RAM location contents together and save the result in RAM location 60h and 61h. 42. Explain the following pins of the 8051 Microcontroller EA, PSEN, ALE, and RXD. 43. Draw and explain power on reset circuit. 44. What are the reset values for the register of 8051 Microcontroller? Also explain the importance of Port P0 and Port P2. 45. Write an ALP to toggle all the bits of P0, P1 and P2 every second. Assume a crystal frequency of 11.0592 MHz 46. Write an ALP (a) To create a square wave of 50% duty cycle on bit 0 of port 1. (b) To create a square wave of 66% duty cycle on bit 3 of port 1. (c) To create a square wave of 33% duty cycle on bit 4 of port 1. Timers of 8051 Microcontroller: 47. Explain the registers of timers. Also explain TMOD and TCON registers. 48. Explain the following: (a) 13 - bit timer mode (b) 16 - bit timer mode (c) 8 - bit timer mode or auto reload mode (d) Split timer mode 49. Draw and explain timer/counter 0 and timer/counter 1 for the mode 1 50. Draw and explain timer/counter 0 and timer/counter 1 for the mode 2 51. Explain how to initialize the timer with suitable example. 52. Explain 13 - bit timer mode and split timer mode of timers 8051 Microcontroller. 53. Assume that XTAL = 11.0592 MHz Write an ALP to generate pulse width of 5ms on port pin P2.3 using timer 0. 54. Assume that XTAL = 11.0592 MHz, write a program to generate a square wave of 2 KHz frequency on pin P1.5 using timer 1. 55. Write an assembly language program to generate square wave of 200 µSecond frequency using timer 1 in mode 2. Assume that XTAL = 11.0592 MHz Question Bank - Microcontroller 8051 Page 3
  • 4. Dr. Nilesh Bhaskarrao Bahadure Serial Communication of 8051 Microcontroller: 56. What is serial communication? Explain integrated means of serial communication. 57. Explain the type of transmission used in serial communication. 58. Explain the following: Simplex communication, Duplex Communication and Asynchronous serial communication in details with examples. 59. Explain asynchronous serial communication using suitable example. 60. What are the means of data transfer rate in serial communication explain in details. 61. Explain in details how to write to the serial port. 62. Explain SBUF and SCON register of 8051 serial communication. 63. Explain the importance of transmit interrupt flag and receive interrupt flag bit of serial communi- cation. 64. Write an ALP for the 8051 to transfer character ‘A’ serially at 4800 baud rate, continuously. 65. Write a program to transfer the message “YES” serially at 9600 baud rate, 8 bit data, and 1 stop bit continuously. Interrupts of 8051 Microcontroller: 66. Explain the differences between Interrupts and Polling. 67. Explain the Interrupts of 8051 Microcontroller in details. 68. Draw and explain interrupt structure of 8051 Microcontroller also explain enabling and disabling the interrupts. 69. Explain Interrupt enable and Interrupt priority register. 70. Show the instruction to (a) Enable serial interrupt, timer 0 interrupt and external hardware interrupt 1. (b) Disable timer 0 interrupt. (c) Show how to disable all the interrupt with a single instruction. 71. Program the IP register to assign the highest priority to external interrupt 1 then discuss what happen if INT0, INT1 and TF0 are activated at the same time. 72. Assume that after reset the IP register is set by the instruction MOV IP, 0Ch. Discuss the sequence in which the interrupts are serviced. Memory Interfacing with 8051 Microcontroller: 73. Show that the design of an 8031 based system with 8K bytes of program ROM and 8K bytes of data ROM. 74. Design the interfacing system of 16 K x 8 data RAM with 8051 Microcontroller. Use starting addresses 8000h. Question Bank - Microcontroller 8051 Page 4
  • 5. Dr. Nilesh Bhaskarrao Bahadure 75. Design the interfacing of 8031 based system with 16 KB program space, 16 KB of data ROM starting at 0000h and 16 KB of NV - RAM starting at 8000h. Show the design using 74LS138 for the address decoder. 76. Design the interfacing system of 8051 Microcontroller with 256K x 8 data NV - RAM. Also write an assembly language program to read the contents of memory location from 20000h and store the contents in internal memory location form 30h. 77. Find the address range of the memory design for Y0, Y3 and Y6 of the 74LS 138 for the given diagrammed design shown in figure 1 Figure 1: Figure for example 77 Applications of 8051/AT89C51: 78. Design an application to interface LED with the port pin P1.2 and write an assembly language program to blink the LED. 79. Design an application to interface 7-segment LED with 8051 and write an ALP to display number 8 on it. 80. Design an application to interface 2 Seven - segment LED with 8051 and write an ALP to display 3 and 5 on it. 81. . Design an application to interface 7-segment LED with 8051 Microcontroller and write an ALP to display 0 - 9 on it 82. Design an application to interface 2*16 LCD with 8051 and write an ALP to display “SGU Kolhapur” on it. 83. Design an application to interface stepper motor with 8051 and write an ALP to rotate stepper motor clockwise continuously. 84. Design an application to interface stepper motor with 8051 and write an ALP to rotate stepper motor anticlockwise continuously. 85. A switch is connected to pin P2.7. write a program to monitor the status of switch and perform the following. (a) If SW = 0 ; the stepper motor moves clockwise (b) If SW = 1 ; the stepper motor moves anticlockwise 86. Design an application to interface ADC 0804 with 8051. 87. Interface ADC 0804 with 8051 Microcontroller. write an ALP to brings an analog input into register A and then stored then in the internal memory location from 30h onwards. Question Bank - Microcontroller 8051 Page 5
  • 6. Dr. Nilesh Bhaskarrao Bahadure 88. Design an application to interface DAC 0808 with 8051 Microcontroller. Write an ALP to generate a sine wave continuously on DAC. Use port P1 of 8051. 89. Interface DAC 0808 with 8051 µC. Write an ALP to generate a stair- step ramp on port P1. 90. Interface DAC 0808 with 8051 µC. Write an ALP to generate reverse sawtooth waveform using port P1. 91. Interface DAC 0808 with 8051 µC. Write an ALP to generate triangular waveform at the DAC output. Generate 200 cycles. Use port P1. 92. Design an application to interface 8 * 8 matrix keyboards with 8051 Microcontroller. 93. Interface 4 * 4 matrix keyboards with 8051 Microcontroller. Write an ALP to read the keypad and send the ASCII code of pressed key to the port P0. P1.0 - P1.3 Connected to rows (output) P2.0 - P2.3 Connected to columns (Input) 94. Design an application to interface 4 * 4 matrix keyboards with 8051 Microcontroller. 95. Design an application for temperature sensor LM 35 with 8051 Microcontroller. Display temperature reading value on the LCD. 96. Design an application for interfacing of strain gauge with 8051 Microcontroller. 97. Design an application for interfacing of LDR sensor with 8051 Microcontroller. 98. Design an application to interface two 8051 Microcontroller, write a program to transmit character byte serially from one microcontroller and receive serially by other microcontroller. Also display received character byte on display device connected with the port P1. Question Bank - Microcontroller 8051 Page 6