I use a LM317 voltage regulator as a power source for a battery charger because we have frequent power interruptions. The problem arises when the electricity grid cuts out and I have a sealed lead acid battery connected to the output of the LM317. The input of the regulator goes to something like 11V, obviously coming from the battery even though there is no input voltage from the electricity grid. Obviously this is not a good or preferable state of affairs during power cuts. What efficient methods are there to deal with the LM317 during power cuts? I have checked many, many spec sheets and application notes and I have not seen this problem discussed. Any suggestions will be highly appreciated. There are ways to solve the symptoms like putting a diode between the LM317 and the battery. But this represents merely avoiding the symptom, not designing in a feature to fundamentally deal with misusing the LM317.
Last edited: