Post Go back to editing

ADXL345 读取id失败

Thread Summary

The user is experiencing inconsistent SPI communication with the ADXL345 accelerometer, where the device ID is sometimes read as 0xE5 and other times as 0x00. The final answer suggests checking the digital interface connections and ensuring the SPI bus is not overloaded. The issue may be due to power supply or threshold specifications being marginal, and the user should verify these parameters.
AI Generated Content

我使用mcu读取ADXL345 ID  大部分时候可以正常读取到0XE5,有些时候只能读到00,下面附上示波器波形图:

正常波形:

异常波形:

感觉貌似从4线spi 跑到了3线,但是默认情况应该是4线SPI模式,  根据逻辑分析仪分析,正常的时候,MOSI的波形为:0X80 0x00 ,异常的时候波形为:0x80 0xe5,感觉 miso的数据跑到mosi了,这是什么原因?

Thread Notes