dzakriel
Junior Member level 3
hi everyone, i currently working my task to make a driver motor DC circuit include with the PWM program with asm of course.
My circuit has already working with condition i use VCC from my micro port for the pin EN, and PWM, so it run at full speed (100%), but when i try to make a program to produce pwm and the EN signal, the voltage drop.
can any of you help my with advice? by the way i only use simple program to produce my PWM since i haven't found the prpoer one here is the program,
org 0h
start:
mov p1,#0ffh
call delay
mov p1,#00h
call delay
sjmp start
delay: mov r1,250
del_1: mov r2,50
del2: djnz r2, del2
del3: djnz r1, del_1
ret
end
My circuit has already working with condition i use VCC from my micro port for the pin EN, and PWM, so it run at full speed (100%), but when i try to make a program to produce pwm and the EN signal, the voltage drop.
can any of you help my with advice? by the way i only use simple program to produce my PWM since i haven't found the prpoer one here is the program,
org 0h
start:
mov p1,#0ffh
call delay
mov p1,#00h
call delay
sjmp start
delay: mov r1,250
del_1: mov r2,50
del2: djnz r2, del2
del3: djnz r1, del_1
ret
end