Text this: Microcontroller based PWM UPS