I am trying to get a better understanding of how the FTM syncronization works using a hardware trigger(TRIG1).
I have already set the SYNCMODE=1, HWTRIGMODE=1, HWWRBUF=1, TRIG1=1 and CNTMAX=1 in FTM0 registers. The FTM0 is in combine mode.
I have also enable the FTM1( Frequency is one-third of FTM0) interrupt to set the SIM_FTMOPT1[FTM1SYNCBIT]=1 and prepare FTM0 CnV register buffer values.
With my understanding, After receiving the FTM1 synchronization signal(SIM_FTMOPT1[FTM1SYNCBIT]=1), FTM0 should update CnV register with the buffer value. However, it does not work according to my expectations and the CnV register does not change.
I am wondering if my understanding of how this works is correct?
How to use the TRIG1(SIM_FTMOPT1[FTM1SYNCBIT]) correctly and When is the sync bit reset to zero?
Thanks for the answer.