Microcontroller-Based Current-Mode Control For Power Converters