Quote Originally Posted by mackrackit View Post
If the sub is reached from a GOSUB then I guess it would depend on the rest of your program. If the program is not expecting data from the sub or data from an interrupt then it would be ok.
I'm watching for a pushbutton to pull a port low. When the button is pressed, a subroutine is called that shuts down some external circuitry, finishes all the PIC chores, and then I want all PIC activity to END. Not looking for any more data or anything. No more activity until the power is removed and restored, then the program starts "fresh" again.

It looks like "END" works fine for what I want. Just wanted to make sure there's no "creepy" side effects or anything.

thanks!
Steve