Hi,
I am using FTM2 in dual edge input capture mode.
FTM2 running on 187500Hz frequency clock.
The PPM signal i am trying to capture is attached.
I am getting some negative numbers sporadically, more frequent when running higher FTM2 clock frequency. But it has a pattern, in the middle of the "overflow" value (65535/2 = 32768) when running 187500Hz FTM clock.
I suspect it is related to an overflow interrupt(s) is/are skipped, have debugged in two days without figuring out the cause of this glitch.
The source code is based on SDK example frdmk64f_ftm_dual_edge_capture with modifications, and is attached.
I appreciate the help and the time consumed to answer this thread!
Best Regards,
