Supplying power to the PIC12F508 through a transistor. Answered
I'm trying to supply power to a PIC12F508 via a transistor, so it can turn itself off once it has finished working to save power.
The Idea is for the push button to supply power to the chip, which sets GPIO5 high on power up, so turns on the transistor, allowing power to continue flowing to the chip after the button is released.
The PIC turns on correctly when the button is pressed, but will not remain on, despite power being supplied to the transistor from GPIO5.
Another possible issue is that while the chip works properly, it continues to put a high on GPIO4, lighting the LED while VSS is disconnected.
I have checked that the code functions correctly, and have tested this without the additional lines from the programmer.
Any suggestions would be appreciated.