Hi
the pic 16f876a will have 2 output pins as inputs to the DC motor which is controlled using L293D H-bridge
what should I connect to protect the pic?
there is isolation between vcc1 and vcc2 of the l293 H bridge..
no need to worry about pic. l 293 is a driver and can isolate the pic from the current drawn by the motor. in my experience, there is no mishap involving it!