LM317: Ideal for Adjustable, High-Efficiency Three-Terminal Regulators

11 March 2024


Ⅰ. Introduction to LM317

Ⅱ. The function of LM317 adjustable voltage stabilized power supply voltage stabilizing circuit

Ⅲ. Soft-start circuit of LM317

Ⅳ. Minimum stable operating current of LM317

Ⅴ. Calculation of LM317 output voltage and selection of voltage regulating resistor

Ⅵ. Absolute maximum ratings of LM317

Ⅶ. Why does the output voltage of LM317 change with the input voltage?



LM317 is one of the most widely used power integrated circuits. It not only has the simplest form of a fixed three-terminal voltage regulator circuit, but also has the characteristics of adjustable output voltage. In addition, it also has the advantages of low noise, wide voltage regulation range, good voltage stabilization performance, and high ripple suppression ratio. In this article, we will discuss some key points related to LM317 so that you can have an in-depth understanding of this device. So let’s get started!



Ⅰ. Introduction to LM317


92aeb00cc7515bac222794bdd22cc388.png


The LM317 is a three-terminal adjustable positive voltage regulator IC from National Semiconductor. The LM317 has a wide output voltage range of 1.2V to 37V and a load current of up to 1.5A. Using the LM317 is very simple, requiring only two external resistors to set the desired output voltage. In addition, the LM317 offers better linearity and load regulation than standard fixed regulators, and a variety of protection circuits are integrated into the LM317 to ensure stable and reliable operation, including overload protection and safe zone protection. Normally, the LM317 does not require external capacitors, but if the connection from the input filter capacitor to the LM317 input is more than 6 inches (about 15 cm), external capacitors are recommended. The use of output capacitors also improves the transient response. If we use a filter capacitor on the adjustment side, we can obtain a ripple rejection ratio much higher than that of a standard three-terminal regulator.


The LM317 has several special uses. For example, by suspending the regulator at a higher voltage, the LM317 can regulate voltages up to several hundred volts, provided that the input or output voltage difference does not exceed its limits and that short circuits at the outputs are avoided. Additionally, we can connect the adjusting terminal to a programmable voltage for programmable power output functionality.


Alternatives and equivalents:

LM7905

LM7809

LM7912

LT1086



Ⅱ. The function of LM317 adjustable voltage stabilized power supply voltage stabilizing circuit


LM317 adjustable voltage regulator voltage regulator circuit is the main role of the input voltage is stably converted to the required output voltage, so as to provide a stable and reliable power supply for the circuit or device. Specifically, the role of the voltage regulator circuit is as follows:


1. Provide reliability: The design of voltage regulator circuits usually takes into account over-current protection, over-temperature protection, short-circuit protection and other functions to ensure the safe operation of circuits and equipment. These protection mechanisms ensure the reliability and stability of the regulated power supply in unexpected situations.


2. Adjust the output voltage: The voltage regulator circuit allows the user to adjust the output voltage as needed to suit different circuit requirements. By simply adjusting the potentiometer or resistor, the desired output voltage can be realized within a certain range.


3. Protect load devices: A voltage regulator circuit protects load devices from input voltage variations by stabilizing the output voltage. It can resist power fluctuations and noise interference and prevent damage to the load equipment caused by too high or too low voltage.


4. Provide stable voltage: The voltage regulator circuit is able to automatically adjust and stabilize the output voltage according to the changes of input voltage and load current through the feedback control mechanism. In this way, the voltage regulator circuit can provide constant output voltage under different load conditions to ensure the normal operation of the powered equipment.



Ⅲ. Soft-start circuit of LM317


The figure below shows a soft-start circuit built using LM317. At the moment of power-on, since the voltage on CE1 cannot change suddenly, Q1 is saturated and turned on through the bias effect of R1 and R2. This conduction state causes RP1 to be shorted, causing the adjustment terminal of the LM317 to ground. At this time, the output voltage of the power supply is 1.25V. As the charging time of C2 increases, the output voltage will gradually increase. The function of D1 is to quickly release the charge on C2 after the power is turned off to ensure that the soft start can be achieved normally when the power is turned on next time. In addition, it should be noted that if Q1 and R2 are not connected, but a large electrolytic capacitor is connected in parallel to both ends of RP1, the soft start effect can also be achieved.


afe40f659316ef1898f00a2baf6a771e.png



Ⅳ. Minimum stable operating current of LM317


c172c80e948cece8cbc7422453062ec3.png


The LM317 voltage regulator block has a minimum stable operating current, sometimes also called the minimum output current or minimum discharge current. Typically, the value of this minimum stable operating current is approximately 1.5mA. Due to differences in manufacturers and models of the LM317 voltage regulator block, the specific value of the minimum stable operating current may also be different, but it generally does not exceed 5mA. When the output current of the LM317 voltage regulator block is lower than its minimum stable operating current, it will not work properly. On the contrary, when the output current exceeds this threshold, the LM317 voltage regulator block can output a stable DC voltage.


When making a regulated power supply based on the LM317 voltage regulator block (as shown in the figure), be sure to pay attention to its minimum stable operating current. If this point is ignored, the following abnormal phenomena may occur in the regulated power supply we produce.



Ⅴ. Calculation of LM317 output voltage and selection of voltage regulating resistor


The output voltage Vout of LM317 is jointly determined by resistors R1 and RP1. The specific formula is Vout=1.25×(1+RP1/R1). Since there is a fixed voltage of 1.25V between the Vout terminal and the Adj terminal (adjustment terminal) of LM317, if the resistance of R1 remains unchanged, the current flowing through R1 will be a constant value. Since RP1 and R1 are connected in series, the output voltage can be changed by simply adjusting the resistance of RP1. It should be noted that the operating current of the internal circuit of LM317 is output from the Vout terminal, and this current is approximately 5mA. Therefore, the maximum resistance of R1 should not exceed 240Ω. If the value of R1 is too large, the operating current of the internal circuit of LM317 will not be fully output, which will cause the output voltage to be high and the stability to decrease. In practical applications, in order to obtain better performance, it is best to choose a metal film resistor with good temperature stability for R1. If the resistance temperature stability of R1 is not good, the output voltage of LM317 may drift.



Ⅵ. Absolute maximum ratings of LM317


3f474700284c0ad68ab2598f8e7a09f8.png



Ⅶ. Why does the output voltage of LM317 change with the input voltage?


The voltage drop across the LM317 is determined by its internal resistance and the amount of current flowing through it. The internal resistance of the LM317 is typically between 0.2 and 0.6 ohms, this value will vary depending on the manufacturer and the specific device. When current flows through LM317, a voltage drop will occur on its internal resistance, which will affect the output voltage. In addition, the input voltage of LM317 will also affect its output voltage. Specifically, as the input voltage increases, the voltage drop across the internal resistance will increase accordingly, resulting in a decrease in the output voltage. On the contrary, if the input voltage decreases, the voltage drop across the internal resistance will also decrease, causing the output voltage to increase. In addition to the input voltage, the LM317's output voltage is also affected by temperature changes. As the temperature increases, the internal resistance of the LM317 increases, which reduces its output voltage. On the contrary, when the temperature decreases, the internal resistance of LM317 will decrease, thereby increasing its output voltage.


The effect of input voltage changes on the output voltage of the LM317 can be minimized by two methods. The first method is to use a preconditioner. The pre-regulator is a voltage regulator located before the LM317. Its function is to provide a stable voltage to the input of the LM317. There are many types of preregulators, which can be linear regulators, switching regulators, or Zener diodes. By providing a regulated voltage to the LM317, the preregulator can effectively reduce voltage fluctuations at the input of the LM317. When selecting a preregulator, we need to make a reasonable match based on the input voltage range of the LM317 and the expected output voltage. The second method is to use a bypass capacitor. The bypass capacitor is connected between the input and output of the LM317 and acts as a low-pass filter. It can effectively filter out high-frequency noise and voltage changes, which will affect the output voltage of LM317. The bypass capacitor provides a low-impedance path for high-frequency signals, preventing voltage changes from acting directly on the LM317. When selecting the value of the bypass capacitor, we need to consider the ripple of the input voltage and the size of the output current. Typically, the typical value of the bypass capacitor is between 1uF and 10uF.




Frequently Asked Questions


1. Is LM317 an op amp?


LM 317 is three terminal adjustable positive voltage regulator and not an operational amplifier and the minimum output is 1.2 volts.


2. What is a LM317 used for?


The LM317 serves a wide variety of applications including local, on card regulation. This device can also be used to make a programmable output regulator, or by connecting a fixed resistor between the adjustment and output, the LM317 can be used as a precision current regulator.


3. Is LM317 an LDO?


The LM317 Low Dropout (LDO) Linear Voltage Regulator is an adjustable 3-terminal positive LDO voltage regulator capable of supplying in excess of 1.5 A over an output voltage range of 1.2 V to 37 V. This voltage regulator is exceptionally easy to use and requires only two external resistors to set the output voltage.


4. What is the difference between LM1117 and LM317?


The main difference is dropout voltage. It is 1.2V for the lm1117 and about 3V for the LM317, so it depends upon the supply voltage that powers the regulator as to which one you can use. The LM1117 would require a minimum of 4.5V supply voltage (allowing operation from a standard 5V supply).