CPC H02J 7/00308 (2020.01) [H02J 7/0031 (2013.01); H02J 7/00302 (2020.01); H02J 7/007182 (2020.01)] | 20 Claims |
1. A battery charging method, comprising:
allocating an indexed sequence of bits in a buffer for tracking a battery charging state, the indexed sequence of bits having a first number of bits;
sampling a battery voltage of a rechargeable battery at a sampling rate;
for each sampled battery voltage:
comparing the battery voltage with a voltage threshold;
identifying a next bit position in the indexed sequence of bits; and
in accordance with a determination that a comparison result is true, adding a predefined first value to the next bit position in the indexed sequence of bits;
determining, in the indexed sequence of bits, a second number of bits that are filled with the predefined first value;
determining a ratio between the second number and the first number; and
in accordance with a determination that the ratio exceeds a threshold step-down ratio, stepping down a battery charge voltage to which the rechargeable battery is charged to a step-down voltage.
|