Hi Steve,
Thanks for your help.
My idea was to get the edges detected by differentiator, clean edges using Schmitt trigger, then feed this into PIC interrupt to detect high to low edge, start timer, detect low to high edge, stop timer. Calculate the width using timer value and then compare...