# Power Tips: PWM-controlled output adjustment for USB Type-C™ applications

Consumer applications often require power supplies to support an adjustable output voltage for different operating conditions such as USB Type-C™. This demand creates the need for a simple and effective method to tune the output voltage. There are many ways to interact with the feedback (FB) pin on the integrated circuit (IC) to set the desired output. One way is to add a trim resistor at the FB pin, and apply a voltage to source or sink additional current at the FB pin’s resistive divider. Another approach is to use an I2C bus to program signals to interact with the FB pin. But what if a variable voltage source or I2C bus is not available? In this post, I will show you how to use a simple resistor capacitor (RC) low-pass filter, a trim resistor and a pulse-width modulation (PWM) signal from a microcontroller unit (MCU) to tune the output voltage.

Figure 1 shows the circuit illustration of this approach.

Figure 1: PWM injection circuit

The RC low-pass filter will average the PWM signal based on the duty cycle. The Thevenin equivalent of the circuit in Figure 2 and the filter capacitor will create the time constant, which determines the slew rate of the signal injected into the FB pin. Equation 1 shows the calculation:

Figure 2: Thevenin equivalent

Because the added RC filter introduces a pole and zero pair into the overall control loop, you will need to take care when selecting the RC filter. Looking again at Figure 1, at low frequency, when Clowpass is open, the sum of Rinject and Rlowpass is in parallel with Rfbb. When Clowpass shorts at high frequency, only Rinject is in parallel with Rfbb. Therefore, selecting Rlowpass to be much smaller than Rinject will ensure that the pole and zero pair is close to each other and will minimize the effect on the controller’s control loop.

Equations 2, 3 and 4 calculate how to best select the injection, top and bottom FB resistors, respectively:

Equation 3 corresponds to the minimum output voltage, and Equation 4 corresponds to the maximum output voltage.

For example, if the available 3.3V PWM signal’s duty cycle varies from 6% to 94%, you would select a 49.9kΩ top FB resistor and a 1kΩ Rlowpass to achieve a 1V-to-10V output, and your controller’s FB voltage would be 0.8V. Equations 5 and 6 show the calculations of Rfbb and Rinject:

Setting Equations 5 and 6 as equal, Radj yields 16.47kΩ and Rfbb yields 5.41kΩ when selecting a standard value of 15.4kΩ and 5.36kΩ for Rinject and Rfbb, respectively.

The controller’s duty cycle will be perturbed if a lot of ripple is injected into the FB pin; therefore, you will need to take some care when selecting the low-pass filter’s capacitance. As a good design practice, maintain less than 1% ripple on the FB pin voltage – much less. For example, with a switching frequency (Fsw) of 200kHz, use a PWM of 1MHz with an RC time constant of 1ms. This will minimize any beat-frequency components appearing on the output voltage. Rlowpass and Clowpass will dominate the time constant, since the resistors at the FB divider side have a much higher impedance than Rlowpass.

Following the design methodologies described in this post will reduce development time and circuit complexity for applications requiring multiple outputs.