|
@@ -276,6 +276,7 @@ lock
|
|
bsf PORTA, 5
|
|
bsf PORTA, 5
|
|
call delay100 ; Blocking 100ms delay
|
|
call delay100 ; Blocking 100ms delay
|
|
bsf PORTA, 4 ; Stop the motor
|
|
bsf PORTA, 4 ; Stop the motor
|
|
|
|
+ call delay1000
|
|
goto idle
|
|
goto idle
|
|
|
|
|
|
|
|
|
|
@@ -316,14 +317,25 @@ delay_wait
|
|
bcf T0CON, TMR0ON ; Stop the timer
|
|
bcf T0CON, TMR0ON ; Stop the timer
|
|
return
|
|
return
|
|
|
|
|
|
|
|
+delay500
|
|
|
|
+ movlw d'5'
|
|
|
|
+ movwf DLYCOUNT
|
|
|
|
+ goto delay_repeat
|
|
|
|
+
|
|
|
|
+delay1000
|
|
|
|
+ movlw d'10'
|
|
|
|
+ movwf DLYCOUNT
|
|
|
|
+ goto delay_repeat
|
|
|
|
+
|
|
delay2000
|
|
delay2000
|
|
movlw d'20'
|
|
movlw d'20'
|
|
movwf DLYCOUNT
|
|
movwf DLYCOUNT
|
|
|
|
+ goto delay_repeat
|
|
|
|
|
|
-delay2000_repeat
|
|
|
|
|
|
+delay_repeat
|
|
call delay100
|
|
call delay100
|
|
decfsz DLYCOUNT, f
|
|
decfsz DLYCOUNT, f
|
|
- goto delay2000_repeat
|
|
|
|
|
|
+ goto delay_repeat
|
|
return
|
|
return
|
|
|
|
|
|
end
|
|
end
|