# Compensation stabilizes linear regulators

Stable regulation of output voltage is an operational imperative of linear regulators. While this topic has been discussed in the past (Reference 1 and Reference 2 ), this article provides a practical, straightforward look at linear regulator regulation, stability, and compensation, including equations and illustrations, useful to design engineers of many different experience and education levels.

The five main types of linear regulators are the standard NPN, NPN pass transistor, PNP pass transistor, P-channel FET, and N-channel FET regulators. All linear regulators consist of three key elements:

• A pass element
• A band gap voltage reference
• An error amplifier

The output-voltage regulation of the linear regulator is achieved by feedback. Figure 1a illustrates the feedback concept using the PNP pass transistor regulator (Figure 1a, without the coupling transformer).

The resistor divider, error amplifier, and pass element of the PNP pass transistor regulator form a closed loop. The output voltage, VOUT , provides a feedback voltage through the resistor divider, VC = VOUT * R2 / (R1 + R2 ), to the non-inverting input of the error amplifier. The band gap reference output (VREF ) is a high-precision, fixed voltage that is tied to the inverting input of the error amplifier.

The error amplifier, essentially an op amp, then makes VC equal to VREF by sourcing a ground current to the base of the PNP transistor. The PNP transistor, in turn, supplies sufficient output current to keep VOUT at a certain value. A fraction of this value, VC , is equal to VREF . The regulated output voltage, therefore, is defined as (Equation 1 ):

VOUT = VREF x (1 + R1 /R2 )

This equation illustrates that the feedback is negative, and the adjustment of the output voltage resulting from the feedback is in opposite polarity to the “original” change to the output voltage. In real-life applications, sufficient negative feedback is required for closed loop stability.

For example, imagine that a small disturbance is introduced to the loop. The coupling of a small sinusoidal signal to the PNP pass transistor regulator through a transformer models this disturbance (Figure 1a ).

Click to Enlarge Image
Figure 1a: Closed Loop Phase Shift Model

Initially, the small signal has a value of ΔVA at point A, and a value of ΔVB at point B. The signal at point B then travels through the loop and eventually arrives at point A, with a value of ΔVB’. Although ΔVA and ΔVB ’ have the same magnitude (unity gain), there is a difference in phase (in degrees) between the two.

To simplify this analysis, assume that the error amplifier introduces a “perfect” negative feedback to the loop. That is, if there were only the error amplifier in the feedback loop, ΔVA would lag ΔVB ’ by -180 degrees (Figure 1b ).

Click to Enlarge Image
Figure 1b: Closed Loop Stability Map

However, because of the pass element’s built-in capacitance, it introduces a phase shift that reduces the perfect -180deg phase difference by a value between 0deg and -180deg (counter-clockwise, with -180deg as the starting point).

This brings us to the Bode plot , a simple yet effective tool that is widely used to analyze closed-loop stability. A Bode plot includes loop-gain and phase-shift curves. These curves track the movements of poles and zeros created by the impedances of the components that form the loop. The behaviors of the poles and zeros determine loop stability.

A pole decreases the loop gain slope by -20dB/decade at its pole frequency, fp . It also introduces a -90° phase shift (counter clockwise) from the frequency one decade below fp (fp /10) to the frequency one decade above fp (10fp ), with a -45deg phase shift at fp . Both loop gain slopes decrease and phase shifts are additive, meaning that each additional pole decreases the loop gain slope by another -20dB/decade, and increases the phase shift by an additional -90deg. An RC pair in low-pass filter configuration models a pole, with its fp defined as (Equation 2 ):

fp = 1/2πRC, expressed in Hz

A zero, on the other hand, increases the loop gain slope by +20dB/decade at its zero frequency (fz ). It also introduces a +90deg phase shift (clockwise) from the frequency one decade below fz (fz /10) to the frequency one decade above fz (10fz ), with a +45deg phase shift at fz . Loop gain slope increase and phase shift created by a zero are also additive. An RC pair in high-pass filter configuration with its fz shown by the following equation models a zero (Equation 3 ):

fz = 1/2πRC, expressed in Hz

In Figure 1a, the loop gain (A) of the closed loop is given as (Equation 4a ):

A = 20log(|ΔVA /ΔVB |), expressed in dB

The single most important stability indicator of a closed loop is phase margin, defined as the difference (in degrees) between -180deg and the total phase shift of the loop at the frequency where the loop gain is 0dB (unity gain – when ΔVA and ΔVB’ have the same magnitude). Phase margin is a positive number (clockwise) between 0deg and 180deg, and is expressed as (Equation 4b ):

Φ = 180deg + phase shift

*where phase shift is a negative number (counter clockwise) between 0deg and -180deg.

To keep the loop stable, the phase margin must be no less than 45deg (Figure 1b). If a 45deg phase margin cannot be achieved by the intrinsic architecture of the linear regulator, some form of compensation, either internal or external, is required.

To analyze the loop stability of linear regulators, we will start with the standard NPN regulator as an example. There are two poles in the standard NPN regulator: a dominant pole (PINT ), created by the intrinsic capacitance of the regulator, and a power pole (PPWR ), created by the pass element. PINT and PPWR occur at the following frequencies (Equation 5a ):

f(PINT ) = 1/2πRINT CINT

*where RINT and CINT are the regulator’s intrinsic resistance and capacitance (Equation 5b )

f(PPWR ) = 1/2πRPWR CPWR

*where RPWR and CPWR are the pass element’s resistance and capacitance

The NPN Darlington pair is in a common collector configuration, so its output impedance is very low (i.e., RPWR CPWR is very low). Therefore, PPWR occurs at a very high frequency (Equation 5b), whereas PINT occurs at a lower frequency because of the regulator’s relatively high capacitance (Equation 5a).

Still, PPWR can occur at a frequency below the 0dB crossover point, which may create a less-than-45deg phase margin. In this case, the loop becomes unstable, which creates a need for compensation (Figure 2 ).

Click to Enlarge Image
Figure 2: Standard NPN Regulator Bode Plot
(Uncompensated and Dominant Pole Compensation)

The standard NPN regulator employs an internal compensation scheme known as dominant pole compensation , achieved by adding intrinsic capacitance to the regulator. This additional capacitance moves PINT to an even lower frequency (Equation 5a) with no effect to PPWR , enabling it to occur at a frequency above the 0dB crossover point. The phase margin is now greater than 45deg, resulting in a stable loop. As such, the standard NPN regulator is stable without external compensation (Figure 2).

The NPN pass transistor regulator also has a dominant pole (PINT ) and a power pole (PPWR ). Like the standard NPN regulator, the NPN pass transistor is in a common-collector configuration with low output impedance. However, the NPN transistor is driven by a PNP transistor with high impedance. The net effect is that its output impedance, although high in comparison to other types of linear regulators, is not as high as that of the standard NPN regulator. Therefore, PPWR occurs at a frequency lower than of the standard NPN regulator, and usually below the 0dB crossover point. The result is a less than 45deg phase margin, where compensation is needed for loop stability (Figure 3 ).

Click to Enlarge Image
Figure 3: NPN Pass Transistor Regulator and N-channel FET Regulator Bode Plot
(Uncompensated and Output Cap Compensation, ESR Not Critical)

Because of the relatively low frequency of PPWR , the NPN pass transistor regulator cannot be stabilized by dominant-pole compensation alone. Instead, a zero must be placed between PINT and PPWR to increase the phase margin to at least 45deg (Figure 3). This is accomplished by using an external compensation method, such the addition of an output capacitor next to VOUT . The frequency of the added zero (ZCOMP ) is defined by (Equation 6 ):

f(ZCOMP ) = 1/(2π x ESR x COUT)

where ESR is Equivalent Series Resistance of the output capacitor.

Because PPWR of the NPN pass-transistor regulator still occurs at a higher frequency, output-capacitor selection is fairly easy. As long as f(ZCOMP ) is lower than f(PPWR ), COUT can be small, and ESR is not critical.

The PNP pass-transistor regulator, on the other hand, requires more careful selection of an output capacitor. Its pass element, the PNP transistor, is in a common emitter configuration, which exhibits high output impedance. This is important on two fronts:

• PPWR occurs at a frequency lower than in the NPN pass transistor regulator.
• The impedance of the load, created by load resistance and output capacitance, becomes a significant contributor to loop stability by adding another low-frequency load pole (PL ) to the Bode plot. The frequency of PL is expressed as (Equation 7 ):

f(PL ) = 1/(2π RLOAD COUT )

Typically, RLOAD and COUT are higher than the regulator’s intrinsic resistance (RINT ) and capacitance (CINT ), which makes PL occur at a frequency lower than f(PINT ). It is immediately obvious that the PNP pass-transistor regulator is not stable, even with dominant pole compensation (Figure 4a ).

Click to Enlarge Image
Figure 4a: PNP Pass Transistor Regulator and P-channel FET Regulator Bode Plot
(Uncompensated and Output Cap Compensation with Correct ESR Value)

A zero must be added to compensate for this instability. Again, this is accomplished by the addition of an output capacitor next to VOUT .

In this case, the placement location of the zero in the frequency space is critical, because it translates to a careful matching of the output capacitor’s capacitance and ESR.

The zero must occur somewhere between PINT and PPWR (Figure 4a). Because PPWR occurs at a relatively low frequency, the “space” between PINT and PPWR is narrow; hence, the choice of f(ZCOMP ) is narrow and is demonstrated as (Equation 8 ):

f(PINT ) < f(ZCOMP ) < f(PPWR )/10

This equation shows that ZCOMP must occur above f(PINT ), and at least one decade below f(PPWR ). This is because ZCOMP needs the full one decade above f(ZCOMP ) to fully realize its +90deg phase shift. As Equations 5a, 5b, 6, and 8 show, for loop stability at any given capacitance value, the ESR must satisfy the following (Equation 9 ):

RINT CINT > ESR > 10RPWR CPWR /COUT

If the ESR is either too high or too low, it is out of range.

The ESR is too high when the following condition exists (Equation 10 ):

ESR > RINT CINT /COUT

In this condition, ZCOMP occurs at a frequency below f(PINT ) (Figure 4b ).

Click to Enlarge Image
Figure 4b: PNP Pass Transistor Regulator and P-channel FET Regulator Bode Plot
(Uncompensated and Output Cap Compensation with High ESR Value)

Additionally because of the narrow space between PL and PINT , ZCOMP can be within one decade of f(PINT ). This prevents ZCOMP from realizing its full +90deg phase shift. As a result, the phase margin may not rise above 45deg and, hence, the loop is unstable.

On the other hand, ESR is too low when the following is true (Equation 11 ):

ESR < 10RPWR CPWR /COUT

Here, ZCOMP occurs within one decade below f(PPWR ), which prevents it from realizing its full +90deg phase shift (Figure 4c ).

Click to Enlarge Image
Figure 4c: PNP Pass Transistor Regulator and P-channel FET Regulator Bode Plot
(Uncompensated and Output Cap Compensation with Low ESR Value)

Therefore, the phase margin will not rise above 45deg, and the loop, again, is unstable.

The P-channel FET regulator has its pass element (the P-channel FET) in a common source configuration, similar to a PNP transistor in a common emitter configuration with relatively high output impedance. As such, the P-channel FET regulator has loop stability behavior similar to that of the PNP pass transistor regulator. The P-channel FET regulator, therefore, requires a carefully selected output capacitor to keep the loop stable (Figures 4a, 4b, and 4c).

Finally, the N-channel FET regulator has its pass element (the N-channel FET) in a common-drain configuration similar to an NPN transistor in a common-collector configuration. In reality, the N-channel FET regulator’s output impedance is not as low as that of the standard NPN regulator. Rather, it is comparable to that of the NPN pass-transistor regulator. There, the N-channel FET regulator exhibits similar loop stability behavior to the NPN pass-transistor regulator, which requires an output capacitor for compensation. However, in this case, the ESR of the output capacitor is not as critical (Figure 3).

In conclusion, the Bode plot is an effective tool for analyzing closed loop stability of linear regulators. Phase margin is the most important indicator of stability. If a greater-than-45deg phase margin cannot be achieved by the intrinsic architecture of the linear regulator, an internal or external compensation method, such as an output capacitor, can ensure closed loop stability. Table 1 summarizes the loop stability characteristics and compensation methods for each of type of linear regulator.

Click to Enlarge Image
Table1: Summary of loop stability characteristics and compensation methods

References:

1. “Linear Regulators: Theory of Operation and Compensation ,” Simpson, Chester, May 2000, National Semiconductor Application Note 1148
2. “The Art of Electronics ,” Horowitz, Paul and Hill, Winfield, Cambridge University Press, 2nd Edition (July 1989), Chapter 2 (Section 2.04), Chapter 3 (Section 3.08), Chapter 4 (sections 4.33, 4.34, 4.35)

Qi Deng is a Senior Product Marketing Engineer for Analog and Interface Product Division at Microchip Technology, Inc, www.microchip.com . Qi has over ten years of experience in the semiconductor and electronics industry, including time spent in engineering and management positions with Delphi Delco Electronics, General Electric Appliances, and National Semiconductor. He earned his Bachelor of Science in Physics degree from Peking University, his Masters of Science in Electrical Engineering (MSEE) degree from Purdue University, and his Master of Business Administration (MBA) degree from the University of Michigan. Qi is responsible for strategic marketing and product management for Microchip’s analog power management products.

## 1 comment on “Compensation stabilizes linear regulators”

1. oijsdoijfwoiejf
August 18, 2015

Another year of strong economic growth, improved employment and pent-up housing demand bodes well for most sellers in 2015, particularly in the Farm Belt and in energy-producing states such as Texas, North Dakota, Louisiana, Montana and Wyoming, and urban areas like Seattle, San Francisco, Los Angeles, Denver and Boston.

In fact, the National Association of Home Builders, or NAHB, predicts that the 2015 single-family home sector will outperform a strong 2014. There are cautions: Moody's predicts mortgage rates will rise from about 4 percent now to 6 percent by 2017.

Find the lowest mortgage rates

The recovery has yet to arrive in many states, reinforcing the notion that real estate growth is regional. No one can accurately predict when this real estate uptick will end or how hard, or soft, a landing it will make. In the meantime, let proven fundamentals, applied with a few modern wrinkles, rule the day. Here are 10 tips for 2015 to help the real estate process.

More On Real Estate:
6 must-do's before buying a home
How much house can you afford calculator
7 tips for picking a real estate agent 1
“real estate”
1. Do sweat the small (cheap) stuff, sellers
Little touches go a long way in the buyer's eye, starting logically with the entry. Trim bushes, wash walkways and change out trampled welcome mats. Inside, de-stink with candles and counter sprays, de-jam closets and de-clutter rooms, focusing keenly on kitchen counters. Hide scrub brushes and other fantasy-killing labor tools. Dust, wax, scrub toilets, wash windows, test and clean lights, put out fresh towels, winnow family mementos, harness or hide that avalanche of toys, remove prescription drugs from medicine cabinets and police the yard for “pet bombs.” It's time well-spent.

In a whirlwind house-hunting tour of several properties, buyers benefit by keeping a pro-and-con checklist of each home they visit. Otherwise, the features of several homes tend to blend together in a tired brain by day's end. Creating a rating scale of 1 to 10 also helps, as does carrying a checklist of specific features that you seek in an ideal home.

3. Sell by season
Though spring is optimal, home selling is a year-round sport. Use seasonal accents to make buyers linger longer.

Many lenders have different rates on their own websites than those posted on Bankrate.com. In order to get the Bankrate.com rate, please identify yourself as a Bankrate customer. Rates are subject to change without notice and may vary branch to branch. These quotes are from banks, and thrifts, some of whom have paid for a link to their own Web site where you can find additional information. More information.
5. 'Big data' is everywhere, so tap in
While local knowledge and old-school networking will always be valuable, the latest technology lets agents offer much more. Some agencies offer “livability” ratings by ranking and contrasting neighborhoods by air quality, traffic choke points and specific data on a home's energy efficiency. In 2013, the National Association of Realtors introduced its Predictive Analytics group. Banks already use “big data” to gauge the worth of foreclosures and short sales, and mobile apps now offer it for consumer and agent use. Ask agents if they offer this and other edgy technology such as high-definition aerial footage shot by drones. Should your grandiose home merit that, go big!

6. Transparency equals trust
Buyers will certainly enlist inspectors to twice-over your home, Mr. Seller. So instead of inviting disappointment, delay and distrust, go transparent with your own presale inspection. It's far better to know now about issues with the plumbing, HVAC (heating, ventilating and air conditioning), foundation, electrical systems and roof. Provide the buyer a copy of the inspection along with repair receipts, and explain if or how you've adjusted your price accordingly. Buyers appreciate candor.

7. Math versus ego
Too often, buyers get caught up in win-at-all-costs negotiation. They'll stubbornly let as little as a few grand lock them out of the right house. At an interest rate of 4.5 percent, the difference between paying \$200,000 and \$195,000 — assuming 1.25 percent property tax and 15 percent down — is only about \$25 per month on a 30-year mortgage, or about the cost of lunch for two at a fast-casual eatery, before the tip. Don't let that ruin your chances at your dream home.

8. Retain mineral rights
With so many giant natural-gas fields (shales) in play across the U.S. and new ones pending, homeowners should exercise “seller's market” clout to retain mineral rights. While that intent needn't even be mentioned in the sales contract in some states, it's always safest to note it, provided the buyer doesn't protest. Avoid that scenario by conveying those rights to a trustworthy relative or to an energy company buying them before putting the house on the block. “Mineral rights? Oh, so sorry, I no longer own them.”

9. Buying? Then cool it for a while
Refrain from making big capital purchases like a new car, opening new credit cards or amassing big chunks of other new debt before buying a home. These raise your debt-to-income ratio, which lenders examine to determine the mortgage amount you can afford. Also avoid moving large sums of money around, changing banks, changing jobs and becoming self-employed before buying a home.

10. The price is right
Trite, you say? Perhaps. But accurate home pricing from the outset never goes out of style because it sells homes. Some agents advise sellers to overprice because inventory is low. Others say go below market to spur a bidding war. Don't get caught up in pricing games.

This site uses Akismet to reduce spam. Learn how your comment data is processed.