I am always working on my INA219's board, I know how to calculate correctly calibration reg now, but I can't write it in the memory.
I am using two boards, a custom one with some components on it, including two INA219 (with differents I2C @) and a Raspberry Pi 4 connected through the SDA and SCL. I can detect the two IC on the Bus, I can also dump the registers but I can't write in it.
First it appears me weird that the registers are recurring, on the screenshot below you can see "39 7d 1b 00 00 00 20 82" twice on each line,is that normal ?
After that, I saw in the D/S that the registers are 16 bits longs so can you tell me if my understanding is right in my table please ?
|Register name||@ of the first part||@ of the second part|
So I calculate a calib register : 0x8312 and I write on my raspberry :
i2cset -y 1 0x40 0x0A 0x83 0x12 i
But the only change is the 0x0a register, it came from 0x1b and the value is now 0x1c can you help me please ?