UNIT-IV
8051 MICROCONTROLLER
PART-A (2 marks)
1. What is Microcontroller?
2. List the features of 8051 microcontroller.
3. Name the five interrupt sources of 8051?.
4. Explain the contents of the accumulator after the execution of the
following
program segments:
5. Write a program to load accumulator A, DPH and DPL with 30H.
6. Write a program to subtract the contents of R1 of Bank0 from the
contents of R0
of Bank2.
7. What is the difference between the Microprocessors and
Microcontrollers?
8. Explain the functions of the pin PSEN of 8051.
9.Name the special functions register SP of 8051.
10.How the program memory is organized in 8051 based system?
PART-B (16 marks)
1. Describe the architecture of 8051 with neat diagram. (16 Marks)
2. i) Discuss the peripheral interface of 8051. (8 Marks)
ii) Explain the memory structure of 8051. (8 Marks)
3. Explain the interrupt structure of 8051 microcontroller Explain how
interrupts are
prioritized. (16 Marks)
4. Explain the I/O port structure of 8051. (16 Marks)
5. Explain the different serial communication modes in 8051. (16 Marks)
6. Explain the function and operating modes of timer in 8051. (16 Marks)
7. Explain the functional pin diagram of 8051 Microcontroller. (16 Marks)
UNIT-V
8051 PROGRAMMING AND APPLICATIONS
PART-A (2 marks)
1. Explain the operating mode0 of 8051 serial ports?
2. Explain the operating mode2 of 8051 serial ports?
3. Explain the mode3 of 8051 serial ports?
4.Write A program to perfom multiplication of 2 nos using 8051?
5. List the addressing modes of 8051?
6. Write about CALL statement in 8051?
7. Write about the jump statement?
8. Write program to load accumulator ,DPH,&DPL using 8051?
9. What is subroutine or procedure?
10. What is the function of SWAP?
11. What is Assembly Language Program?
12. What is debugging?
PART-B (16 marks)
1. i) Write 8051 ALP to read data from port I when negative edge triggered
at INT0
and supply the data to port 2 by masking the upper 4 bits. (8 Marks)
ii) Write 8051 ALP to transmit ‘Hello World’ to PC at 9600 baud for external
crystal frequency of 11.0592MHz. (8 Marks)
2. With a neat circuit diagram explain how a 4 _ 4 keypad is interfaced with
8051
microcontroller and write 8051 ALP for keypad scanning. (16 Marks)
3. Draw the schematic for interfacing a stepper motor with 8051
microcontroller and
write 8051 ALP for changing speed and direction of motor. (16 Marks)
4. Draw the schematic for interfacing a servo motor with 8051
microcontroller and
write 8051 ALP for servo motor control. (16 Marks)
5. Explain the instruction set of 8051 microcontroller. (16 Marks)
6. i) Add the unsigned number found in 8051 microcontroller internal RAM
locations
25h, 26h and 27h together and put the result in RAM locations 30h (MSB)
and
31h (LSB). (6 Marks)
ii) List out the arithmetic operations of 8051 microcontroller with an
example and
show how the flags are affected for each operation. (10 Marks)
7. i) Write the Analog to Digital conversion program in 8051 microcontroller
to
convert analog data into digital. Digitalize the input for every 100μs and
store the
1000 values in external RAM location 4000b to 43E7h. (8 Marks)
ii) Explain the JUMP instructions present in 8051 microcontroller with a
mnemonic code and its operation for each. (8 Marks)