Other Parts Discussed in Thread: INA233
Hi,
Firstly, I have an issue with calculating the value for current using the value from the 8C register. I am using i2c/PMBus (little endian format) commands to read and write to the registers. I multiply the decimal value of the hex in 8C with the current LSB as mentioned in the manual but the value I obtain doesn't match what I feed into the shunt resistor or the value obtained using Vshunt (D1 reg). Would somebody be able to help me with this?
E.g. 8C = 0x11 0x01 D1 = 0x56 0x03 and my Current LSB is 0.24414mA/bit. Using value in D1 I get current = 0.034 A, what would be the value using register 8C ?
Secondly when I powered up the device the registers for current and voltage show values close to FFFF despite resetting the calibration register and resetting the device. The current and voltage should be 0, is there a way to clear these registers?
Thanks,
Swetha G