Sunteți pe pagina 1din 2

MICROCONTROLLER 8051

1. 2. 3. 4. 5. 6. 7. 8. 9. What are the advantages and disadvantages of using Harvard architecture in 8051? Draw and explain the architecture of 8051 microcontroller. Draw and explain the pin diagram of 8051 microcontroller. Draw and explain all ports of 8051. Discuss RAM structure of 8051. What is addressing mode? Explain all types of addressing mode briefly. Explain byte level and bit level logical operation with example. List the JUMP and CALL instruction. Describe Conditional JUMP Instruction. Explain Relative range, short absolute range and long absolute range with necessary instructions. 10. Explain all types of modes of timer briefly. 11. Describe TMOD and TCON Special Function registers. 12. Explain how two 16 bit counters T0 and T1 are programmed to count internal clock pulse as a timer and are programmed to count external pulses as a counter 13. What are the power consumptions in power down and idle modes. 14. Explain all types of modes of serial communication briefly. 15. What is Serial Communication? How it will perform using 8051/52 Controller with PC? Explain it with program and diagram. 16. Explain interrupt enable (IE) SFR and Interrupt priority (IP) SFR 17. Explain the difference between the low- level and edge-triggered interrupts. 18. Explain timer flag interrupt, serial port interrupt and external interrupts with example. 19. Draw a schematic diagram of 8051 interfaced with 2K external RAM. With reference to interface diagram drawn, give the range of memory for which memory can be accessed. 20. Explain connection between an 8031 and an external memory consisting of 16K EPROM and an 8K of static RAM with external memory timing diagram. 21. Discuss interfacing of external 32K EPROM and 32K RAM with the microcontroller. Draw diagram and explain important handshaking signals. 22. Discuss interfacing of the LCD with 8051 microcontroller. Draw interfacing diagram. Write program to display message GTU IS BEST on the LCD screen. 23. Draw schematic diagram of 8051 interfaced with ADC0804. Use the 8051 clock to generate necessary clock signal for ADC0804. Use P1 for Data line connection and P2 for other control signals. 24. Discuss RTC interfacing with microcontroller. Write program to get values of hour, minute and second from RTC to RAM location 20h,21h and 22h respectively. 25. Explain interfacing of stepper motor with microcontroller. Write program to rotate stepper motor in clockwise direction continuously in full step mode. 26. Describe interfacing of 8051 with DC motor and PWM. 27. Write program to generate square wave on port pin P2.0 with frequency of 10 KHz and duty cycle 50%. Use timer interrupt. Use timer 0 in mode 2. Assume crystal frequency 24 MHz. 28. Write an assembly as well as C program to transfer the message ONE serially at 9600 baud, 8-bit data, 1 stop bit. Perform this program for 255 times. 29. Write a program to generate a square wave with frequency of 5KHz and with 50% duty cycle using Timer 0. Assume the external crystal frequency of 24 MHz. 30. Timer 0 is used as a counter, and Timer 1 is used as time base of 1 second. Write an assembly program to find frequency of signal connected at P3.4 (counter input for Timer 0). Assume XTAL = 11.0592MHz.

31. Write an assembly language program to generate a square wave with an ON time of 6 ms and an OFF time of 15 ms on all pins of port 0.Assume an XTAL of 15MHz 32. Write a C program using interrupts to do the following: (i) Generate a 1000 Hz frequency on P2.1 using T0 8 bit auto reload, (ii) Use timer 1 as an event counter to count up a 1-Hz pulse and display it on P0.The pulse is connected to EX1. Assume that XTAL=11.0592 MHz. Set the baud rate at 9600. 33. Assume that input at port P1 is data for temperature. Two LEDs are connected at P0.0 (RED) and P0.1 (GREEN) with their anodes pulled up through 820_ resistor and cathodes are connected with pins. LEDs Write a program to acquire temperature data and indicate the status on LED as below. Note: It is require continuously monitoring the temperature and indicating status on LEDs. If TEMP = 10 RED LED ON and GREEN LED OFF If 10 < TEMP _ 80 RED LED OFF and GREEN LED ON IF TEMP > 80 RED LED ON and GREEN LED OFF 34. Draw interfacing diagram to interface push-button switch at port pin P3.3 and relay with transistor circuit at port pin P2.0. Write program such that when push-button key is pressed, relay should become ON. When push-button key is pressed again relay should become OFF (i.e. toggling of relay by push-button switch). 35. Write a program to check if the character string of length 7, stored in RAM location 40H onwards is a palindrome. If it is, output Y to P1. Hint: A palindrome is a string in which the characters are same whether the string is read in forward or reverse direction.

===============================================

S-ar putea să vă placă și