If the PIC you are using has clamping diodes on the inputs, all you need is a current limiting resistor in each circuit. There is a Microchip app note that covers this.