We're using the Nordic Zephyr library (SDK v2.5) to configure the nPM1300. Using the library, the battery discharge current limit is set to 1000mA. However, using a logic analyzer to decode the I2C traffic shows that 0x9A (decimal 154) is written to register 0x30A (BCHGISETDISCHARGEMSB) and 0x01 is written to register 0x30B (BCHGISETDISCHARGELSB). There are a few questions related to this, referencing Section 6.2.11 of the datasheet (v1.1).
1. Instead of saying "two possible settings", tthe datasheet says "The two discharge current settings are found in the following table" (italics mine). This implies that there are only two settings. But I assume that these are just two example settings and other settings are possible. Please confirm.
2. In Table 16, for 1000mA battery discharge it shows that the BCHGISETDISCHARGE register settings should be 207 (0xCF) and 0x01. But that is not what is being written when our configuration code runs. Is this a known bug with SDK v2.5, or could there be something else going on here?
3. I see no guidance on how to translate between the register settings and the current limit, except for the 2 settings shown in Table 16. And those settings indicate the 9-bit value (the BCHGISETDISCHARGEMSB value appended with the single bit from BCHGISETDISCHARGELSB) should be scaled at about 2.4mA/bit. Can you confirm that scaling is correct?
