I'm working on a project in which a hardwired input from the "real world" may be subject to a static discharge when it's originally connected to the PIC/circuit board. Has anyone worked through this in a safe manner? Even if I use and optoisolator, it would share the common power supply and thus could still cause a problem.

Any suggestions on buffering the input safely would be appreciated.

picster