Quadrature problem of MPC5744P

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Quadrature problem of MPC5744P

673 Views
nathan_
Contributor IV

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.

2 Replies

541 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Please have a look at following thread.

https://community.nxp.com/thread/439351 

Peter

541 Views
nathan_
Contributor IV

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?

0 Kudos