I need to design an electric circuit which require PWM to let the battery and supercapacitor take turn to supply current to the loads.
stage1: battery charge up supercap and supply current to the load
stage2: supercap voltage increase to a certain level, battery current is cut, supercap...