QEI Digital filter related

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

QEI Digital filter related

跳至解决方案
1,187 次查看
yansinli
Contributor III

QIZ 1   :  FILTA : Digital filter sampling delay ,  what kind of unit for FILTA?

QIZ2    :  how to set  FILTA?  I need a example of application.  

标签 (1)
0 项奖励
回复
1 解答
969 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

All three encoder inputs (PhA, PhB, and index) require digital filtering.
The number of sample clocks is user programmable from 1 to 4,294,967,295 (0xFFFF FFFF).
The QEI Digital filter on phase A input register [FILTA] bits using to set the filter delay for phA input signal.
From below picture, the digital filter clock source is system clock.

pastedImage_1.png

For example:
If customer set the [FILTA] bits value to 0x10000 with system clock 72MHz, the filter delay will be 910us.
If customer set the [FILTA] bits value to 0x10000 with system clock 12MHz, the filter delay will be 5.5ms.

If customer want to filter the input glitch (200ns width), customer can set the [FILTA] bits value to 0x10 with system clock 72MHz.

Wish it helps.


Have a great day,
Mike

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
970 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

All three encoder inputs (PhA, PhB, and index) require digital filtering.
The number of sample clocks is user programmable from 1 to 4,294,967,295 (0xFFFF FFFF).
The QEI Digital filter on phase A input register [FILTA] bits using to set the filter delay for phA input signal.
From below picture, the digital filter clock source is system clock.

pastedImage_1.png

For example:
If customer set the [FILTA] bits value to 0x10000 with system clock 72MHz, the filter delay will be 910us.
If customer set the [FILTA] bits value to 0x10000 with system clock 12MHz, the filter delay will be 5.5ms.

If customer want to filter the input glitch (200ns width), customer can set the [FILTA] bits value to 0x10 with system clock 72MHz.

Wish it helps.


Have a great day,
Mike

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复