Documente Academic
Documente Profesional
Documente Cultură
Project 8085
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
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