Pulse Difference input processing, handle signed integer

Instead of silently ignoring negative values passed into pulse_diff(),
convert them to unsigned integer. Pulses should always be positive.