Lithium battery overvoltage protection