dsp pulse detection