I had a look at the example you gave to me.
I have a problem:
According to the following code,
quad_cnt = ETIMER_1.CHANNEL[4].CNTR.R; // read quadrature counter
the result can be read from the rigister,but the resigister can only store unsigned short int( 16 bit),
how to read it when the counter goes below zero?
Is there a rule to calculate the quadrature counter?