Other Parts Discussed in Thread: INA229, SYSCONFIG
I have kept MSB first in Cube MX setting. As per INA229 spec sheet 3-0 (LSB is reserved) while, I am unable to set MSB four digits during config write. Am I doing something wrong in setup?
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.
Hello Mayank,
The first MSB is a system reset, so if you are trying to set that, then all values will reset to startup conditions, so that may be the problem. The second MSB clears the energy and charge registers, so that bit will reset back to 0 after set. The 3rd and 4th MSB bits will hold the value you put there, as they are part of the conversion delay setting.
If that is not the problem, it would be a good idea to test to make sure your communication is running properly by reading the manufacturer and device ID registers.
Also, you may want to look into using SysConfig which can help generate your code for the INA229. That can be found here: https://dev.ti.com/sysconfig/index.html?product=ascstudio&module=/ti/sensors/currentsensor/INA229