Professional Documents
Culture Documents
Labsheet 4 MICROPROCESSOR22073
Labsheet 4 MICROPROCESSOR22073
Labsheet 4 MICROPROCESSOR22073
1. Write an 8085 assembly language program to find the number of ones(1's) present in the
given 16-bit number. Logic:
Result:
19EAC 285: Microcontroller Lab
2. Write an 8085 assembly language program to find the factorial of the given number. If
the factorial is odd make the PORT 0 high else make PORT 1 high (use any two ports for
the same). Logic:
Result :
Result:
4. Write an 8085 assembly language program to write a delay program of FF x FF and move
F and zero alternatively to PORT 0. Call the delay code in between while moving 0 and F
to the port. This is the concept of blinking an LED Logic:
Delay Code:
19EAC 285: Microcontroller Lab
Result
The output of this program would be toggling between sending the values 'F' (in
hexadecimal) and '0' to PORT 0 with a delay in between. However, without knowing the
specific hardware configuration and how PORT 0 is connected, it's difficult to predict the
exact visible output.
5.Write an assembly language program in 8085 to find the square of the given number.
Logic:
Result:
19EAC 285: Microcontroller Lab
Evaluation: