FXOS8700CQ / How can we choose debounce period?

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

FXOS8700CQ / How can we choose debounce period?

1,122 次查看
velison1
Contributor I

Hi,

I am using fxos8700cq and try to get magnetic vector-magnitude interrupt. I have to configure M_VECM_CNT (0x6C). However, I couldn't understand how I can do that. Now, sensor operates at 100 Hz and the period is 10 ms for this configuration. If I write 1 (0x01) into the M_VECM_CNT register, debounce period is 10 ms. Can you please explain me how to choose debounce period? What is the difference between choosing 10 ms or 20 ms debounce period? What is the criteria of choosing debounce period?

Best regards,

Veli

标签 (1)
0 项奖励
回复
2 回复数

1,035 次查看
reyes
NXP TechSupport
NXP TechSupport

Hi Veli,

 

The magnetic vector-magnitude change detection block of the FXOS8700 can be configured to generate an interrupt when the magnetic field magnitude exceeds a preset threshold for a programmed debounce time. So, the idea is to select the debounce time that works fine for your application, with lower debounce time, it is easier to detect when the magnetic field magnitude exceeds the threshold.

 

You can find a diagram about the complete magnetic vector-magnitude functionality including the debounce time (M_VECM_CNT register) in Figure 2 of the application note AN4458: https://www.nxp.com/docs/en/application-note/AN4458.pdf

 

Regards,

Jose

NXP Semiconductors

1,035 次查看
velison1
Contributor I

Hi Jose,

I understand the idea of choosing debounce period. The application note is really helpful for me. Thank you so much.

Best regards,

Veli

0 项奖励
回复