You are on page 1of 5

Page |1

Chittagong University of Engineering &Technology

Department of Mechatronics & Industrial Engineering.

Course No.: MIE 312

Course Title: Micro-controller and Interfacing for Mechatronic systems Sessional

EXPERIMENT NO.: 8

NAME OF THE EXPERIMENT:

Interfacing Motor with 8051 microcontroller in Edsim51 simulator.

Remarks Name: Shakline Habib

Student No: 1709020

Date of Performance: 23.09.2021

Date of Submission: 26.09.2021


Page |2

Experiment No: 08
Experiment Name: Interfacing motor with 8051 microcontroller in Edsim51 simulator.

Problem 1:

Clockwise rotation of motor.

Solution:
CODE:
;CLOCK WISE
MOTOR:
SETB P3.0
CPL P3.1
NOP
SJMP MOTOR
Output:
Page |3
Page |4

Problem 2:

Anticlockwise rotation of motor.

Solution:
CODE:
;ANTICLOCK WISE
MOTOR:
SETB P3.1
CPL P3.0
NOP
SJMP MOTOR
Output:
Page |5

You might also like