$mod51
mov a,#0aah
repeat: mov p1,a
cpl a
lcall delay
sjmp repeat
delay:mov r2,#0ffh
back:mov r1,#0ffh
up1:nop
nop
djnz r1,up1
djnz r2,back
ret
end
DC Motor intro DC motor is a device which converts electrical energy into kinetic energy. It converts the DC power into movement. The typica...
No comments:
Post a Comment