# US 8,278,898 B2 · Auto-tuning power supply

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,278,898 B2
- Document ID: US8278898B2
- Status: Granted
- Kind: B2
- Application number: 12/651,581
- Filed: 2010-01-04
- Published: 2010-08-19
- Granted: 2012-10-02
- Earliest claimed: 2009-02-13
- Assignees: Texas Instruments Incorporated
- Inventors: Ali Davoudi; Mark David Hagen
- Web page: https://patentgrep.com/patent/US8278898B2

## CPC

- H02M 3/157: with digital control
- H02M 1/0012: {Control circuits using digital or numerical techniques (in DC/DC converters H02M3/157, H02M3/33515; in DC-AC converters H02M7/53873)}
- H02M: APPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF (transformers H01F; dynamo-electric converters H02K47/00; controlling transformers, reactors or choke coils, control or regulation of electric motors, generators or dynamo-electric converters H02P)

## Abstract

An apparatus for and method of automatically tuning a voltage regulation control loop for a digitally controlled switch mode power supply is provided. The method includes determining a frequency response of the power stage and calculating an open loop transfer function from the frequency response. A correlated metric is defined based at least in part on the open loop transfer function, wherein the correlated metric is correlated to an expected disturbance in regulated output voltage from the digitally controlled switch mode power supply due to a change in load. New values for the open loop transfer function are calculated for a range of controller compensation parameters to minimize the correlated metric. These values are then applied to the digital controller for use in controlling the power supply.

## Claims

### Claim 1

A method of automatically tuning a voltage regulation control loop for a digitally controlled switch mode power supply, the method comprising:
determining a frequency response of a power stage of the digitally controlled switch mode power supply;
calculating an open loop transfer function from the frequency response;
dividing out a known controller loop compensation transfer function from the open loop transfer function;
defining a correlated metric based at least in part on the open loop transfer function, the correlated metric correlated to an expected disturbance in regulated output voltage from the digitally controlled switch mode power supply due to a change in load;
calculating new values for the open loop transfer function for a range of controller compensation parameters to minimize the correlated metric.

### Claim 2 (depends on 1)

The method of claim 1 wherein the determining the frequency response comprises:
exciting a control loop of the digitally controlled switch mode power supply by a digital controller with a series of synthesized sine wave signals, and
sensing a response thereto with the digital controller, the response comprising the frequency response.

### Claim 3 (depends on 2)

The method of claim 2 wherein sensing the response to the series of synthesized sine wave signals comprises:
sampling a point in the control loop other than a point of excitation by the series of synthesized sine wave signals;
multiplying a value at the point by a synthetic cosine sequence to obtain a first result and by a synthetic sine sequence to obtain a second result; and
accumulating the first result and the second result.

### Claim 4 (depends on 1)

The method of claim 1 wherein the determining the frequency response comprises:
receiving power stage parameters;
calculating the frequency response of the power stage from the power stage parameters.

### Claim 5 (depends on 1)

The method of claim 1 wherein the determining the frequency response comprises:
exciting the power stage when disconnected from a compensator by applying a series of synthesized sine wave signals combined with an average duty cycle of the power stage;
sensing a response thereto with a digital controller, the response comprising a frequency response.

### Claim 6 (depends on 1)

The method of claim 1 further comprising determining a plurality of open loop transfer functions by selecting a range of values for zeros of a controller compensator equation and determining a gain of the controller compensator equation at each instance of controller zeros.

### Claim 7 (depends on 1)

The method of claim 1 further comprising:
fitting the open loop transfer function to a second order transfer function using a least square system identification of the open loop transfer function;
calculating a range for zeros based on dominant second order poles of the open loop transfer function;
defining a basis for determining discrete-time filter coefficients using the range of zeros;
determining a DC gain of the controller compensation parameters by setting a resulting open loop gain equal to 1.0 at a frequency that gives a desired phase margin.

### Claim 8 (depends on 1)

The method of claim 1 wherein defining a correlated metric comprises simulating the digitally controlled switch mode power supply based on a least squares fit model of a power stage of the digitally controlled switch mode power supply and a selected compensator and capturing root mean square (RMS) and peak to peak disturbance of a regulated output voltage of the model to a load step.

### Claim 9 (depends on 1)

The method of claim 1 wherein defining a correlated metric comprises evaluating a closed loop output impedance of the digitally controlled switch mode power supply.

### Claim 10 (depends on 9)

The method of claim 9 where the correlated metric comprises a weighted sum of the closed loop output impedance at a minimum frequency measured, the closed loop output impedance at a frequency at which the open loop output impedance is a maximum, the closed loop output impedance at a frequency at which the open loop output impedance is a maximum, and a RMS of the closed loop output impedance over a range of frequencies at which the open loop output impedance is evaluated.

### Claim 11

A digitally controlled switch mode power supply comprising:
a switch mode power supply converter;
a digital controller connected to receive an output of the switch mode power supply converter and to provide a controller signal to the switch mode power supply converter, and to determine a frequency response of the switch mode power supply converter, the digital controller configured to:
calculate an open loop transfer function from the frequency response;
divide out a known controller loop compensation transfer function from the open loop transfer function;
define a correlated metric based at least in part on the open loop transfer function, the correlated metric correlated to an expected disturbance in regulated output voltage from the digitally controlled switch mode power supply due to a change in load; and
calculate new values for the open loop transfer function for a range of controller compensation parameters to minimize the correlated metric.

### Claim 12 (depends on 11)

The digitally controlled switch mode power supply of claim 11 wherein the digital controller configured to be in communication with an input and an output of a power stage of the switch mode power supply converter, wherein the digital controller is further configured to:
excite a control loop of the digitally controlled switch mode power supply with a series of synthesized sine wave signals, and
sense a response to the synthesized sine wave signals by the power stage, the response comprising the frequency response.

### Claim 13 (depends on 12)

The digitally controlled switch mode power supply of claim 12 wherein the digital controller is in communication with a point in the control loop other than a point of excitement of the control loop wherein the digital controller is further configured to:
sample voltage values at the point;
multiply the voltage values at the point by a synthetic cosine sequence to obtain a first result and by a synthetic sine sequence to obtain a second result; and
accumulating the first result and the second result.

### Claim 14 (depends on 11)

The digitally controlled switch mode power supply of claim 11 wherein the digital controller is further configured to:
receive power stage parameters;
calculate the frequency response of a power stage of the switch mode power supply converter from the power stage parameters.

### Claim 15 (depends on 11)

The digitally controlled switch mode power supply of claim 11 wherein the digital controller configured to be in communication with an input and an output of a power stage of the switch mode power supply converter, wherein the digital controller is further configured to:
excite the power stage when disconnected from a compensator by applying a series of synthesized sine wave signals combined with an average duty cycle of the power stage;
sense a response thereto, the response comprising a frequency response.

### Claim 16 (depends on 11)

The digitally controlled switch mode power supply of claim 11 wherein the digital controller is further configured to:
determine a plurality of open loop transfer functions by selecting a range of values for zeros of a controller compensator equation and determining the gain of the controller compensator equation at individual instances of controller zeros.

### Claim 17 (depends on 11)

The digitally controlled switch mode power supply of claim 11 wherein the digital controller is further configured to:
fit the open loop transfer function to a second order transfer function using a least square system identification of the open loop transfer function;
calculate a range for zeros based on dominant second order poles of the open loop transfer function;
define a basis for determining discrete-time filter coefficients using the range of zeros;
determine a DC gain of the controller compensation parameters by setting a resulting open loop gain equal to 1.0 at a frequency that gives a desired phase margin.

### Claim 18 (depends on 11)

The digitally controlled switch mode power supply of claim 11 wherein the digital controller is further configured to simulate the digitally controlled switch mode power supply based on a least squares fit model of a power stage of the digitally controlled switch mode power supply and a selected compensator and capturing RMS and peak-peak disturbance of a regulated output voltage of the model to a load step.

### Claim 19

A controller for a switch mode power supply, the controller comprising:
a connector for receiving a voltage output from a switch mode power supply;
digital pulse width modulation circuitry configured to apply a pulse width modulated control signal to the switch mode power supply;
a processing unit operatively connected to the digital pulse width modulation circuitry;
a memory operatively connected to the processing unit;
wherein the processing unit is configured to:
determine a frequency response of the switch mode power supply;
calculate an open loop transfer function from the frequency response;
define a correlated metric based at least in part on the open loop transfer function, the correlated metric correlated to an expected disturbance in regulated output voltage from the digitally controlled switch mode power supply due to a change in load;
calculate new values for the open loop transfer function for a range of controller compensation parameters to minimize the correlated metric;
select a set of zeros for a controller compensator equation based on a phase margin for the switch mode power supply; and
determine a gain for the controller compensator equation based on the set of zeros for the controller compensator equation.

### Claim 20 (depends on 19)

The controller of claim 19 wherein the processing unit is further configured to:
fit the open loop transfer function to a second order transfer function using a least square system identification of the open loop transfer function;
calculate a range for zeros based on dominant second order poles of the open loop transfer function;
define a basis for determining discrete-time filter coefficients using the range of zeros;
determine a DC gain of the controller compensation parameters by setting a resulting open loop gain equal to 1.0 at a frequency that gives a desired phase margin.
