Part Number: INA219
So, this is most likely an issue with my understanding, but would like to clarify.
I have a board with a few INA219 devices on and I would like to configure them for different PGA gains.
Currently I am able to read from all devices with the default settings, and I can correctly change the over-sampling, which results in more stable readings as expected, so I know I am writing and reading to the devices correctly.
So, with a fixed current flowing I would expect the values read back from the shunt to change as I change the PGA, but that is not what I see.
My sequence is as follows, device address is 0x40...
//Set pp_hv IMON as 8x, 32x over sampling
wr 0x40 0x00 0x3e 0xef
Loop reading from register 1. Values returned follow my current as expected, yielding 1mA values across the 10mR sense resistor.
If I change the PGA gain to 1x with the following then loop reads again I would expect the values returned to be 8x the first test, but they are identical.
//Set pp_hv IMON as 1x, 32x over sampling
wr 0x40 0x00 0x26 0xef
I am sure I am missing something obvious, but for the life of me can't spot it !!!
BR,
Steve