The micro controls inverterups works on lead acid batteries. Whenever mains fails, the inverterups changes over to the inverterups mode instantaneously, and starts operating on the batteries and supplies ac voltage to the connected loads. As soon as the mains power is restored, the inverterups changes over back to the normal mains power, and now starts charging the drained batteries for the next impending power failure.