| CPC H02M 3/1582 (2013.01) [G01R 19/16552 (2013.01); G06F 1/266 (2013.01); H02M 1/0009 (2021.05); H02M 1/0025 (2021.05); H02M 3/1566 (2021.05)] | 20 Claims |

|
1. A method comprising:
detecting, by a Universal Serial Bus (USB) controller for a USB Type-C device, a transition of a buck-boost converter from a first mode having a first duty cycle to a second mode having a second duty cycle that is less than the first duty cycle;
providing, by a slope compensation circuit of the USB controller, an output based on an input current of the buck-boost converter and a slope compensation current, the output comprising an error caused by the transition; and
controlling, by the USB controller, an offset output by the slope compensation circuit to nullify the error caused by the transition, wherein controlling the offset output by the slope compensation circuit comprises storing a charge in a capacitor of the slope compensation circuit during the first duty cycle and applying the charge during the second duty cycle.
|