Micro Controller - Assignment 2
AKB sir
1. Describe the internal RAM memory of 8051 Micro Controller?
2. What is SFR?
3. Write the function of the following pins of 8051 Micro Controller? a) ALE, b) PSEN', c) RST, d) EA'
4. Describe the memory organization of 8051 Micro Controller?
5. Interface a 4 KB ROM and 8 KB RAM as an external program memory and external data memory. The
starting address of the ROM is 2000H and the Starting address of the RAM is C000H. Find the address
range of the 2 Memories.
6. Write the function of the following instructions?
a) MOV A, @Ro
b) MOV DPTR, #8050H
c) MOVX A, DPTR
d) XCH A, R₂
e) ADDC A, R1
f) SJMP 26H
g) DJNZ R1, 36H
h) SETB P1.2
i) LJMP 2000H
j) RLC A
7. Write an Assembly Language program: Find the average of five 8-Bit numbers and store the result in
65H. The numbers are: present in the memory location 50H to 54H.
8. Write an assembly language program:
Count the number of ones of an 8-bit data present in the se memory location 8020H and store the result
in 8021H.
9. Six 8-bit data are stored in the memory location 2000H to 2005H. Write an Assembly Language
Program to transfer blocks of data to the memory location 8000H to 8005H.
10. WAP to find the smallest no of a set of ten 8-bit numbers, which are present in the external data
memory 9000H to 9009H. Store the smallest number in 900AH.
11. Write an assembly language program to perform the logical OR operation of 2 numbers which are
present in the memory location 8050H to 8051H, and store the result in 8052H.