我怀疑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.
我怀疑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.
举报