try input capture
use pwm to trig