Other Parts Discussed in Thread: INA229, INA239
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号: INA229
主题中讨论的其他器件: INA239
为什么在我尝试读取寄存器时、我实际读取的是完全不同的寄存器? 例如、我读取 0x3F、但我从寄存器 0x3E 中获得结果。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
该器件的一个常见错误导致读取/写入值与预期不同、那就是使用了不正确的 SPI 模式。 INA229 的用法 CPOL = 0 (当空闲时,时钟为低电平(无效),在下降沿对数据进行采样) 和 CPHA = 1. (数据在上升时钟沿移位)。

SPI 的 4 种模式为
我们的两种 SPI 电流传感器 INA229 和 INA239 都使用 SPI 模式 1