I would like to continuously capture both rising and falling edges on two separate pins using dual edge capture on an FTM module on a K64. Is it possible to set up the capture registers C(n)V to be continuously overwritten, even if I am not reading the register and clearing the CH(n)F bit with each new edge?
I can't afford to service each edge as it comes in, so my goal is to fire an ISR on the FTM overflow, and then read the input captured time of the most recently-received edge, which could be on any of the four registers (corresponding to rising or falling edges on each of my two pins). From Fig. 40-83 in the K64 Reference Manual, it is not clear whether I need to clear the CH(n)F and CH(n+1)F registers in order to capture the next edge.
解決済! 解決策の投稿を見る。
I figured this out:
I figured this out: