Thursday, 15 October 2015

Assembly Language Programming of 8051

        Chapter 03  Assembly Language Programming of 8051

  1. Indicate which mode and which timer  are selected for each of the following. (a) MOV TMOD,#01H (b) MOV TMOD,#20H (c) MOV TMOD,#12H
  2. Write a program to create a square wave of 50% duty cycle (with equal portions of high and low) on the P1.5 bit. Use Timer 0 to generate the time delay.
  3. Write a program to transfer the message “Best of Luck” serially at 9600 baudrate, 8-bit data, 1 stop bit. Do this continuously.
  4. Describe SWAP A and MOVX @DPTR, A instruction of 8051.
  5. Explain addressing modes of 8051.
  6. Write assembly language program for 8051 to find largest number from a data block of ten bytes that present in internal memory locations 20H to 29H. Store the result in memory location 2AH.
  7. Compare AJMP, LJMP, SJMP instructions of 8051.
  8. Explain any 10 instructions of 8051.
  9. Explain Addressing modes of 8051.
  10. Write a program on Arithmetic operations.
  11. Write assembly language program to generate a rectangular waveform of frequency 1KHz and 30% duty cycle at pin P1.0 using 8051. Assume 8051 is operating at frequency 12MHz.
  12. Write assembly language program for 8051 to multiply two 8 bit numbers stored in external memory locations 4000H and 4001H. Send the result on PORT 1 and PORT 3.
  13.  Write a program on Logical operations.
  14.  Write assembly language program for 8051 to transfer message “BVCOE, Navi Mumbai” at the baud rate of 4800 in mode 1.
  15.  Write assembly language program to compute 1+2+……+n (say 15) and save the sum at 70h.
  16. Write assembly language program for 8051 to convert Packed BCD number to ASCII number and store it in 32 H and 33H. Packed BCD number is stored at RAM location 30H. 
  17. Write assembly language program for 8051 to find fibonacci series of N given number.
  18. Write assembly language program for 8051 for checking the parity of number is odd or even.
  19. Write assembly language program for 8051 to add two 16 bit BCD numbers.
  20. Write assembly language program for 8051to Subtract two 16 bit numbers.
  21. Write assembly language program for 8051 to sort numbers in ascending/descending order.
  22. Write assembly language program for 8051 to find least/smallest number in array.
  23. Write assembly language program for 8051 to find 2’s complement of number.   
  24. Write assembly language program for 8051 to find average of block of N bytes.

No comments:

Post a Comment