Hi Prasanna,
Because the period of the signal is too low, I would suggest if you're using the input capture FlexTimer:
- Enable the overflow and the trigger interruption for the FlexTimer channel, this to know if the value was triggered by the pulse edge or to know if the timer overflows.
- Set the double edge capture mode and compare both measurement, if you identify that are to different you could try a work-around or discard the measurement.
- Reset the CNT (count value) every time the edge triggers.
Other approach could be using one of the edges of the signal as a trigger for a timer with a low period, the PIT or FTM module for example. And stop the signal when the interruption triggers again and catch the value.
Hope it can help you.
Best Regards,
Alexis Andalon