How to remove switching transients at digital pin of PIC 16F877A microcontroller.Please suggest something worthy.Very noisy environment of High Voltage