Hey Matt.
Its been long while .. What's up.. How are you ?? I have been using the ADS1120-Q1 for my current measurement . I have tried with the two different register 2 configuration. One with the VREF as : Analog supply (AVDD – AVSS) used as reference (In the hardware we have given 5V to AVDD pin and AVSS as ground ) and other with the External reference selected using dedicated REFP0 and REFN0 inputs and in the REFP0 given as 5V and REFN0 as GND .
The value for the register are VREF as Analog supply {0x43,0x81,0x04,0xD8,0x00} and
VREF as External Reference {0x43,0x81,0x04,0x58,0x00}.
We have made the measurement with the hall sensor output using 6 and half multimeter but when i try to read the ADC output value with MSB first and LSB second. Below are the tabulated values .When i put the calculation for my cross verification with hall sensor output I'm getting only half of the value. We have made with different current values .
Formula used : actual value = (ADC Value - 32780) --> The offset value we got by shorting the positive and negative terminals of AVDD and AVSS value #32780(0x8000h)
Software Hall sensor output = (actual value * 5000) / 32767; (5000 for 5V as Ref voltage )
During Discharging
Load | MSB | LSB | Decimal Value | Decimal value - offset | Hall sensor output | Software Hall sensor output |
No Load | 0x8f | 0xfd | 36861 | 4081 | 1.247 | 622.7301859 |
1A | 0x90 | 0x1b | 36892 | 4112 | 1.256 | 627.4605548 |
2A | 0x90 | 0x3c | 36924 | 4144 | 1.266 | 632.3435163 |
3.5A | 0x90 | 0x6d | 36978 | 4198 | 1.281 | 640.5835139 |
During Charging
Load | MSB | LSB | Decimal Value | Decimal value - offset | Hall sensor output | Software Hall sensor output |
1A | 0x8f | 0xda | 36822 | 4042 | 1.247 | 616.7790765 |
2A | 0x8f | 0xbc | 36796 | 4016 | 1.256 | 612.8116703 |
3A | 0x8f | 0x9c | 36764 | 3984 | 1.266 | 607.9287088 |
4A | 0x8f | 0x7d | 36734 | 3954 | 1.281 | 603.3509323 |
5.03A | 0x8f | 0x5c | 36700 | 3920 | 1.281 | 598.1627857 |
Kindly help Matt and guide for further. Whether its is correct or not and why I'm getting only half of the hall sensor output. and let me know if the register value are anything needs to be corrected