Current detection circuits, switch circuits
The switch circuit improves current detection accuracy by using a 1:n resistance ratio and parasitic diodes to mitigate transistor variations, ensuring precise output current measurement and connection status determination.
Patent Information
- Application Number
- JP2020151117
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-09
- Publication Date
- 2024-10-03
- Estimated Expiration
- 2040-09-09
AI Technical Summary
Conventional high-side switch circuits face challenges in accurately detecting output current due to variations in transistor on-resistance, voltage dependence, and temperature dependence, leading to inaccurate current detection.
A switch circuit design incorporating a first and second switch element connected to a power supply, a third switch element in series with the output, a current amplifier, and parasitic diodes to prevent backflow, with a resistance ratio of 1:n between the first and second switch elements, allowing for accurate detection of output current through relative current measurement.
The proposed design enhances current detection accuracy by mitigating variations in transistor characteristics and preventing backflow, improving the determination of connection status between the power source and load.
Smart Images

Figure 0007560722000001 
Figure 0007560722000002 
Figure 0007560722000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a current detection circuit and a switch circuit. [Background technology]
[0002] Conventionally, a high-side switch circuit connected between a power supply and a load has been known. Fig. 5 is a diagram showing an example of a conventional high-side switch circuit. The high-side switch circuit 1 shown in Fig. 5 includes transistors M1 and M2, a logic circuit 2, and a current detection amplifier 3.
[0003] The transistors M1 and M2 are PMOS transistors and are connected in series between the VDD terminal and the OUT terminal. When the transistors M1 and M2 are turned on by the logic circuit 2, the high-side switch circuit 1 outputs the current supplied from the VDD terminal from the OUT terminal. The current output from the OUT terminal is supplied to a downstream load as the output current of the high-side switch circuit 1.
[0004] The back gates of the transistors M1 and M2 are connected to the connection point between the transistors M1 and M2, and the cathodes of the parasitic diodes D1 and D2 face each other. Therefore, in the high-side switch circuit 1, when the potential of the OUT terminal becomes higher than the potential of the VDD terminal due to a short to power or the like, the parasitic diode D1 of the transistor M1 prevents a reverse current flow.
[0005] Logic circuit 2 controls the on / off of transistors M1 and M2 based on a signal input from the CE terminal. Current detection amplifier 3 detects the current between the source and drain of transistor M1. Then, current detection amplifier 3 outputs the detected current from the I_OUT terminal as a detection current for detecting the output current output from the OUT terminal.
[0006] In the high-side switch circuit 1, by detecting the output current in this manner, the connection between the OUT terminal and the load in the subsequent stage of the OUT terminal is detected. [Prior art documents] [Patent documents]
[0007] [Patent Document 1] JP 2002-91584 A [Patent Document 2] JP 2006-50724 A Summary of the Invention [Problem to be solved by the invention]
[0008] In the above-mentioned conventional high-side switch circuit, it is difficult to detect the detection current with high accuracy because the on-resistance of the transistor varies, has voltage dependency, temperature dependency, etc. Therefore, in the conventional high-side switch circuit, it is difficult to detect the output current with high accuracy.
[0009] The disclosed technology has been made in consideration of the above circumstances, and aims to improve the accuracy of current detection. [Means for solving the problem]
[0010] The disclosed technology is a first switch element (M21) and a second switch element (M31) whose input side is connected to a power supply terminal (VDD); a third switch element (M11) connected in series with the first switch element and having an output side connected to an output terminal (Vout); a current amplifier (111) that detects a difference between an output voltage of the first switch element (M21) and an output voltage of the second switch element (M31) and outputs a relative current used to detect an output current output from the output terminal; 、 a reverse current prevention element connected in parallel with the first switch element and in a reverse direction with respect to the power supply terminal; a reverse current prevention element connected in parallel with the third switch element in a forward direction with respect to the power supply terminal; having a control unit of the first switch element (M21) and a control unit of the second switch element (M31) are connected, This is a current detection circuit, in which the resistance ratio of the first switch element (M21) and the second switch element (M31) is 1:n. Effect of the Invention
[0012] The accuracy of current detection can be improved. [Brief description of the drawings]
[0013] [Figure 1] FIG. 2 is a diagram illustrating a usage scene of the switch circuit according to the first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating a switch circuit according to the first embodiment. [Diagram 3] 11A and 11B are diagrams illustrating changes in output current and relative current during operation of the switch circuit. [Figure 4] FIG. 13 is a diagram illustrating a switch circuit according to a second embodiment. [Diagram 5] FIG. 1 is a diagram illustrating an example of a conventional high-side switch circuit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] First Embodiment A first embodiment will be described below with reference to the drawings. Fig. 1 is a diagram illustrating a usage scene of a switch circuit according to the first embodiment.
[0015] The switch circuit 100 of this embodiment is a high-side switch circuit built into an electronic device 10 connected between a power source 20 and a load 30.
[0016] The electronic device 10 is, for example, an in-vehicle electronic device such as a car navigation system. The power source 20 is, for example, a DC power source or a battery, and the load 30 is, for example, a GPS (Global Positioning System) antenna, a radio, a television, an in-vehicle camera, etc., connected to the electronic device 10.
[0017] The switch circuit 100 of this embodiment supplies a current supplied from the power source 20 to the load 30. Moreover, the switch circuit 100 of this embodiment detects a value of a current supplied from the power source 20 to the load 30, and detects a connection or disconnection between the electronic device 10 and the load 30 based on the detected current value. Furthermore, the switch circuit 100 prevents a reverse current flow from the load 30 to the power source 30.
[0018] 2 is a diagram illustrating a switch circuit according to the first embodiment. The switch circuit 100 according to the present embodiment includes a current detection circuit 110, a bias circuit 120, a logic circuit 130, a current limit circuit 140, a comparator (comparison circuit) 150, a transistor M11 (third switch element), a transistor M51, a VDD terminal (power supply terminal), a CE terminal, a GND terminal, a Vout terminal (output terminal), a Vs terminal, and an Err terminal.
[0019] In the switch circuit 100, the VDD terminal is connected to a power supply 20. The Vout terminal is connected to a load 30 in a subsequent stage of an electronic device 10 including the switch circuit 100. The CE terminal is connected to a higher-level circuit of the switch circuit 100 and receives various control signals. The GND terminal is grounded.
[0020] The Vs terminal is grounded via a resistor Rs. The resistor Rs is a resistor for detecting a relative current Iout' of the output current Iout output from the switch circuit 100, and the resistance value may be variable. In other words, the resistor Rs is a current-voltage conversion element.
[0021] The relative current Iout' is a current used to detect the output current Iout. The relationship between the relative current Iout' and the current Iout will be described later.
[0022] The Err terminal is connected to a CPU (Central Processing Unit) or the like, which is a higher-level circuit of the switch circuit 100. In addition, the Err terminal outputs an error signal indicating that the output current Iout has reached a threshold value to the higher-level circuit according to the detection result by the current detection circuit 110.
[0023] The current detection circuit 110 includes a current amplifier 111, a transistor M21 (first switch element), and a transistor M31 (second switch element). The current amplifier 111 includes a transistor M41 and an amplifier 112. Each transistor included in the switch circuit 100 of this embodiment is a MOS transistor (switch element).
[0024] In the current detection circuit 110, the input sides of the transistors M21 and M31 are connected to the VDD terminal, the gate which is the control section of the transistor M21 is connected to the gate which is the control section of the transistor M31, and the transistors M21 and M31 are turned on / off in synchronization.
[0025] Moreover, the transistor M31 of this embodiment has the same structure as the transistor M21, but is obtained by reducing the size of the transistor M21 to 1 / n.
[0026] The output side of the transistor M21 is connected to the input side of the transistor M11. In the following description, the connection point between the output side of the transistor M21 and the input side of the transistor M11 is referred to as connection point Pa, and the voltage at connection point Pa is referred to as voltage Va.
[0027] In addition, the back gates of the transistors M21 and M11 are connected to a connection point Pa between the transistors M21 and M11, and a parasitic diode connected in the reverse direction to the VDD terminal exists in parallel with the transistor M21. In addition, a parasitic diode connected in the forward direction to the VDD terminal exists in parallel with the transistor M11. The cathodes of the parasitic diode of the transistor M21 and the parasitic diode of the transistor M11 face each other. Therefore, in the switch circuit 100, when the potential of the Vout terminal becomes higher than the potential of the VDD terminal due to a power short or the like, the parasitic diode of the transistor M21 prevents a reverse current flow.
[0028] The input side of the transistor M21 is connected to the VDD terminal, the input side of the transistor M31, and the bias circuit 120. In addition, the output side of the transistor M11 is connected to the Vout terminal.
[0029] The output side of the transistor M31 is connected to the input side of the transistor M41. In the following description, the connection point between the output side of the transistor M31 and the input side of the transistor M41 is referred to as a connection point Pb, and the voltage at the connection point Pb is referred to as a voltage Vb.
[0030] In addition, the back gates of the transistors M31 and M41 are connected to the connection point Pb, and a parasitic diode connected in the reverse direction to the VDD terminal exists in parallel with the transistor M31. In addition, a parasitic diode connected in the forward direction to the VDD terminal exists in parallel with the transistor M41. The cathodes of the parasitic diode of the transistor M31 and the parasitic diode of the transistor M41 face each other. Therefore, in the switch circuit 100, when the potential of the Vs terminal becomes higher than the potential of the VDD terminal due to a power short or the like, the parasitic diode of the transistor M31 prevents a reverse current from flowing from the Vs terminal to the VDD terminal.
[0031] In other words, the parasitic diode of the transistor M21 and the parasitic diode of the transistor M31 in this embodiment are reverse current prevention elements.
[0032] In the current amplifier 111, the amplifier 112 has a non-inverting input terminal connected to the connection point Pa, an inverting input terminal connected to the connection point Pb, and an output terminal connected to the gate of the transistor M41. The current amplifier 111 detects the difference between the output voltage of the transistor M21 and the output voltage of the transistor M31, and outputs a relative current Iout'. In other words, the current amplifier 111 outputs a relative current Iout' according to the difference between the on-resistance of the transistor M21 and the on-resistance of the transistor M31.
[0033] The output side of the transistor M41 is connected to the non-inverting input terminal and the Vs terminal of the comparator 150. The inverting input terminal of the comparator 150 is connected to a reference voltage Vref. The output terminal of the comparator 150 is connected to the transistor M51. The transistor M51 is connected between the ground and the Err terminal.
[0034] The bias circuit 120 is connected to a VDD terminal, a CE terminal, and the logic circuit 130. The bias circuit 120 generates a bias to be supplied to the logic circuit 130 from the power supply voltage supplied from the VDD terminal based on a control signal input from the CE terminal, and supplies the bias to the logic circuit 130. The bias circuit 120 also outputs a control signal input from the CE terminal to the logic circuit 130. Although not shown in FIG. 2, the bias circuit 120 also supplies a bias to circuits in the switch circuit 100 other than the logic circuit 130.
[0035] The logic circuit 130 is connected to the bias circuit 120, the gate of the transistor M11, the gate of the transistor M21, the gate of the transistor M31, and the current limit circuit 140.
[0036] The logic circuit 130 outputs a high level (hereinafter, H level) or low level (hereinafter, L level) signal to each gate of the transistors M11, M21, and M31 in response to a signal input from the bias circuit 120, thereby controlling the on / off of the transistors M11, M21, and M31. Therefore, each gate of the transistors M11, M21, and M31 can be said to be a control unit that controls the output of the output current Iout from the VDD terminal.
[0037] The current limit circuit 140 limits the current value in response to the signal output from the logic circuit 130 so that the value of the current Iout does not exceed an upper limit value determined in accordance with the load 30 .
[0038] Next, the relationship between the relative current Iout' and the output current Iout in this embodiment will be described. In this embodiment, the transistor M31 is a transistor M21 scaled down to 1 / n. In addition, in the current amplifier 111, the voltage Va becomes equal to the voltage Vb due to the feedback operation.
[0039] Therefore, the relationship between the relative current Iout' and the output current Iout is expressed as follows: R21 is the on-resistance of the transistor M21, and R31 is the on-resistance of the transistor M31.
[0040] Iout×R21=Iout′×R31 Iout′=(R21 / R31)×Iout Equation (1) Here, since the transistor M31 is a transistor M21 reduced in size by 1 / n, the formula (1) becomes the following formula (2).
[0041] R21 = R31 × n Iout′=(1 / n)×Iout Equation (2) Therefore, in this embodiment, the value of the output current Iout can be detected as the relative current Iout' from the relative ratio between transistor M21 and transistor M31, and the variations, voltage dependence, and temperature characteristics of each transistor can be ignored.
[0042] Therefore, according to this embodiment, it is possible to improve the detection accuracy of the output current Iout using the relative current Iout' while preventing the backflow of current from the load 30 side.
[0043] Next, the operation of the switch circuit 100 of this embodiment will be described. In this embodiment, when the logic circuit 130 turns on the transistors M11, M21, and M31, the VDD terminal and the Vout terminal are connected to each other. Then, in the switch circuit 100, an output current Iout corresponding to the power supply voltage Vin is output from the Vout terminal.
[0044] Furthermore, in the switch circuit 100, a relative current Iout' corresponding to the power supply voltage Vin is output from the Vs terminal.
[0045] Here, in the switch circuit 100 of this embodiment, when the value of the output current Iout becomes equal to or less than a threshold based on the value of the relative current Iout', this is detected and an error signal is output to a higher-level circuit. The value of the output current Iout becomes equal to or less than the threshold when, for example, the connection between the Vout terminal and the load 30 is interrupted. In other words, the value of the output current Iout becomes equal to or less than the threshold when, for example, the connection between the power source 20 and the load 30 is interrupted.
[0046] In this embodiment, when the value of the output current Iout decreases, the value of the relative current Iout' also decreases. In this embodiment, the comparator 150 compares the voltage of the Vs terminal with the reference voltage Vref, and outputs the result to the gate of the transistor M51.
[0047] The voltage of the Vs terminal is determined based on the relative current Iout' and the resistance Rs. When the voltage of the Vs terminal is higher than the reference voltage Vref, the comparator 150 outputs an H-level signal to the gate of the transistor M51. In this case, the transistor M51 is in the off state, so no signal is output from the Err terminal.
[0048] Furthermore, when the value of the relative current Iout' becomes small and the voltage of the Vs terminal becomes lower than the reference voltage Vref, the comparator 150 outputs an L-level signal to the gate of the transistor M51. In this case, the transistor M51 is turned on, and an error signal is output from the Err terminal to the upper circuit.
[0049] In this embodiment, the detection accuracy of the output current Iout can be improved, and therefore the accuracy of determining whether the output current Iout is equal to or lower than the threshold value can also be improved. Therefore, in this embodiment, the accuracy of detecting whether the connection between the power source 20 and the load 30 has been interrupted can be improved.
[0050] The logic for comparing the voltage at the Vs terminal with the reference voltage Vref and outputting an error signal from the Err terminal is not limited to the above embodiment, but can be set as appropriate.
[0051] FIG. 3 is a diagram showing changes in the output current Iout and the relative current Iout' when the switch circuit is in operation.
[0052] In each of the graph 31 shown in FIG. 3(A) and the graph 32 shown in FIG. 3(B), the vertical axis represents the power supply voltage Vin, and the horizontal axis represents the output current Iout.
[0053] A straight line 311 in the graph 31 indicates the voltages Va and Vb at the connection points Pa and Pb, and a straight line 312 indicates the output voltage Vout at the Vout terminal. A straight line 321 in the graph 32 indicates the voltage Vs at the Vs terminal.
[0054] It can be seen from lines 311 and 312 of graph 31 that the voltages Va, Vb and the output voltage Vout each drop more as the output current Iout increases due to the influence of the on-resistance of transistor M21 and the on-resistance of transistor M11.
[0055] Also, it can be seen from the straight line 321 of the graph 32 that the voltage Vs increases as the output current Iout increases. This is because, as the output current Iout increases, the relative current Iout' also increases.
[0056] As described above, according to this embodiment, it is possible to improve the detection accuracy of the output current Iout using the relative current Iout'.
[0057] Furthermore, in this embodiment, the sizes of the transistors M31 and M41 can be reduced, and the chip area of the switch circuit 100 can be reduced.
[0058] In addition, in this embodiment, the current value that is the threshold for detecting disconnection of the connection between the VDD terminal and the load can be changed according to the resistance Rs. Therefore, in this embodiment, the threshold of the output current Iout can be changed by only the switch circuit 100 without using an A / D converter or the like.
[0059] In addition, in this embodiment, when determining whether the connection between the VDD terminal and the load is interrupted, the relative current Iout' is converted into a voltage by the external resistor Rs and the determination is made using the comparator 150, thereby improving the accuracy of the determination.
[0060] Second Embodiment The second embodiment will be described below with reference to the drawings. The second embodiment differs from the first embodiment in that the relative current Iout' is generated using two transistors. Therefore, in the following description of the second embodiment, the differences from the first embodiment will be described, and the same reference numerals as in the description of the first embodiment will be given to components having the same functional configuration as the first embodiment, and the description thereof will be omitted.
[0061] 4 is a diagram illustrating a switch circuit according to the second embodiment. The switch circuit 100A of the present embodiment includes a current detection circuit 110A, a bias circuit 120, a logic circuit 130, a current limit circuit 140, a comparator 150, a transistor M51, a VDD terminal, a CE terminal, a GND terminal, a Vout terminal, a Vs terminal, and an Err terminal.
[0062] The current detection circuit 110A of this embodiment includes a current amplifier 111 and transistors M11, M21, M31, and M61. The transistor M61 (fourth switch element) of this embodiment has the same structure as the transistor M11, and is a transistor scaled down to 1 / m. In addition, a parasitic diode is connected in parallel with the transistor M61 in the forward direction with respect to the VDD terminal.
[0063] That is, the current detection circuit 110A of this embodiment includes a transistor M11 and a transistor M61 that is 1 / m the size of the transistor M11. The gate that is the control portion of the transistor M61 is connected to the gate that is the control portion of the transistor M11, and the transistors M11 and M61 are turned on / off in synchronization. The logic circuit 130 outputs an H-level or L-level signal to each of the gates of the transistors M11, M21, M31, and M61 to control the on / off of the transistors M11, M21, M31, and M61.
[0064] The input side of the transistor M61 is connected to the output side of the transistor M31, and the output side of the transistor M61 is connected to the input side of the transistor M41. In the following description of this embodiment, the connection point between the output side of the transistor M61 and the input side of the transistor M41 is called a connection point Pb', and the voltage at the connection point Pb' is called a voltage Vb'. R61 is the on-resistance of the transistor M61.
[0065] In the current detection circuit 110A shown in FIG. 4, the voltages Va' and Vb' are greater than those in the first embodiment by the amount of the on-resistance of the transistor M11 and the transistor M61.
[0066] In the current detection circuit 110 shown in FIG. 2, the voltages Va and Vb are VDD-Va=VDD-Vb Va=Vb and R21×Iout=R31×Iout' It becomes.
[0067] On the other hand, in the current detection circuit 110A shown in FIG. 4, the voltages Va' and Vb' are expressed as follows: VDD-Va'=VDD-Vb' Va'=Vb' and (R21+R11)×Iout=(R31+R61)×Iout' It becomes.
[0068] As a result, even if Iout' is the same, in the current detection circuit 110A shown in Fig. 4, the voltages Va' and Vb' are larger than the voltages Va and Vb of the current detection circuit 110 shown in Fig. 2, and therefore the relative accuracy is improved. In other words, the influence of the offset of the current detection circuit, etc. can be reduced.
[0069] For example, if the transistors M21 and M11 are the same size, the transistors M31 and M61 will also be the same size. Therefore, in this embodiment, in the path through which the relative current Iout' flows, the on-resistance is about twice as high as in the first embodiment, and the voltages Va' and Vb' are also about twice as high. Note that the transistors M21 and M11 do not have to be the same size.
[0070] In addition, in this embodiment, the transistor M61 is a transistor M11 scaled down to 1 / m, and the transistor M31 is a transistor M21 scaled down to 1 / n, but is not limited to this. The transistor M61 and the transistor M31 may be a transistor M11 and a transistor M21 scaled down to 1 / n, respectively.
[0071] In this manner, in this embodiment, by increasing the values of the voltages Va', Vb', it is possible to prevent a reverse current flow from the load 30 side and improve the detection accuracy of the output current Iout. [Explanation of symbols]
[0072] 100, 100A switch circuit, 110, 110A current detection circuit, 120 bias circuit, 130 logic circuit, 140 current limit circuit, 150 comparator, M11, M21, M31, M41, M51, M61 transistors
Claims
1. a first switch element and a second switch element, the input sides of which are connected to a power supply terminal; a third switch element connected in series with the first switch element and having an output side connected to an output terminal; a current amplifier that detects a difference between an output voltage of the first switch element and an output voltage of the second switch element and outputs a relative current used to detect an output current output from the output terminal; a reverse current prevention element connected in parallel with the first switch element and in a reverse direction with respect to the power supply terminal; a reverse current prevention element connected in parallel with the third switch element in a forward direction with respect to the power supply terminal, a control unit of the first switch element and a control unit of the second switch element are connected to each other; A current detection circuit, wherein a resistance ratio between the first switch element and the second switch element is 1:n.
2. 2. The current detection circuit according to claim 1, further comprising a current-voltage conversion element connected to an output of said current amplifier.
3. A current detection circuit according to claim 2; a comparison circuit for comparing the voltage converted by the current-voltage conversion element with a reference voltage.
4. 4. The switch circuit according to claim 3, wherein output and stop of a current from said output terminal are controlled by controlling voltages of control sections of said first switch element and said third switch element.
Citation Information
Patent Citations
Charge or discharge protective apparatus for secondary cell
JP1996237872A
Charge and discharge control circuit with detecting function of charging and discharging currents / and rechargeable power supply
JP1999069635A
Electrical equipment
JP2002091584A
Electric current detection circuit for bidirectional switch
JP2005164381A
Current-detecting circuit and switching power supply using the same
JP2006050724A
