When the power supply is give to the connector means the PNP transistor have to switch and +5V is given to the PIC controller's pin for reference.
But when i connected the PNP transistor means I can't get any output from the regulator.If I removed the PNP transistor means i can get +5V from the regulator.R4 is resistor is connected to ground,which used for PIC power supply.
This regulator circuit should active when the power supply is given to it.