One question about your design. Is the switch momentary contact? If not, I see no way your circuit will work. I assume you intend the PIC to start up when the button is pressed and set up RA4 as an output and drive it low (I suggest you set it low first, before setting it up as an output to prevent any risk of RA4 trying to drive high while the button is pressed), thus latching the PIC power on, even after the button is released. CIAO - Martin. On Fri, 19 Dec 1997 11:43:45 -0200, Octavio Nogueira wrote: >I'm developing a battery operated device with 16C71 and I need the 16C71 >to turn the power off. I thought in a transistor controlled by RA4. >Please take a look in the attached file (just 2K) and say if it's safe. >Or, does anyone have a better idea? > >Regards, > >Octavio >====================================================== >Octavio Nogueira - e-mail: nogueira@mandic.com.br >http://www.geocities.com/~oct_nogueira >"ProPic" Production PIC Programmer Windows under US$20 >====================================================== Martin R. Green elimar@NOSPAMbigfoot.com To reply, remove the NOSPAM from the return address. Stamp out SPAM everywhere!!!