8051 Oral Questions
8051 Oral Questions
By:Dr. P. M. Bagul
MICROCONTROLLERS 8051
1. What is Microcontroller?
2. List out the differences between Microcontroller and Microprocessor.
3. How are Microcontrollers more suitable than Microprocessor for Real Time
Applications?
4. What are the General Features of Microcontroller?
5. Explain briefly the classification of Microcontroller.
6. Explain the general features of 8051 Microcontroller.
7. How many pin the 8051 has?
8. Differentiate between Program Memory and Data Memory.
9. What is the size of the Program and Data memory?
10. Write a note on internal RAM. What is the necessity of register banks? Explain.
11. How many address lines are required to address 4K of memory? Show the
necessary calculations.
12. What is the function of accumulator?
13. What are SFR’s? Explain briefly.
14. What is the program counter? What is its use?
15. What is the size of the PC?
16. What is a stack pointer (SP)?
17. What is the size of SP?
18. What is the PSW? And briefly describe the function of its fields.
19. What is the difference between PC and DPTR?
20. What is the difference between PC and SP?
21. What is ALE? Explain the functions of the ALE in 8051.
22. Describe the 8051 oscillator and clock.
23. What are the disadvantages of the ceramic resonator?
24. What is the function of the capacitors in the oscillator circuit?
25. Show with an example, how the time taken to execute an instruction can be
calculated.
26. What is the Data Pointer register? What is its use in the 8051?
27. Explain how the 8051 implement the Harvard Architecture?
Dept of E&TC 1
MESWCOE
Modern Education Society's Wadia College of Engineering Pune
Dept. Electronics & Telecommunication
28. Explain briefly the difference between the Von Neumann and the Harvard
Architecture.
29. Describe in detail how the register banks are organized.
30. What are the bit addressable registers and what is the need?
31. What is the need for the general purpose RAM area?
32. Write a note on the Stack and the Stack Pointer.
33. Why should the stack be placed high in internal RAM?
34. Explain briefly how internal and external ROM gets accessed.
35. What are the different addressing modes supported by 8051 Microcontroller ?
36. Explain the Immediate Addressing Mode.
37. Explain the Register Addressing Mode.
38. Explain the Direct Addressing Mode.
39. Explain the Indirect Addressing Mode.
40. Explain in detail the Functional Classification of 8051 Instruction set
41. What are the instructions used to operate stack?
42. What are Accumulator specific transfer instructions?
43. What is the difference between INC and ADD instructions?
44. What is the difference between DEC and SUBB instructions?
45. What is the use of OV flag in MUL and DIV instructions?
46. What are single and two operand instructions?
47. Explain Unconditional and Conditional JMP and CALL instructions.
48. Explain the different types of RETURN instructions.
49. What is a software delay?
50. What are the factors to be considered while deciding a software delay?
51. What is a Machine cycle?
52. What is a State?
53. Explain the need for Hardware Timers and Counters?
54. Give a brief introduction on Timers/Counter.
55. What is the difference between Timer and Counter operation?
56. How many Timers are there in 8051?
57. What are the three functions of Timers?
58. What are the different modes of operation of timer/counter?
59. Give a brief introduction on the various Modes.
60. What is the count rate of timer operation?
Dept of E&TC 2
MESWCOE
Modern Education Society's Wadia College of Engineering Pune
Dept. Electronics & Telecommunication
Dept of E&TC 3
MESWCOE
Modern Education Society's Wadia College of Engineering Pune
Dept. Electronics & Telecommunication
Dept of E&TC 4
MESWCOE
Modern Education Society's Wadia College of Engineering Pune
Dept. Electronics & Telecommunication
Viva Questions
1. Upon reset, all ports of the 8051 are configured as (output, input).
2. Which ports of the 8051 have internal pull-up resistors?
3. Which ports of the 8051 require the connection of external pull-up resistors in order to
be used for I/O? Show the drawing for the connection.
4. In the 8051, explain why we must write "1" to a port in order for it to be used for input.
5. Explain why we need to buffer the switches used as input in order to avoid damaging
the 8051 port.
6. Indicate the direction of pins ALE, SC, EOC, and OE from the point of view of the
ADC808/809.
7. Give the steps for converting data and getting the data out of the ADC809. State the
status of the SC and EOC pins in each step.
8. Give the role of signals ALE, A, B, and C in selecting the ADC channel.
9. In the ADC809 assume that Vref is connected to 2.56 V. Find the following.
(a) step size
(b) maximum range for Vin
(c) D7 - D0 values if Vin = 1.2 V
(d) Vin if D7 - D0 = 11111111
(e) Vin if D7 - D0 = 10011100
10. In the ADC809 assume that Vref is connected to 5V. Find the following.
(a) step size
(b) maximum range for Vin
(c) D7 - D0 values if Vin = 2.7 V
(d) Vin if D7 - D0 = 11111111
(e) Vin if D7 – D0 = 11011101
11. In connecting ADC808/809 to an 8051, indicate the direction of pins ALE, SC, EOC,
and OE from the point of view of the 8051.
12. Define the following terminology in DAC.
(a) resolution
(b) full-scale voltage output
(c) settling time
13. For your circuit, find Vout for the following inputs.
(a) 11001100
(b) 10001111
14. To get a smaller step size, we need DAC with (more, less) data bit inputs.
15. In Figure 13-7 of the textbook, assume that R = 2.5 K ohms. Calculate Vout for the
following binary inputs.
(a) 11000010
(b) 01000001
(c) 00101100
(d) 11111111
16. Name all of the interrupts in the 8051 and their vector table addresses.
17. In timer mode 1, indicate when TF0 causes the interrupt.
18. In timer mode 2, indicate when TF0 causes the interrupt.
19. On reset, INT0 (and INT1) are (edge, level) triggered.
Dept of E&TC 5
MESWCOE
Modern Education Society's Wadia College of Engineering Pune
Dept. Electronics & Telecommunication
Dept of E&TC 6
MESWCOE
Modern Education Society's Wadia College of Engineering Pune
Dept. Electronics & Telecommunication
48. With XTAL=11.0592 MHz, what is the maximum baud rate for the 8051?
49. Show how to achieve the maximum baud rate in Question 3.
50. What is the role of TI and RI?
51. True or false. The 8051 can transfer data in full-duplex.
52. For full duplex, what are the absolute minimum signals needed between the 8051 and
the PC? Give their names.
53. What is a step angle? Define steps per revolution.
54. If a given stepper motor has a step angle of 5 degrees, find the number of steps per
revolution.
55. Give the four sequences for counter clockwise if it starts with 10011001 (binary).
56. Using the "RL A" instruction, show the four-step sequences if the initial step is 0011
(binary).
57. Give the number of times the four-step sequence must be applied to a stepper motor to
make a 100-degree move if the motor has a 5-degree step angle. Also fill in the
characteristics for your motor below.
Step angle Degree of movement per 4-step sequence
Steps per revolution Number of rotor teeth
58. What is the purpose of generating the truth table for a given keyboard?
59. What is the purpose of grounding each row in keyboard interfacing?
60. What is the input to the microcontroller from column if no key is pressed?
61. True or false. In our N x M matrix keypad program we cannot press two keys at the
same time.
62. In your program how is the key press detected?
63. In your program in Activity 2, how is a key press identified?
64. Explain the role of the C/T bit in the TMOD register.
65. How is the 8051 used as an event counter to count an external event?
66. If timer/counter 0 is used as an event counter, what is the maximum count for the
following modes?
Mode 1
Mode 2
67. Indicate which pin is used for the following.
(a) timer/counter 0
(b) timer/counter 1
68. If timer/counter 0 is used in mode 1 to count an external event, explain when TF0 is
set to high.
69. If timer/counter 1 is used in mode 2 to count an external event, explain when TF0 is
set to high.Ultra Low Alert Power
Dept of E&TC 7
MESWCOE
Modern Education Society's Wadia College of Engineering Pune
Dept. Electronics & Telecommunication
Timerdelay = 12*(257-delay)/frequency
Timerdelay=0.05msec
Delay=256-((timerdelay * frequency)/12) =256-(0.05*10 -3 * 33*106)/12
=256-137.5 =118.5 //loaded in TH0
To get 1sec delay
1/0.05msec = 200*100 in the ISR
(assuming 33 MHZ crystal frequency. For 11 MHz, the calculations change).
Dept of E&TC 8
MESWCOE
Modern Education Society's Wadia College of Engineering Pune
Dept. Electronics & Telecommunication
Dept of E&TC 9
MESWCOE