micro-controller based inverter