| Erick |
Posted: Thu May 11, 2006 3:04 am Post subject: Motor stepper |
|
You should use interrupt function INT0 or INT1 to detect whenever a swich is pushed On or OFF.
Org 0h
sjmp start
org 03h ; Interrupt vector address
sjmp InterruptMotor
;
start:
call motorstepper
sjmp start
;
InterruptMotor:
call motorOFF
;do anything
end |
|