完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我们正在使用H3LIS331DL来记录我们仪器的震动。 当加速度>阈值时,我们设置INT1来中断。 当中断发生时,我们读出值并存储它。 我们观察到有时候我们会读出低于阈值的加速度。 为什么会发生这种情况 普拉迪普 #authentix#h3lis331dl 以上来自于谷歌翻译 以下为原文 hello, we are using H3LIS331DL to record shock on our instrument. we have setup INT1 to interrupt when acceleration>threshold. when the interrupt occurs we read out values and store it. we have observed that sometimes we read out acceleration that is less than threshold. why is this happening Pradeep #authentix #h3lis331dl |
|
相关推荐
2个回答
|
|
我想这是由中断发生的时间和从输出寄存器读取值的时间之间的延迟引起的。如果超短时间超过阈值,您可以读取已经低于阈值的后续值。您可以尝试减少传感器ODR和/或优化MCU的代码,如果发生中断,它会读取值。
以上来自于谷歌翻译 以下为原文 I suppose it is caused by a delay between the time when interrupt occurs and the time you read the value from output registers. In case of very short peek which exceed the threshold, you can read subsequent value which is already lower then the threshold. You can try to decrease the sensor ODR and/or optimize code for your MCU, which reads the value if interrupt occurs. |
|
|
|
米罗斯拉夫,谢谢你的回应。
ODR = 1KHz。这意味着我们在更新内部寄存器之间有1ms。 一旦中断发生,我们就会在750微秒内读出所有6个值,因此我们错过任何值的可能性非常小。 '你可以尝试减少传感器ODR' - 这将如何帮助我们读取非常短的峰值? 普拉迪普 以上来自于谷歌翻译 以下为原文 Miroslav, thanks for responding. ODR = 1KHz. this means we have 1ms between updates of internal registers. Once the interrupt occurs, we read out all 6 values within 750 micro seconds, so the chances of us missing any value is very small. 'You can try to decrease the sensor ODR' -- how will this help us read the values of a very short peak? Pradeep |
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
932 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
983 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3149 浏览 1 评论
3413 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2005 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
164浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
179浏览 5评论
202浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
247浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
188浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-7-15 15:13 , Processed in 0.813304 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191