Abstract:
There is provided a voltage regulator in which a ratio of a maximum current and a short circuit current is adjusted so that the maximum current is greatly increased and a short circuit current is made small. A first current limiting circuit for limiting a current value of an output voltage terminal is composed of P-channel MOS transistors ( 2, 4 ), an N-channel MOS transistor ( 3 ), and resistors ( 21  and  22 ). A second current limiting circuit for detecting a reduction in voltage of the output voltage terminal and limiting a current value of the output voltage terminal is composed of P-channel MOS transistors ( 2, 4 ), an N-channel MOS transistor ( 3 ), and resistors ( 20, 21,  and  22 ). By using these circuits, the maximum current can be greatly increased and the short circuit current can be reduced.

Description:
BACKGROUND OF THE INVENTION  
         [0001]    1. Field of the Invention  
           [0002]    The present invention relates to a circuit voltage regulator.  
           [0003]    2. Description of the Related Art  
           [0004]    [0004]FIG. 2 is a block diagram showing a configuration example of a conventional voltage regulator. A source terminal and a drain terminal of a P-channel MOS transistor  1  are connected in series between an input terminal  101  and an output terminal  103 . A gate terminal of the P-channel MOS transistor  1  is connected with an output terminal of a differential amplifying circuit  10 . Respective input terminals of the differential amplifying circuit  10  are connected with an output voltage terminal of a reference voltage source  11  and an output voltage terminal of a voltage dividing circuit  12 .  
           [0005]    The differential amplifying circuit  10  compares a voltage of the reference voltage source  11  with an output voltage of the voltage dividing circuit  12 , keeps the voltage of the output voltage terminal of the reference voltage source  11  and the voltage of the output voltage terminal of the voltage dividing circuit  12  to the same voltage, and controls a gate voltage of the P-channel MOS transistor  1  so as to keep a voltage of the output terminal  103  to be a predetermined value.  
           [0006]    In order to limit a current value in the case where the output terminal  103  of the voltage regulator is short-circuited and to prevent the P-channel MOS transistor  1  from overheating, a P-channel MOS transistor  2  having a gate terminal and a source terminal which are common to the gate terminal and the source terminal of the P-channel MOS transistor  1 , a resistor  21  inserted between the output terminal and the drain terminal of the P-channel MOS transistor  2 , a resistor  22  connected with the input terminal  101 , and an N-channel MOS transistor  3  in which the drain terminal is connected with the resistor  22  in series are provided. The output terminal  103  is connected with the drain terminal of the N-channel MOS transistor  3 . The gate terminal of the N-channel MOS transistor  3  is connected with the drain terminal of the P-channel MOS transistor  2 . A base terminal of the N-channel MOS transistor  3  is connected with a ground terminal  102 . The drain terminal of the N-channel MOS transistor  3  is connected with a gate terminal of a P-channel MOS transistor  4 . A source terminal of the P-channel MOS transistor  4  is connected with the input terminal  101 . The drain terminal of the P-channel MOS transistor  4  is connected with the gate terminal of the P-channel MOS transistor  1 .  
           [0007]    When a current flows into the P-channel MOS transistor  1 , a current flows into the P-channel MOS transistor  2  based on a ratio determined by a ratio of a channel length and a channel width with respect to the P-channel MOS transistor  1  and the P-channel MOS transistor  2 .  
           [0008]    A voltage between both ends of the resistor  21  is inputted to an invert circuit composed of the resistor  22  and the N-channel MOS transistor  3  and the output of the invert circuit is inputted to the gate of the P-channel MOS transistor  4  inserted between the gate and the source of the P-channel MOS transistor  1  so that the P-channel MOS transistor  4  is turned ON/OFF. Thus, a voltage between the gate and the source of the P-channel MOS transistor  1  can be adjusted so that a value of a current flowing into the output terminal  103  can be controlled to a specified value.  
           [0009]    Next, circuit operation will be described. If the output terminal  103  is short-circuited with the ground terminal  102 , a large current tends to flow into the P-channel MOS transistor  1 . At this time, a current which is determined by a ratio of a channel length and a channel width with respect to the P-channel MOS transistor  1  and the P-channel MOS transistor  2  flows into the P-channel MOS transistor  2 . The voltage between both ends of the resistor  21  is risen proportional to the current value. When the voltage exceeds a threshold voltage of the N-channel MOS transistor  3 , the N-channel MOS transistor  3  is turned ON and a voltage between the gate and the source of the P-channel MOS transistor  4  is increased. Thus, the P-channel MOS transistor  4  tends toward an ON state.  
           [0010]    If the P-channel MOS transistor  4  is shifted toward an ON state, a gate voltage of the P-channel MOS transistor  1  approaches a potential of the input terminal  101 . Thus, a voltage between the gate and the source of the P-channel MOS transistor  1  becomes smaller so that it is shifted toward an OFF state. By such operation, a current flowing into the P-channel MOS transistor  1  is limited and decreased.  
           [0011]    [0011]FIG. 3 shows a characteristic between an output current flowing into the output terminal  103  and an output current at this time. As shown in FIG. 3, the output current is reduced from a maximum current Im as the output voltage is reduced. Then, when the output voltage is zero, that is, the output terminal  103  is short-circuited with the ground terminal  102 , it becomes a current value of shirt circuit current Is. A mechanism by which this characteristic is realized is obtained due to the fact that a source potential of the N-channel MOS transistor  3  is different from a base potential so that a threshold voltage of the N-channel MOS transistor  3  is varied by a back gate effect. When the output voltage of the voltage regulator is reduced, the threshold voltage of the N-channel MOS transistor  3  becomes lower by a back gate effect.  
           [0012]    When the threshold voltage of the N-channel MOS transistor  3  becomes lower by a back gate effect, even if a current flowing into the resister  21  is small, the N-channel MOS transistor  3  is turned ON. Thus, a current flowing into the P-channel MOS transistor  1  becomes smaller. Accordingly, a characteristic as shown in FIG. 3 is obtained, which is expressed by a fixed straight line and subsequent turn-back slant line (for example, see patent reference 1).  
           [0013]    Patent Reference: JP 07-74976 B (FIGS. 1 and 3)  
           [0014]    The maximum current Im is a current used in a device connected with the output terminal  103 . Thus, it is required that this current is maximized. In addition, a short circuit current Is is a current produced at a time when the output terminal is short-circuited with the ground terminal. Thus, it is required that this current is minimized.  
           [0015]    However, according to the voltage regulator having the above configuration, a ratio of Im and Is is dependent on a back gate effect of the N-channel MOS transistor  3 . Thus, the ratio of the maximum current Im and the short circuit current Is of the voltage regulator can not be adjusted. Accordingly, there is a problem that the maximum current cannot be made large and the short circuit current cannot be made small.  
         SUMMARY OF THE INVENTION  
         [0016]    In order to solve the above-mentioned problem, according to a voltage regulator of the present invention, the configuration is used in which a resistance value for detecting an output current is changed by an output voltage and a limited current can be changed according to the output voltage.  
           [0017]    Therefore, according to the invention of the present application, there is provided a voltage regulator for controlling a current flowing into an output voltage terminal in accordance with an output voltage, comprising:  
           [0018]    a first MOS transistor having a first conductivity type in which a source terminal thereof is connected with an input voltage terminal and a drain terminal thereof is connected with the output voltage terminal;  
           [0019]    a differential amplifying circuit having two input terminals in which an output terminal thereof is connected with a gate terminal of the first MOS transistor;  
           [0020]    a first reference voltage source which is connected between one of the input terminals of the differential amplifying circuit and a ground terminal and in which an output terminal thereof is connected with the one input terminal of the differential amplifying circuit; and  
           [0021]    a voltage dividing circuit which is connected between the output voltage terminal and the ground terminal and in which an output voltage terminal thereof is connected with the other input terminal of the differential amplifying circuit.  
           [0022]    The voltage regulator of the present invention further comprises:  
           [0023]    a second MOS transistor having the first conductivity type in which a gate terminal and a source terminal thereof are connected with the gate terminal and the source terminal of the first MOS transistor, which are common to each other, respectively; and  
           [0024]    a first resistor connected between the output voltage terminal and a drain terminal of the second MOS transistor.  
           [0025]    The voltage regulator of the present invention further comprises:  
           [0026]    an MOS transistor having a second conductivity type in which a source terminal thereof is connected with the output voltage terminal, a gate terminal thereof is connected with the drain terminal of the second MOS transistor, and a base terminal thereof is connected with the ground terminal; and  
           [0027]    a second resistor connected between the input voltage terminal and a drain terminal of the MOS transistor having the second conductivity type.  
           [0028]    The voltage regulator of the present invention further comprises:  
           [0029]    a third MOS transistor having the first conductivity type in which a source terminal thereof is connected with the input voltage terminal, a gate terminal thereof is connected with the drain terminal of the MOS transistor having the second conductivity type, and a drain terminal thereof is connected with the gate terminal of the first MOS transistor;  
           [0030]    a third resistor connected between the first resistor and the output voltage terminal; and  
           [0031]    a fourth MOS transistor having the first conductivity type in which a drain terminal and a source terminal thereof are connected with the third resistor in parallel.  
           [0032]    Further, the voltage regulator of the present invention is characterized in that a voltage of a gate terminal of the fourth MOS transistor is a voltage lower than a specified output voltage.  
           [0033]    Further, there is provided a voltage regulator according to a first aspect of the present invention, characterized in that the gate terminal of the fourth MOS transistor is connected with the ground terminal.  
           [0034]    Further, there is provided a voltage regulator, characterized in that the gate terminal of the fourth MOS transistor is connected with the output terminal of the voltage dividing circuit.  
           [0035]    Further, there is provided a voltage regulator further comprising a second reference voltage source in which a reference voltage (V 1 ) lower than a specified output voltage is set, characterized in that the gate terminal of the fourth MOS transistor is connected with the second reference voltage source.  
           [0036]    Further, according to the invention of the present application, there is provided a voltage regulator for controlling a current flowing into an output voltage terminal in accordance with an output voltage, comprising a first MOS transistor having a first conductivity type in which a source terminal thereof is connected with an input voltage terminal and a drain terminal thereof is connected with the output voltage terminal.  
           [0037]    The voltage regulator of the present invention further comprises:  
           [0038]    a voltage dividing circuit connected between a ground terminal and the output voltage terminal;  
           [0039]    a reference voltage source;  
           [0040]    a differential amplifying circuit in which an output terminal thereof is connected with a gate terminal of the first MOS transistor and two input terminals thereof are connected with an output terminal of the reference voltage source and an output voltage terminal of the voltage dividing circuit, respectively;  
           [0041]    a first current limiting circuit for limiting a current value of the output voltage terminal; and  
           [0042]    a voltage detector for detecting a reduction in voltage of the output voltage terminal.  
           [0043]    The voltage regulator of the present invention is characterized by further comprising:  
           [0044]    a second current limiting circuit for limiting a current value of the output voltage terminal to a limited current value or smaller of the first current limiting circuit; and  
           [0045]    a switch element for switching from the first current limiting circuit to the second current limiting circuit when the voltage of the output voltage terminal which is detected by the voltage detector is a specified voltage or lower.  
           [0046]    Further, the second current limiting circuit includes:  
           [0047]    a second MOS transistor having the first conductivity type in which a source terminal and a gate terminal thereof are connected with the input voltage terminal and the output terminal of the differential amplifying circuit, respectively; and  
           [0048]    a third MOS transistor having the first conductivity type in which a source terminal, a drain terminal, and a base terminal thereof are connected with the input voltage terminal, the output terminal of the differential amplifying circuit, and the ground terminal, respectively.  
           [0049]    The second current limiting circuit further includes:  
           [0050]    an MOS transistor having a second conductivity type in which a source terminal, a gate terminal, and a drain terminal thereof are connected with the output voltage terminal, the drain terminal of the second MOS transistor, and a gate terminal of the third MOS transistor, respectively;  
           [0051]    first and third resistors connected in series between the drain terminal of the second MOS transistor and the output voltage terminal, the first resistor being connected with a drain terminal of the second MOS transistor; and  
           [0052]    a second resistor connected between the input voltage terminal and the gate terminal of the third MOS transistor.  
           [0053]    Further, the present invention is characterized in that the switch element is connected with the third resistor in series, and that the first current limiting circuit corresponds to the second current limiting circuit produced by short-circuiting the third resistor by the switch element.  
           [0054]    Further, the switch element includes a fourth MOS transistor having the first conductivity type. A drain terminal and a source terminal of the fourth MOS transistor are connected with the output voltage terminal and the first resistor, respectively. Further, the present invention is characterized in that:  
           [0055]    the voltage detector includes a voltage comparator and a reference voltage source;  
           [0056]    the reference voltage source is connected with the ground terminal;  
           [0057]    two input terminals of the voltage comparator are connected with the reference voltage source and the output voltage terminal, respectively; and  
           [0058]    an output terminal of the voltage comparator is connected with a gate terminal of the fourth MOS transistor.  
           [0059]    Further, a voltage regulator according to the present invention is characterized in that a base terminal of the MOS transistor having the second conductivity type is connected with the output voltage terminal.  
           [0060]    Further, a voltage regulator according to the present invention is characterized in that:  
           [0061]    the source terminal and the base terminal of the MOS transistor having the second conductivity type are connected with the ground terminal; and  
           [0062]    the first and third resistors are connected in series between the ground terminal and the drain terminal of the second MOS transistor.  
           [0063]    Further, according to the present invention, there is provided a voltage regulator, comprising:  
           [0064]    an input terminal to which an input voltage is applied;  
           [0065]    an output terminal from which an output voltage is outputted;  
           [0066]    a ground terminal;  
           [0067]    a voltage detecting circuit for outputting a voltage detection signal in response to a signal of the output terminal;  
           [0068]    a voltage dividing circuit for dividing a voltage between the output terminal and the ground terminal;  
           [0069]    a reference voltage source;  
           [0070]    a differential amplifying circuit for outputting a signal in response to an output of the voltage dividing circuit and an output of the reference voltage source; and  
           [0071]    a resistor circuit in which a resistance is changed in response to the voltage detection signal from the voltage detecting circuit.  
           [0072]    The voltage regulator of the present invention further comprises:  
           [0073]    a first current limiting circuit in which an input is connected with the input terminal and an output is connected with the resistor circuit and which is controlled in response to an output of the differential amplifying circuit, the resistor circuit being connected between the first current limiting circuit and the output terminal; and  
           [0074]    a second current limiting circuit in which an input is connected with the input terminal and an output is connected with the output terminal and which is controlled in response to the output of the differential amplifying circuit.  
           [0075]    Further, the voltage regulator of the present invention is characterized in that the resistor circuit includes:  
           [0076]    an invert circuit for outputting a signal in response to an output of the first current limiting circuit; and  
           [0077]    a switch element which is connected between the input terminal and the differential amplifying circuit and controlled in response to an output of the invert circuit. 
       
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0078]    In the accompanying drawings:  
         [0079]    [0079]FIG. 1 is a circuit block diagram showing a configuration example of a voltage regulator according to the present invention;  
         [0080]    [0080]FIG. 2 is a circuit block diagram showing a configuration example of a conventional voltage regulator;  
         [0081]    [0081]FIG. 3 shows a relationship between an output voltage and an output current in the conventional voltage regulator;  
         [0082]    [0082]FIG. 4 shows a relationship between an output voltage and an output current in the voltage regulator according to the present invention;  
         [0083]    [0083]FIG. 5 is a circuit block diagram showing a configuration example of the voltage regulator according to the present invention;  
         [0084]    [0084]FIG. 6 is a circuit block diagram showing a configuration example of the voltage regulator according to the present invention;  
         [0085]    [0085]FIG. 7 is a circuit block diagram showing a configuration example of the voltage regulator according to the present invention;  
         [0086]    [0086]FIG. 8 is a circuit block diagram showing a configuration example of the voltage regulator according to the present invention;  
         [0087]    [0087]FIG. 9 shows a relationship between an output voltage and an output current in the voltage regulator shown in FIG. 8;  
         [0088]    [0088]FIG. 10 is a circuit block diagram showing a configuration example of the voltage regulator according to the present invention;  
         [0089]    [0089]FIG. 11 is a circuit block diagram showing a configuration example of the voltage regulator according to the present invention;  
         [0090]    [0090]FIG. 12 is a circuit block diagram showing a configuration example of the voltage regulator according to the present invention; and  
         [0091]    [0091]FIG. 13 shows a relationship between an output voltage and an output current in the voltage regulators shown in FIGS. 11 and 12.  
     
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS  
       [0092]    Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a circuit block diagram showing a configuration example of a voltage regulator according to the present invention. The description related to the same portions as those in FIG. 2 is omitted here. Instead of the resistor  21 , a variable resistor  18  is connected between the P-channel MOS transistor  2  and an output terminal  103  in the conventional voltage regulator shown in FIG. 2.  
         [0093]    A voltage detector  13  detects a voltage of the output terminal  103  and outputs a control signal for controlling the variable resistor  18  when an output voltage becomes a specified voltage or higher.  
         [0094]    Hereinbelow, the operation of the voltage regulator of FIG. 1 is described with reference to FIG. 4 showing a relationship between an output voltage and an output current. When a load into which a current larger than a specified current flows is connected with the output terminal  103 , a large current tends to flow into the P-channel MOS transistor  1 . Thus, a current which is determined by a channel length and a channel width with respect to the P-channel MOS transistor  1  and the P-channel MOS transistor  2  flows into the P-channel MOS transistor  2 . Accordingly, an input voltage of an invert circuit  17  is risen proportional to the current value. When the voltage exceeds a threshold voltage of the invert circuit  17 , as in the conventional example shown in FIG. 2, a voltage between the gate and the source of the P-channel MOS transistor  1  becomes smaller so that it tends toward an OFF state. At this time, a voltage between the gate and the source of the N-channel MOS transistor  3  becomes  
         [0095]    (resistance value of variable resistor  18 )×(value of current flowing into P-channel MOS transistor  2 ).  
         [0096]    When the output terminal voltage of the voltage regulator is reduced, the voltage detector  13  detects that and changes a resistance value of the variable resistor  18 . At this time, when it is set such that the resistance value of the variable resistor  18  is increased as the output terminal voltage is reduced, if the output terminal voltage is reduced, even in the case of the same output current, a voltage between both ends of the variable resistor  18  is increased so that an input voltage of an invert circuit  17  is increased. Thus, a voltage between the gate and the source of the P-channel MOS transistor  4  is increased. Accordingly, a voltage between the gate and the source of the P-channel MOS transistor  1  becomes smaller so that the P-channel MOS transistor  1  further approaches an OFF state. As a result, a relationship between the output current and the output voltage has such a characteristic as shown in FIG. 4.  
         [0097]    [0097]FIG. 5 shows an embodiment of the configuration example shown in FIG. 1. Hereinafter, the embodiment shown in FIG. 5 will be described.  
         [0098]    The description related to the same portions as those in FIG. 2 is omitted here. A resistor  20  is connected between the resistor  21  and the output terminal  103 . The drain terminal and the source terminal of a P-channel MOS transistor  5  are connected with the resistor  20  in parallel. The gate terminal of the P-channel MOS transistor  5  is connected with the ground terminal  102 . The invert circuit  17  is composed of a resistor  22  and an N-channel MOS transistor  3 .  
         [0099]    When a load into which a current larger than a specified current flows is connected with the output terminal  103 , a large current tends to flow into the P-channel MOS transistor  1 . Thus, a current which is determined by a channel length and a channel width with respect to the P-channel MOS transistor  1  and the P-channel MOS transistor  2  flows into the P-channel MOS transistor  2 . Accordingly, a voltage between the gate and the source of the N-channel MOS transistor  3  is risen proportional to the current value. When the voltage exceeds a threshold voltage of the N-channel MOS transistor  3 , as in the conventional example shown in FIG. 2, a voltage between the gate and the source of the P-channel MOS transistor  1  becomes smaller so that it tends toward an OFF state. At this time, if the output voltage is equal to or larger than a threshold voltage of the P-channel MOS transistor  5 , the P-channel MOS transistor  5  is being turned ON.  
         [0100]    When the output voltage of the voltage regulator is reduced so that a voltage between the gate and the source of the P-channel MOS transistor  5  becomes lower, an ON resistance of the P-channel MOS transistor  5  is increased. Thus, even in the case of the same output current, a voltage between the gate and the source of the N-channel MOS transistor  3  is increased so that a voltage between the gate and the source of the P-channel MOS transistor  4  is increased. Accordingly, a voltage between the gate and the source of the P-channel MOS transistor  1  becomes smaller so that the P-channel MOS transistor  1  further approaches an OFF state. The load connected with the output terminal acts such that the P-channel MOS transistor  1  is further shifted toward an OFF state as the output voltage is reduced. As a result, a relationship between the output current and the output voltage has the characteristic as shown in FIG. 4.  
         [0101]    In the embodiment shown in FIG. 5, the gate terminal of the P-channel MOS transistor  5  may be connected with the output terminal of the voltage dividing circuit  12  as shown in FIG. 6. In addition, as shown in FIG. 7, the gate terminal of the P-channel MOS transistor  5  may be connected with a reference voltage source  15 . In either case, a voltage between the gate and the source of the P-channel MOS transistor  5  is reduced as a voltage of the output terminal  103  is reduced. Thus, a relationship between the output voltage and the output voltage has the characteristic as shown in FIG. 4.  
         [0102]    [0102]FIG. 8 is a circuit block diagram showing another configuration example of a voltage regulator according to the present invention. The description related to the same portions as those in FIG. 2 is omitted here. A resistor  20  is connected between the resistor  21  and the output terminal  103  in the conventional voltage regulator shown in FIG. 2, and a switch element  14  is connected with the resistor  20  in parallel.  
         [0103]    A voltage detector  13  detects a voltage of the output terminal  103  and outputs a control signal for turning OFF the switch element  14  when an output voltage becomes a specified voltage or lower. Hereinafter, the operation of the voltage regulator shown in FIG. 8 will be described together with the drawing indicating a relationship between an output voltage and an output current as shown in FIG. 9.  
         [0104]    When a load into which a current larger than a specified current flows is connected with the output terminal  103 , a large current tends to flow into the P-channel MOS transistor  1 . Thus, a current which is determined by a channel length and a channel width with respect to the P-channel MOS transistor  1  and the P-channel MOS transistor  2  flows into the P-channel MOS transistor  2 . Accordingly, a voltage between the gate and the source of the N-channel MOS transistor  3  is risen proportional to the current value. When the voltage exceeds a threshold voltage of the N-channel MOS transistor  3 , as in the conventional example shown in FIG. 2, a voltage between the gate and the source of the P-channel MOS transistor  1  becomes smaller so that it tends toward an OFF state. At this time, if the output voltage is equal to or larger than a detection voltage (A) of the voltage detector  13 , the switch element  14  is being turned ON.  
         [0105]    Therefore, a voltage between the gate and the source of the N-channel MOS transistor  3  becomes  
         [0106]    (resistance value of resistor  21 )×(value of current flowing into P-channel MOS transistor  2 ).  
         [0107]    When the output voltage of the voltage regulator is reduced and becomes equal to or lower than the detection voltage (A) of the voltage detector  13 , the voltage detector  13  detects that and turns OFF the switch element  14 .  
         [0108]    Therefore, a voltage between the gate and the source of the N-channel MOS transistor  3  becomes  
         [0109]    (resistance value of resistor  21 +resistance value of resistor  20 )×(value of current flowing into P-channel MOS transistor  2 ).  
         [0110]    Therefore, even in the case of the same output current, a voltage between both ends of the resistors  21  and  20  is increased so that a voltage between the gate and the source of the N-channel MOS transistor  3  is increased. Thus, a voltage between the gate and the source of the P-channel MOS transistor  4  is increased. Accordingly, a voltage between the gate and the source of the P-channel MOS transistor  1  becomes smaller so that the P-channel MOS transistor  1  further approaches an OFF state. As a result, a relationship between the output current and the output voltage has such a characteristic as shown in FIG. 9.  
         [0111]    [0111]FIG. 10 shows an embodiment of the configuration example shown in FIG. 8. In the voltage detector  13  shown in FIG. 1, one input of a voltage comparator  16  is used as the output terminal  103  and the other input is used as an output voltage terminal of a reference voltage source  15 . The output terminal of the voltage comparator  16  is connected with the gate terminal of the P-channel MOS transistor  5 . The source terminal, the base terminal, and the drain terminal of the P-channel MOS transistor  5  are connected with the resistor  20  in parallel.  
         [0112]    When a voltage of the output terminal  103  is reduced and becomes smaller than an output voltage of the reference voltage source  15 , a voltage between the gate and the source of the P-channel MOS transistor  5  becomes smaller so that the P-channel MOS transistor  5  is turned OFF. At this time, a voltage between the gate and the source of the N-channel MOS transistor  3  becomes larger. As a result, a current flowing into the P-channel MOS transistor  1  becomes smaller.  
         [0113]    At this time, in FIG. 8, the base terminal of the N-channel MOS transistor  3  is connected with the ground terminal  102 . However, it may be connected with the output terminal  103  as shown in FIG. 11. In addition, as shown in FIG. 12, the base terminal and the source terminal of the N-channel MOS transistor  3  may be connected with the ground terminal  102 .  
         [0114]    A relationship between an output voltage and an output current as shown in FIG. 13 will be described. In the cases of configuration examples as shown in FIGS. 11 and 12, a source potential and a base potential of the N-channel MOS transistor  3  are equal to each other so that there is no back gate effect in the N-channel MOS transistor  3 . Thus, when a current flowing into the resistor  21  becomes a certain current value or larger, the N-channel MOS transistor  3  is turned ON. Accordingly, the P-channel MOS transistor  1  is turned OFF, an output current is kept to be Im, and an output voltage is reduced until it is reduced to a detection voltage (A) of the voltage detector  13 . When the output voltage becomes the detection voltage (A) of the voltage detector  13 , it outputs the control signal for turning OFF the switch element  14  so that a voltage between the gate and the source of the N-channel MOS transistor  3  is risen, the P-channel MOS transistor  1  is being turned OFF, and the output current becomes Is. As a result, the characteristic as shown in FIG. 13 is obtained.  
         [0115]    According to the voltage regulator of the present invention, the configuration is used in which a resistance value for detecting an output current is changed and a limited current can be changed according to an output voltage. Thus, there is an effect that a short circuit current can be reduced with a state in which a maximum current is greatly increased.