Other Parts Discussed in Thread: BQ25622, BQSTUDIO
Hello, I'm fairly certain that the datasheet contains an error related to REG0x02 "Charge Current Limit" ICHG (highlighted in red)...
I wrote my test firmware program by using the depiction Figure 9-16, and the "Bit" column of Table 9-9, but I was not observing the POR default value of 1040mA. After some hours of head-scratching, I read the description column of Table 9-9 over and over again, and saw that the relevant bits of REG0x02 begin at bit 6, whereas the "Bit" column states it begins at index 5. I changed my code to begin at bit 6, and the correct POR value of 1040mA was shown.
This must surely be a mistake no?
What I am not certain about is if it is a 6-bit or 7-bit value. The maximum of 3520mA/80mA = 44 (0x2C) which can be represented in 6 bits, so I assume it is ok to treat it as a 6-bit field. For completeness, it would be good to know the actual size of ICHG though.