I'm using Sleep to "turn off" the PIC. When an interrupt turns it back on it continues program execution following the sleep call. However I want to reset the PIC when it wakes up. So currently I'm just jumping to my initialization routine and all is well. I do have one concern, and that is the call stack. The sleep may be called from within subroutine(s), thus the call stack is dirty after my "reset".
So finally here are my questions.
Is it okay to just let the stack overflow since I don't need the elements that are pushed off of the bottom?
Is there a way to clear the stack without using return / retlw?
Can a PIC be reset via software?
Thanks!
Dan East
So finally here are my questions.
Is it okay to just let the stack overflow since I don't need the elements that are pushed off of the bottom?
Is there a way to clear the stack without using return / retlw?
Can a PIC be reset via software?
Thanks!
Dan East