I am using FTM2 on MKV10z32 as quadrateure decoder . and some times while running I re-synchronize the counter with a specific value and continue counting in the quadrature decoding mode from 0x0000 to 0xffff
I am using the next code to load the instant value(x) . but it seems that it dosnt work:
the quadrature encoder works just fine after the first init. but when I need to load a new value to FTm->CNT during running. I do the next to load the new value by means of CNTIN
but it didnt work !!.