A light battery monitor and a CPU frequency scaler