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.

INA229-Q1: config registers corruption

Part Number: INA229-Q1
Other Parts Discussed in Thread: INA229

Hi,

I use the INA229 to monitor the current in a battery powered system.

From time to time, the current reading becomes wrong, with different behaviours from one failure to the other (small gain difference, big one...) The actual current going through the circuit is still what I expect it to be.

I tracked the issue down to a corruption of the config register of the INA229. When the current reading becomes wrong, I check the values of the config registers, and they are different from what I programmed at startup.

Would you know any reason why this corruption would happen? And would you have a solution to overcome this issue?

Regards,

Benoit

  • Hello Benoit,

    I recommend monitoring your SPI communication to make sure that a command to write to the config register is not accidentally being sent. Also, if you have other devices on the SPI bus, make sure that the CS pin for the INA229 is not enabled while communicating with the other devices. Also, I would monitor the power to the INA229. This device will lose all it's settings if power is temporarily removed. (If this is the case, then you would also see your other register settings clear out too, if they are something other than default. If you are using default everywhere else, then you could try changing them just so see if they also get changed). I am guessing that is not the case though, as it sounds like your config register does not always go to the same value (unless you are only mostly powering it down?). So, my best guess is that a command is accidentally being sent to the config register.

    It would also be a good idea to see if this error is happening on different hardware and/or with a different INA229 device on the same hardware. 

    Regards,

    Mitch

  • Hi,

    Thank you for your feedback. The issue can take several days to happen, so it is a little bit complicated to monitor properly.

    The SPI bus management seems OK, we couldn't find any  problem there.

    I would rather favor a power issue, even though the config regs don't go back to their default value (random values).

    We got the problem on several different boards already.

    I'll keep digging.

    Regards,

    Benoit

  • Hey Benoit,

    Ok, just keep me posted on your progress and let me know if you have any additional questions.

    Regards,

    Mitch