Chapter 03 Assembly Language Programming of 8051
- 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
- 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.
- Write a program to transfer the message “Best of Luck” serially at 9600 baudrate, 8-bit data, 1 stop bit. Do this continuously.
- Describe SWAP A and MOVX @DPTR, A instruction of 8051.
- Explain addressing modes of 8051.
- 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.
- Compare AJMP, LJMP, SJMP instructions of 8051.
- Explain any 10 instructions of 8051.
- Explain Addressing modes of 8051.
- Write a program on Arithmetic operations.
- 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.
- 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.
- Write a program on Logical operations.
- Write assembly language program for 8051 to transfer message “BVCOE, Navi Mumbai” at the baud rate of 4800 in mode 1.
- Write assembly language program to compute 1+2+……+n (say 15) and save the sum at 70h.
- 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.
- Write assembly language program for 8051 to find fibonacci series of N given number.
- Write assembly language program for 8051 for checking the parity of number is odd or even.
- Write assembly language program for 8051 to add two 16 bit BCD numbers.
- Write assembly language program for 8051to Subtract two 16 bit numbers.
- Write assembly language program for 8051 to sort numbers in ascending/descending order.
- Write assembly language program for 8051 to find least/smallest number in array.
- Write assembly language program for 8051 to find 2’s complement of number.
-
Write assembly language program for 8051 to find average of block of N bytes.
No comments:
Post a Comment