detecting two rising edges from camshaft signal

Gon_FREEKS:
I used an oscilloscope on PROTEUS platforme. the blue line is the input signal and the output is the yellow one.

Please display your images in your post so we can see them without downloading them. See this Simple Image Guide

...R