Thanks Adrian,
my goal to control a PMSM motor with incremental Encoder ( 4000 pulses per mechanical rotation)
PTA0, PTA1 are connected for ENC A and ENC B respecively.
First of all I tried using the same setting you set in eTimer_config Block which you provieded in EncoderMPC5744P_RevE.zip.
The counter of eTimer is increasing from 0 to 65535 ((2^16) -1 ). Using the same setting the motor needs to rotate 16,38 mechanical rotations (65535/ 4000 pulses = 16,38) to reset the counter of eTimer. My expectation is to reset the counter of eTimer every mechanical rotation.
I did as described in AN4561, page 11 but unfortunately, no success.
Maximum number of Edges of 4 x 4000=16000
COMP1= (16000/2)-1= 7999 DEC ==> 0x1F3F
COMP2= 16000/2= -8000 DEC ==> 0x1F40
Could you please help here and many thanks in advance!