S32K344 incremental encoder speed and position measurement

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K344 incremental encoder speed and position measurement

2,516 次查看
Neo1096
Contributor III

I have referred to the sampling scheme of AN13767, but we have low-speed applications and want to use the M/T method to measure the motor position and speed. If the T method is used, should the measurement mode be ICU_MODE_SIGNAL_EDGE_DETECT or ICU_MODE_SIGNAL_MEASUREMENT? I find that the ICU_MODE_SIGNAL_EDGE_DETECT mode cannot detect overflow.
In addition, at high speed, these two modes will frequently enter interrupts. Is there a way to read the sampling period without triggering an interrupt?

0 项奖励
回复
3 回复数

2,451 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

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

In AN13767, ICU_MODE_EDGE_COUNTER mode is used for shaft position measurement. And also in this example the interrupt is generated when the ADC conversion completed to perform FOC Calculation every 2 PWM periods in order to provide more CPU time for customer application use.

Hope it helps you.

Have a nice day!

0 项奖励
回复

2,445 次查看
Neo1096
Contributor III

I saw this application in the chip manual, but the LCU unit cannot read the output level directly, and it would waste more time to use an external interrupt. AN13767 also did not find a routine to calculate the direction of motion, I would like to ask what kind of treatment is better here.

0 项奖励
回复

2,410 次查看
_Leo_
NXP TechSupport
NXP TechSupport

4.2.5. Quadrature decoder section from AN13767 describes all peripherals interconnection for quadrature encoder, also you could refer directly to the SW to have a better understanding of this.

 

0 项奖励
回复