Beruflich Dokumente
Kultur Dokumente
8051 PROGRAMMS
1. Write a program to find the sum of 5 BCD numbers are stored in RAM locations starting
at 40h the result must be in BCD?
2. Write a program to find average of 10 numbers stored in RAM location starting from
60H?
3. Write a program to increment the contents of internal RAM location 4Dh until the
value equal to 2Ch?
4. Write a program to find the average of all 8 bit odd numbers in the given array. The
no of the array are stored in RAM location starting from 40h.the last element of the
input array is EEh?
5. Write a program to add all odd parity no's in the given array. The array of numbers
are stored in RAM location starts from 60h.the number of elements in the input
array is 10h?
6. Write a set of instructions which swap the contents of the two memory locations 60h
and 61h if the carry flag is 1?
7. Write a program to check how many times the byte 0Eh is occurring in 9 bytes of
data stored in RAM location 60h onwards store the result in location 70h?
8. An array of 9bytes is stored in memory location 60h onwards. Write a program to reverse
the array & store the result in same location?
9. Write a program to add 7 BCD numbers in RAM location starting from 60h?
10. 10 bytes are stored in the RAM location 60h onwards, write a program to find the largest
byte among them? Store the result in location 70h?
11. Write a program to add 10bytes in consecutive memory locations ?
12. Write a program to find the largest no from 8bytes stored in consecutive memory location
using 80C51 assembly language?
13. Write an 8051 assembly language program for adding 5 ,8bit numbers in consecutive
internal memory locations?
14. Write a program for adding N 8bit numbers using 8051 µc?