Hi I have a pic16f1847 connected to an LCD and stepper driver. I want to turn the pic on and off by holding down a microswitch for a few seconds. Normally i would just use a slider switch on the power but I can't in this case. I have a microswitch connected to a port b pin with weak pull-ups enabled and I get the input correctly. So i know I can use hardware interrupts to count the time the button is pressed and activate/deactivate the lcd/stepper driver but the pic needs to stay on for this. I have looked through the datasheet and I imagine I could do something with MCLR but i'm not sure what exactly.
Thanks in advance for suggestions.
Thanks in advance for suggestions.