raising and failing edge capture on TIM4