Sunteți pe pagina 1din 4

Microprocessor

Project 8085

Submitted By : Chaitanya Srivastava


Roll No. : 12104010
Branch: Electrical
Date : 5/5/2014

Aim:To Design a mechatronics system that uses the


8085
and Pulse Width Modulation (PWM) to turn a DC Motor
at a
speed of 60 RPM
Connect the motor with latch at address 88
Microprocessor clock is 4 MHz
Motor maximum speed is 300 RPM

Interfacing

Theory
Pulse Width Modulation (PWM) is a common method to
control the speed of a DC motor.
A power transistor (Q) working as a switch is connected
to the motor:
If Q is always ON Motor will turn at maximum speed
(assuming no load)
If Q is sometimes ON Motor will turn at %timeON x
max speed (i.e. speed = duty cycle x max speed)

Assembly Code
Loop

MVI A,00
OUT 88
MVI C,FF

Bit0 off Q off


motor address 88
C = (FF) H

Back1

DCR C
JNZ Back1
MVI A,01
OUT 88
MVI C, Count
DCR C
JNZ Back2
JMP Loop

Decrement C by 1
Delay for time Q off
Bit0 ON Q on

Back2

C = (Count) H
Decrement C by 1
Delay for time Q on

S-ar putea să vă placă și