Hi all,
I have a behaviour than I don’t understand with the INA 226.
I use an INA226 demo cards.
I want to measure the shunt voltage every 1024 (Averaging mode) * 8.244ms (Conversion Time) with the Shunt Voltage, Triggered mode.
Here is the algorithms used:
=> Begin
|
=> Write in configuration register
|
=> (1) : Read Enable/Masked register
|
=> if CVRF (Conversion Ready Flag) == 1 then go to (2)
|
=> if CVRF (Conversion Ready Flag) == 0 then go to (1)
|
=> (2) : Read the Shunt Register
|
=> End
I launch this program in a loop and display the value measure. Then I expect to receive a sample every 8.441 seconds but the period of the sample measured appear randomly. The time is including between 0.5s and 6s. In the other end the value measured in the shunt register is good.
Furthermore when I read on the Mask/Enable register I have values than I don’t understand who can be :
03FF
000F
0031
07FF
007F
I’am blocked and I don’t know what to do to receive the sample every 8.44s when I launch the measure as I expected.
Thank you for your help.