Does the PIC have a common ground with the circuit you show in your diagram ?