AnsweredAssumed Answered

How to re-initialize Flex Timer on Channel input trigger?

Question asked by fangsbones on May 4, 2016
Latest reply on May 5, 2016 by EARL GOODRICH

On the Kinetis K61 processor I am using Flex Timer Module 2, FTM2, to count time between hardware events. FTM2 Channel 0 is configured for Input Capture Mode using CMP0_OUT for input capture (SIM_SOPT4_FTM2CH0SRC_CMP0). I have interrupts enabled as well for 2 reasons: (1) wraparound on FTM2 count, and (2) channel 0 flag.

 

How can I configure FTM2 so that it's count is re-initialized at the same time that channel 0 stores the value into FTM2_C0V?

Outcomes