I think it might be better to ...It looks like you have correctly set-up the pic to wake from sleep on PORT change (either switch).Code:main: rel1=0 rel2=0 @ sleep pause 100
So then it wakes up ... drives the motor relays as necessary ... and only after the motor is finished, and no buttons are pressed, go back to sleep.
The two NOP's are only required if it will be jumping to an Interrupt vector on wake up.
Yours is just continuing where it left off.
Hmmm, sounds like a powered antenna driver. ??
<br>




Bookmarks