AnsweredAssumed Answered

Pulse Lenght

Question asked by sires on Jan 29, 2014
Latest reply on Jan 30, 2014 by sung.chen_chung
I finally managed to setup TIM3 to measure pulse lenght of 4 pwm signal. The only thing left to do is manage the disconnection of one of the wire feeding the signal.For now when the wire is disconnected the last valid measure is kept i want the value to go 0.

I thought to increment a control value every time there is a transition from high to low and to decrease the same value at a fixed rate using a loop considering the pulse 0 when the counter itself reaches 0. Is there a more efficent way?