entry of the main loop when the program continues it will go through block 304 and reach block 308 at block 308 the program checks to see if task 2 is scheduled to run if the answer is yes the program will execute the functions in block 310 to run the redundancy routine for each input channel that the mini inverter has then it sets task 3 and returns to block 302 when the program further continues it will go through block 304 and 308 and reach block 312 at block 312 the program checks to see if task 3 is scheduled to run if the answer is yes the program will execute the functions in block 314 to i set the unit address for the mini inverter and ii respond to queries from data gathering or acquisition devices to report the power statistics then it sets task 1 and returns to block 302 the main program runs continuously based on a preset loop rate to execute the scheduled tasks at any time an interrupt is triggered the digital microcontroller immediately processes the pending interrupt service routine the key components functions and steps in the interrupt service routine embedded in the digital microcontroller are described in the u s patent application ser no 12 837 162 fig1 is a flow chart describing the generation and synchronization subroutine which is invoked by the power generation mechanism at block 306 running in the digital microcontroller of a smart and scalable off grid mini inverter that can be an off grid.