The invention is about discharge circuits. To be more specific, the invention is about a programmable quick discharge circuit and a method of discharging power.
In the application of a power supply, a circuit inside a voltage regulator is usually provided with a capacitor having huge capacitance, so as to obtain a nice load regulation rate and low ripple. However, when the power supply is powered off, the output capacitor is equivalent to a parallel huge capacitor, and thus the voltage of the capacitor drops quite slowly. As such, even if the power supply is powered off, the capacitor still continuously outputs a voltage for a long time until the power stored thereon is discharged. Therefore, when the power supply is powered on next time, a power-on reset circuit may not be successfully activated by a control chip inside the circuit due to that the voltage may still remain in the capacitor, thereby resulting in an operation error.
In order to discharge the power stored in the capacitor in the circuit inside the voltage regulator when the power supply is powered off, a capacitor discharge circuit is usually employed in the art. With the discharge circuit, once the voltage of the power supply is less than to a threshold voltage, the power stored in the capacitor in the circuit inside the voltage regulator can be discharged through the discharge circuit. However, the conventional discharge circuit only provides a predetermined threshold voltage, such that if the threshold voltage needs to be adjusted, transistors or resistors in the discharge circuit have to be replaced to satisfy the desired threshold voltage. This not only increases the cost, but also brings great inconvenience.
Accordingly, how to find a way to provide a programmable quick discharge circuit, which not only quickly discharges the power stored in the capacitor in the circuit inside the voltage regulator when an AC power source is powered off, but also allows a user to conveniently adjust the threshold voltage for activating the quick discharge circuit becomes the objective being pursued by persons skilled in the art.
Given abovementioned defects of the prior art, the present invention provides a programmable discharge circuit to conveniently adjust the threshold voltage for activating the quick discharge circuit.
In order to achieve abovementioned and other objectives, the present invention provides a programmable power discharge circuit, comprising: a programmable voltage controller, a detect circuit, and a discharge circuit. The programmable voltage controller selects and provides a threshold voltage by a voltage divider including a plurality of impedance components. The detect circuit detects a difference between the threshold voltage and a working voltage to decide whether the working voltage is discharged. The discharge circuit includes a MOS transistor and a resistor-capacitor (RC) circuit, and discharges the working voltage when the working voltage is less than the threshold voltage.
In an embodiment, the programmable voltage controller selects and provides a threshold voltage by a voltage divider including a plurality of impedance components.
The present invention also provides a method of discharging power, comprising: selecting a threshold voltage, detecting a difference between the threshold voltage and a working voltage, and discharging the working voltage when the working voltage is less than the threshold voltage.
The present invention can be more fully understood by reading the following detailed description of the preferred embodiments, with reference made to the accompanying drawings, wherein:
In the following, specific embodiments are provided to illustrate the detailed description of the present invention. Those skilled in the art can easily conceive the other advantages and effects of the present invention, based on the disclosure of the specification. The present invention can also be carried out or applied by other different embodiments.
As shown in
Typically, the voltage drop of one diode is about 0.7 volt, such that the number of the diode(s) can determine the threshold voltage Vr. For example, the threshold voltage determined by one diode is approximately VCC-0.7 volt, which should be higher than the threshold value determined by five diodes, which is approximately VCC-3.5 volt, since each diode provides a voltage drop. Also, it should be appreciated that the bits of the selector and corresponding number of the charging paths is not limited to three, and can be modified upon the actual need. In addition, the PMOS transistors employed herewith can be replaced with NMOS transistors and the NMOS transistor can also be replaced with PMOS transistor through a suitable modification, such modification is conceivable to persons skilled in the art and thus is omitted.
In an embodiment, the detect circuit includes two PMOS transistors Mp1 and Mp2, such that when the working voltage VCC is less than the selected threshold voltage Vr, the source of the transistor Mp2 provides a voltage sufficient to activate the discharge circuit 206.
The discharge circuit 206 includes a NMOS transistor Mn and a first RC circuit having an output capacitor Co coupled to an equivalent resistor. For example, as shown in
In an embodiment, the second RC circuit includes the reference capacitor Cr and a PMOS resistor Mr in parallel. Preferably, a RC constant of the first RC circuit, i.e., the resistance of the equivalent resistor coupled to the output capacitor Co times the capacitance of the output capacitor Co, is smaller than a RC constant of the second RC circuit, i.e., the equivalent resistance of the PMOS resistor Mr times the capacitance of the reference capacitor Cr. Therefore, when the working voltage VCC is less than the reference voltage Vr, the discharging speed of the second RC circuit is slower than the first RC circuit, so as to continuously provide a relatively high voltage to keep the discharge circuit 206 in activation.
The properties of electronic components such as transistors, resistors and capacitors can be selected by persons skilled in the art upon the actual need. For example, the switch transistors Ms1 to Ms3 and the PMOS transistor Mp1 may be PMOS transistors having a width/length (W/L) ratio of 10μ/0.5μ, the PMOS transistor Mp2 may have a W/L ratio of 0.3μ/5μ, the NMOS transistor Mn may have a W/L ratio of 1000μ/0.5μ, the output capacitor Co may be 10 μF, the reference capacitor Cr may be 5 μF, and the MOS resistor Mr may include at least two, such as six, serially connected PMOS transistors each having a W/L ratio of 0.3μ/20μ.
In addition, the dashed line in the simulation graph of
Accordingly, when the power supply normally provides power, the reference capacitor Cr is charged through the charging path determined by the bits D1 to D3 of the selector to reach the threshold voltage Vr, and the reference capacitor Cr is prevented from discharging. Also, when the power supply normally provides power, the NMOS transistor Mn is switched off to avoid consuming additional power. When the power supply is powered off, the working voltage VCC drops slowly, and once the working voltage VCC is less than the reference voltage Vr, the NMOS transistor Mn is switched on to activate the discharge circuit 406, so as to quickly discharge the working voltage VCC of the power supply until the working voltage VCC drops to 0 volt.
Accordingly, when the power supply normally provides power, the reference capacitor Cr is charged through the charging path determined by the bits D1 to D3 of the selector to reach the threshold voltage Vr, and the reference capacitor Cr is prevented from discharging. Also, when the power supply normally provides power, the NMOS transistor Mn is switched off to avoid consuming additional power. When the power supply is powered off, the working voltage VCC drops slowly, and once the working voltage VCC is less than the reference voltage Vr, the NMOS transistor Mn is switched on to activate the discharge circuit 506, so as to quickly discharge the working voltage VCC of the power supply until the working voltage VCC drops to 0 volt.
From the foregoing, the present invention provides a programmable quick discharge circuit and method thereof, which not only quickly discharge the power stored in the capacitor in the circuit inside the voltage regulator when an AC power source is powered off, but also allow a user to conveniently adjust the threshold voltage for activating the quick discharge circuit.
The above examples are only used to illustrate the principle of the present invention and the effect thereof, and should not be construed as to limit the present invention. The above examples can all be modified and altered by those skilled in the art, without departing from the spirit and scope of the present invention as defined in the following appended claims.
Number | Name | Date | Kind |
---|---|---|---|
5309399 | Murotani | May 1994 | A |
20130002209 | Voegele | Jan 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20160233688 A1 | Aug 2016 | US |