Question ...
Are the Brake and the Motor supposed to run at the same time?
;constants
brake Con %00000011
stmot con %00000000
runmot con %00000001
The only way I can see that your symptoms can happen is if the PIC gets reset at the point where it applies the brake.
Possibly from over current (Brake+Motor).
The code itself will not do that.
<br>
Bookmarks