dsPIC33EP - Why does the dedicated timer of Input Capture 2/4/6 not reset?
In the dsPIC33EP family, as of May 2018 there is a known issue regarding the input capture operating in cascaded mode. When using cascaded input capture with synchronization, the dedicated timer (ICxTMR) of the Input Capture 2/4/6 does not reset when the synchronization is not asserted.
A workaround for this is to reset (i.e., disable and enable) the input capture modules when the interrupt of the synchronization source is asserted. The following is a sample implementation where Timer3 is used as a synchronization source.