ST意法半导体
直播中

李慧

8年用户 971经验值
私信 关注
[问答]

一段时间后LIS3DH停止采样测量

我们注意到加速度计在一段时间(10+)后停止采样。当发生这种情况时,唯一的解决方法是在REG4中写入0x0,然后重写原始值0x37。有人遇到过类似的问题吗?


干杯,
#采样冻结

以上来自于谷歌翻译


以下为原文




We have noticed that the accelerometer stops sampling after some time (10+).  When that happens, the only work around is to write 0x0 in REG4, and then re-writing the original value of 0x37.  Anyone has encountered a similar problem?


Cheers,  
#sampling-freeze

回帖(5)

曾玲娟

2019-4-25 15:32:07
你有推荐靠近传感器的阻塞电容吗?

以上来自于谷歌翻译


以下为原文




Do you have recomended blocking capacitors close to the sensor?
举报

刘丽

2019-4-25 15:38:10
受到警告
提示: 作者被禁止或删除 内容自动屏蔽
举报

曾玲娟

2019-4-25 15:56:14
我怀疑Javier报告的解决方案是否可行,将这些值写入CTRL_REG4是没有意义的。有意义的是将值写入CTRL_REG1寄存器,因此它将停止并启动传感器。
很难推出这类问题。
您可以检查传感器所连接的总线上的SPI通信是否正确,因为如果CS信号未选择传感器,则它正在监听通信并期望I2C。因此,您必须确保SPI通信不会产生一些可以通过I2C接口捕获的模式。
您还可以通过向SPC引脚发送一堆时钟脉冲来尝试从传感器冻结中恢复。

以上来自于谷歌翻译


以下为原文




I doubt the solution reported by Javier could work, it doesn't make sense to write these values to CTRL_REG4. What could make sense is to write the values into CTRL_REG1 register, so it will stop and start the sensor.
It is difficult to debut this kind of issue.
You can check that the SPI communication on the bus where the sensor is connected is proper, because if the sensor is not selected by CS signal it is listening the communication and expecting I2C. So you must be sure that the SPI communication doesn't create some patter which can be capture by I2C interface.
You can also try to recover from the sensor freeze by sending bunch of clock pulses to SPC pin.
举报

刘丽

2019-4-25 16:12:55
受到警告
提示: 作者被禁止或删除 内容自动屏蔽
举报

更多回帖

发帖
×
20
完善资料,
赚取积分