Other Parts Discussed in Thread: INA228,
Hi!
With CURRENT_LSB=0.001A and Rshunt=0.505,371R and ADCRANGE=1 I get SHUNT_CAL=0x0678.
Then I get the readings, that I copied to the appendix. (nota bene: My MCU converts the 2s-complement values to biased unsigned integers by adding 0x8000.)
When I convert it, then the POWER reading of 0x431B7/521 converts to 0.106W, but I expected not more than 0.025W.
Is equation (4) in section 8.1.2 of the datasheet (page 29) not quite right for ADCRANGE=1?
The other conversions make sense to me...
PS: With higher current (appr. 0.5A) equation #4 works much better.
Thx.
Bye.
appendix:
sample count=521 {431B7/2A9>173 O:0 F:0.000200} P 0.074.. 0.106.. 0.136W i=58 {1048001/8001>8000 O:FFFF8000 F:0.001250} Ushunt 0.000.. 0.000.. 0.001mV i=66 {11BA660/8B60>8B60 O:FFFF8000 F:0.007812} T 22.750.. 22.750.. 22.750°C i=74 {3A81AB/1CC0>1CBE O:0 F:0.003125} Ubus 22.994.. 22.998.. 23.000V i=82 {1047FE2/8001>7FFF O:FFFF8000 F:0.001000} I -0.001.. -0.000.. 0.001A i=90