Professional Documents
Culture Documents
Experiment No. 5
Semester
Subject
Subject Professor
In-charge
Assisting Teachers
Laboratory
Student Name
Roll Number
Grade and Subject
Teachers Signature
Akshay Barge
14103c2027
Experiment Number
Experiment Title
5.
8051 Assembly Language Programming and Interfacing DC Motor and its Contro
(Proteus Simulation + TK base implementation).
Hardware:
Software:
IBM PC Compatible Computer System
Kiel ,Flash Magic and Proteous
and TK-Base 89C51RD2 kit
Resources /
Apparatus Required
Objectives
(Skill Set / Knowledge
Tested / Imparted)
Theory of Operation
Prof.Supriya Mangalpalli.
L516 Microprocessor and Microcontroller Lab.
can do many things like controlling the direction of the motor, controlling the speed
of the motor.
Experiment No. 5
Algorithm :
1.
2.
3.
4.
5.
6.
7.
8.
9.
Flow chart :
Start.
Set 0th pin of port 2.
Clear 1st pin of port 2.
Call delay subroutine.
Clear 0th pin of port 2.
Set 1st pin of port 2.
Call delay subroutine.
Jump to step number 2.
End.
Start
Set P2.0
Clear P2.1
Clear P2.0
UP:
DELAY:
CC:
BB:
AA:
ORG 0000 H
SETB P2.0
CLR P2.1
ACALL DELAY
CLR P2.0
SETB P2.1
ACALL DELAY
SJMP UP
MOV R3, #50 H
MOV R4, #50 H
MOV R5, #50 H
DJNZ R5, AA
DJNZ R4, BB
DJNZ R3, CC
RET
END
Output:
Conclusion:
Thus studied the assembly language programming and interfacing DC Motor and its
Control to port of micro controller.