Anda di halaman 1dari 2

Assignment-1

1. WAP to store 8-bit data in registers R0,R1 of RB0 and RB1. 2. WAP to add two add two 16 bit numbers. 3. WAP to find 1's complement of a number stored in R0 of RB1. 4. WAP to find 2's complement of a number stored in R3 of RB0. 5. WAP to convert 8 bit binary number to 3 digit BCD number. 6. WAP to add two BCD number. 7. WAP to unpack the packed BCD number. 8. WAP to add Block of 10 data byte stored at 2000H onwards assuming answer is of 16bit .Store answer in 3000H and 3001H. 9. WAP to transfer block of 10 data from 2000H to 3000H in same order and in reverse order. 10.WAP to count numbers of one's and zero's in a given number stored at 3000H. Put answer in R0 and R1 of RB2. 11.WAP to count Positive number in a given Array of 10 data at location 3000H onwards. 12.WAP to count occurrence of FFH in a given array staring from 3000H to 3050H. 13.WAP to find Maximum no from a given array staring from 3000H to 300AH. 14.WAP to subtract two nos available in A and B. 15.WAP to mask upper nibble of an data stored at location 30H. 16.WAP to Multiply two 8 bit numbers using repetitive addition. 17.WAP to find average of 10 data stored at location 2500H onwards. 18.WAP to copy the byte in TCON to register R2.(Using at least 4 methods). 19.WAP to SWAP contents of R7 and R6 in RB0.( Using at least 4 methods) 20.WAP to put number 8DH in RAM location 30H to 34H .( Using at least 3 methods) 21.WAP to clear the content of A. ( Using at least 3 methods)

Subject Name: Microcontroller and Interfacing. B. E. SEMESTER: V.

22.WAP to store the least significant nibble to both nibbles.(ie if 3FH --> FFH).
Book: The 8051 Microcontroller and Embedded Systems Using Assembly and C, 2/e by Muhammad Ali Mazidi, Janice Gillispie Mazidi and Rolin McKinlay The 8051 Microcontroller by Ayla

Anda mungkin juga menyukai