Quadrature Encoder speed measurement

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

Quadrature Encoder speed measurement

Jump to solution
1,914 Views
dh1
Contributor II

Hello

In the reference manual of the IMXRT1060X, there is a chapter 56.3.5 Speed Measurement Method, which explains how to measure the speed of a quadrature encoder signal.

Is there a code example available, which implements this algorithm?

Thanks and regards,
Daniel

0 Kudos
Reply
1 Solution
1,886 Views
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

For the Quadrature Decoder (QDC) module, only the SDK examples enc_basic and enc_index_interrupt are available, which only compute position. No examples are available for the Speed Measurement Method.

Sorry for the inconvenience.

Have a nice day!

View solution in original post

0 Kudos
Reply
4 Replies
1,887 Views
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

For the Quadrature Decoder (QDC) module, only the SDK examples enc_basic and enc_index_interrupt are available, which only compute position. No examples are available for the Speed Measurement Method.

Sorry for the inconvenience.

Have a nice day!

0 Kudos
Reply
1,838 Views
dh1
Contributor II

Hi,

Looking at it again, it seems the "Speed Measurement Method" topic is misleading. It refers to the register POSDPER. But this controller (imx RT106x) does not even have this register?

Or am I overseeing something?

Regards,
Daniel

0 Kudos
Reply
1,816 Views
_Leo_
NXP TechSupport
NXP TechSupport

Apologies. That's correct, the IMXRT1060 does not support this register. It is an typo that I will report to the corresponding department.

In such a case, you will need to create an algorithm using a general purpose timer as the time base connected to the TRIGGER and take a snapshot of the POSD register in order to calculate speed.

On the other hand, you can use IMXRT1160/70 where it is supported.

Wish it helps you.

0 Kudos
Reply
1,858 Views
dh1
Contributor II

Hi,

Thank you for your answer. That is strange, because the description seems so detailed that somebody must have tested this somehow.

Best regards,
Daniel

0 Kudos
Reply