I need to use the Quadrature module of MPC5744P to decode signals from rotary sensor.
But I can not find any examples for that?
Anyone can share some examples with me ?
Thanks.
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?