test capture, measure pulse width with serial output