The BQ40Z50-R4 implements a QMax and Fast Qmax check prior to saving the value to data flash. This improves the robustness of the QMax update in case of potential QMax corruption during the update process.
The verifications are as follows:
- Verify that the updating QMax or Fast Qmax value is within Qmax Delta Percent, which is the maximum allowed QMax change for each update. If the updating value is outside of this data flash parameter, the BQ40Z50-R4 caps the change to Qmax Delta Percent of the Design Capacity.
- Bound the absolute QMax value, Qmax Upper Bound. This is the maximum allowed QMax value over the lifetime of the pack.
- Ensure that QMax is greater than 0 before saving to data flash.