Hi I have a 9V pulse at 4KHz. This is slighty negative going to about 200mV. I need this fed into a PIC to detect edges. I used a diode to remove the negative oart of the signal. Then fed into a potential divider to divide by a factor of 3. However the output is a square wave sitting on a dc offset of 2V. How can i remive the dc offset please? Any ideas would be appreciated. Please see my sketch to explain the problem. Thanks in advance.