Hi all,
I already successfully read the instant mode VBAT from my PMIC, nPM2100, but I would like to have more precise VBat readings.
1. I used this set up for my avg16
// 1) Set VBAT measurement AVG16
npm2100_write(NPM2100_REG_CONFIG, NPM2100_ADC_AVG16);
// 2) Start conversion
npm2100_write(NPM2100_REG_TASKS_ADC, 0x01);
// Read VBAT result (8-bit), vbat = adc.readvbat * 3.2/255,
// i.e adc.readvbat = 114 => vbat = 114 * 3.2/255 = 1.43
npm2100_read(NPM2100_REG_READAVGVBAT, &result);
However, if I kept sending the same set up, then my reading will return the battery's values.
Is there a way for me to do the set up only once and continue to reads all the needed parameters like VBAT, VOUT, TEMP, DROOP etc..
2. The information in the data sheet provide for the VBAT calculation using 3.2V, is this because the VBATrange is from 0 to 3.2V? But the input allow 0.7V up to 3.4V?
3. From #2 Is there any document or procedure for me to perform the offset calculation to address for the real battery's monitor?