There are regulators with power off options but there is a hen-or-egg problem with this. Please search the piclist archive for this. I have recently posted a circuit that solves your problem (as a pdf attachment). Peter PS: The thread subject was: [PIC]: EE challenge PIC && 12V battery -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics