Current generation circuit capable of realizing adaptive mode switching
By introducing an adaptive mode switching design into the current generation circuit, the problems of low sampling accuracy and high cost in the existing technology are solved, and high-precision current sampling and cost reduction in different sampling modes are achieved.
Patent Information
- Application Number
- CN202410641186.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-23
AI Technical Summary
The existing converter current sampling technology has the problems of low sampling accuracy and high circuit cost, especially in the two sampling modes of MOS tube on-resistance and external precision resistor.
A current generation circuit with adaptive mode switching is designed. Through the combination of the sampling and holding circuit and the current generation circuit, the required reference current is generated according to the input signal and different current sampling modes, thereby switching the sampling mode and improving the sampling accuracy. and reduce circuit costs.
Through adaptive mode switching, the current sampling accuracy is improved, the sampling circuit cost is reduced, the reference current generation in different sampling modes is adapted, and the sampling accuracy and cost-effectiveness of the system are improved.
Smart Images

Figure CN118534167A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of DC-DC converters, current sampling, etc., and in particular to a current generating circuit capable of adaptive mode switching. Background Art
[0002] At present, there are two main ways to sample converter current: inductor current sampling and MOS tube current sampling. MOS tube current sampling can be divided into sampling through MOS tube on-resistance and sampling through external precision resistors. In MOS tube side current sampling, a more popular approach is to use the resistance of the low-side MOS tube when it is turned on for current sampling. However, this on-resistance has temperature characteristics, and the reference current used for current detection needs to follow the change of the on-resistance, resulting in low sampling accuracy. The external precision resistor has lower requirements on the temperature characteristics of the reference current, which can achieve higher sampling accuracy, but increases the device cost.
[0003] In summary, the existing converter current sampling technology has technical problems such as low sampling accuracy and high circuit cost. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a current generating circuit capable of adaptive mode switching, so as to improve the current sampling accuracy and reduce the cost of the sampling circuit.
[0005] The current generating circuit capable of adaptive mode switching provided by the present invention comprises:
[0006] A sampling and holding circuit, used for performing level holding processing on the input signal ILIM in according to the input signal ILIM in and different current sampling modes, so as to output a control signal CtrlA, a control signal CtrlB and a control signal CtrlC;
[0007] A current generating circuit is electrically connected to the control signal output terminal of the sample-and-hold circuit, and is used to generate a required reference current according to the control signal CtrlA, the control signal CtrlB and the control signal CtrlC when the current sampling mode is an external precision resistor sampling mode or a low-side MOS tube on-resistance sampling mode.
[0008] Further, when the current sampling mode is the low-side MOS tube on-resistance sampling mode, the control signal CtrlA is locked to a high level, and the control signal CtrlB is locked to a low level.
[0009] Further, when the current sampling mode is the external precision resistor sampling mode, the control signal CtrlA is maintained at a low level, and the control signal CtrlB is maintained at a high level.
[0010] Further, when the current sampling mode is the low-side MOS tube on-resistance sampling mode, the sampling voltage of the input signal ILIM in is initially at a low level.
[0011] Further, when the current sampling mode is an external precision resistor sampling mode, the input signal ILIM in is a voltage signal on the external precision resistor.
[0012] Further, the sampling and holding circuit includes a Schmitt trigger I1, an inverter I2, a delay unit X1, an AND gate I5, a D flip-flop X2 and an inverter I7 which are connected in series in sequence; the input signal ILIM in is filtered by the Schmitt trigger I1, shaped by the inverter I2, and after delay processing by the delay unit X1, it is input together with the PWML signal into the AND gate I5 for AND logic operation, and then a pulse signal is generated and sent to the Clk input terminal of the D flip-flop X2; the D input terminal of the D flip-flop is connected to a high-level VDD signal, and the Reset input terminal is input with an enable signal EN. When the Clk input terminal receives a rising edge, the output terminal Q state is flipped, and the level output is switched from a low-level state to a high-level state, the output control signal CtrlA is locked to a high level, and the control signal CtrlB is locked to a low level through the inverter I7; the input signal ILIM in is filtered by the Schmitt trigger I1, shaped by the inverter I2, and then inverted and locked through the inverter I3 connected to the output terminal of the inverter I2, and the control signal CtrlC is output.
[0013] Further, the enable signal EN is input to the Reset input terminal of the D flip-flop through the inverter I6; the enable signal EN is at a high level and is locked to a low level through the inverter I6.
[0014] Further, the input signal ILIM in is a voltage signal on an external precision resistor with a small amplitude change, and the voltage signal on the external precision resistor with a small amplitude change indicates that the voltage signal on the external precision resistor is a signal that is insufficient to trigger the flip of the Schmitt trigger I1; the sampling and holding circuit includes a Schmitt trigger I1, an inverter I2, a delay unit X1, an AND gate I5, a D flip-flop X2 and an inverter I7 connected in series in sequence; the voltage signal on the external precision resistor is filtered by the Schmitt trigger I1, shaped by the inverter I2, and delayed by the delay unit X1, and then input together with the PWML signal into the AND gate I5 for AND logic operation, thereby generating a low-level signal to send To the Clk input of the D flip-flop X2; the D input of the D flip-flop is connected to a high-level VDD signal, and the Reset input is input with an enable signal EN. When the Clk input receives a rising edge, the output Q state is flipped, and the level output is switched from a high-level state to a low-level state. The output control signal CtrlA is locked to a low level, and the control signal CtrlB is locked to a high level through an inverter I7; the voltage signal on the external precision resistor is filtered through a Schmitt trigger I1, shaped by the inverter I2, and then inverted and locked through an inverter I3 connected to the output end of the inverter I2 to output a control signal CtrlC.
[0015] Further, the current generating circuit includes MOS tube M1, MOS tube M2, MOS tube M3, MOS tube M4, MOS tube M5, MOS tube M6, MOS tube M7, MOS tube M8, resistor R1, resistor R2, resistor R3, resistor R4, bias current source Ibias and operational amplifier U1; the gate of MOS tube M1 receives the control signal CtrlA, the drain is respectively connected to the positive electrode of the bias current source Ibias and the in-phase input terminal of the operational amplifier U1 through the resistor R1, the source is connected to the power supply VDD, and the negative electrode of the bias current source Ibias is grounded; the gate of MOS tube M2 receives the control signal CtrlB, the drain is respectively connected to the positive electrode of the bias current source Ibias and the in-phase input terminal of the operational amplifier U1 through the resistor R2, and the source is connected to the power supply VDD; the sources of MOS tube M3, MOS tube M4 and MOS tube M5 are respectively connected to the power supply VD D; the gate of the MOS tube M3 receives the control signal CtrlA, and the drain is respectively connected to the inverting input terminal of the operational amplifier U1 and the source of the MOS tube M6 through the resistor R3; the gate of the MOS tube M4 receives the control signal CtrlB, and the drain is respectively connected to the inverting input terminal of the operational amplifier U1 and the source of the MOS tube M6 through the resistor R4; the gate of the MOS tube M5 receives the enable signal EN, and the drain is connected to the signal output terminal of the operational amplifier U1; the signal output terminal of the operational amplifier U1 is connected to the gate of the MOS tube M6, the drain of the MOS tube M6 is commonly connected to the source of the MOS tube M7 and the source of the MOS tube M8, the gate of the source of the MOS tube M7 is connected to the output terminal of the NAND gate I4 of the sampling and holding circuit, the input terminal of the NAND gate I4 inputs the PWML signal and the input signal ILIM in filtered by the Schmitt trigger I1 of the sampling and holding circuit and shaped by the inverter I2, and the drain of the MOS tube M7 is grounded; the gate of the MOS tube M8 receives the control signal CtrlC, and the drain outputs the generated required reference current Ilimit.
[0016] Further, the bias current source Ibias provides a 5uA bias current.
[0017] Compared with the prior art, the present invention has the following beneficial effects:
[0018] The present invention provides a current generating circuit capable of adaptive mode switching, comprising a sampling and holding circuit and a current generating circuit. The sampling and holding circuit is used for performing level holding processing on the input signal ILIM in according to an input signal ILIM in and different current sampling modes, so as to output a control signal CtrlA, a control signal CtrlB and a control signal CtrlC. The current generating circuit is electrically connected to a control signal output end of the sampling and holding circuit, and is used for generating a required reference current according to the control signal CtrlA, the control signal CtrlB and the control signal CtrlC when the current sampling mode is an external precision resistor sampling mode or a low-side MOS tube on-resistance sampling mode, so as to adapt to different current sampling modes, improve the current sampling accuracy and reduce the sampling circuit cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their description are used to explain the present invention and do not constitute an improper limitation of the present invention. Some specific embodiments of the present invention will be described in detail in an exemplary and non-restrictive manner with reference to the drawings. The same reference numerals in the drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the drawings:
[0020] Figure 1 It is a circuit structure schematic diagram of a current generating circuit capable of adaptive mode switching according to an embodiment of the present invention;
[0021] Figure 2 1 is a schematic diagram of a circuit structure of a sampling and holding circuit according to an embodiment of the present invention;
[0022] Figure 3 The present invention is a schematic diagram of a circuit structure of a current generating circuit according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only an embodiment of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.
[0024] See also Figure 1-Figure 3 , an embodiment of the present invention provides a current generating circuit capable of adaptive mode switching, comprising:
[0025] A sampling and holding circuit, used for performing level holding processing on the input signal ILIM in according to the input signal ILIM in and different current sampling modes, so as to output a control signal CtrlA, a control signal CtrlB and a control signal CtrlC;
[0026] A current generating circuit is electrically connected to the control signal output terminal of the sample-and-hold circuit, and is used to generate a required reference current according to the control signal CtrlA, the control signal CtrlB and the control signal CtrlC when the current sampling mode is an external precision resistor sampling mode or a low-side MOS tube on-resistance sampling mode.
[0027] It should be noted that when the current sampling mode is the low-side MOS tube on-resistance sampling mode, the control signal CtrlA is locked to a high level and the control signal CtrlB is locked to a low level. When the current sampling mode is the external precision resistor sampling mode, the control signal CtrlA remains at a low level and the control signal CtrlB remains at a high level. When the current sampling mode is the low-side MOS tube on-resistance sampling mode, the sampling voltage initial state of the input signal ILIM in is a low level. When the current sampling mode is the external precision resistor sampling mode, the input signal ILIMin is the voltage signal on the external precision resistor.
[0028] In some preferred embodiments, when the current sampling mode is the low-side MOS tube on-resistance sampling mode, the sampling and holding circuit includes a Schmitt trigger I1, an inverter I2, a delay unit X1, an AND gate I5, a D flip-flop X2 and an inverter I7 connected in series in sequence; the input signal ILIM in is filtered by the Schmitt trigger I1, shaped by the inverter I2, and delayed by the delay unit X1, and then input together with the PWML signal into the AND gate I5 for AND logic operation, and then a pulse signal is generated and sent to the Clk input terminal of the D flip-flop X2; the D input terminal of the D flip-flop is connected to a high-level VDD signal, and the Reset input terminal inputs an enable signal EN. When the Clk input terminal receives a rising edge, the output terminal Q state is flipped, and the level output is switched from a low-level state to a high-level state, the output control signal CtrlA is locked to a high level, and the control signal CtrlB is locked to a low level through the inverter I7; the input signal ILIM in is filtered by Schmitt trigger I1, shaped by inverter I2, and then inverted and locked by inverter I3 connected to the output end of inverter I2 to output control signal CtrlC. Further, enable signal EN is input to the Reset input end of D flip-flop through inverter I6; enable signal EN is high level and locked to low level through inverter I6.
[0029] In some preferred embodiments, when the current sampling mode is an external precision resistor sampling mode, the input signal ILIM in is a voltage signal on an external precision resistor with a small amplitude change, and the voltage signal on the external precision resistor with a small amplitude change indicates that the voltage signal on the external precision resistor is a signal that is insufficient to trigger the Schmitt trigger I1 to flip; the sampling and holding circuit includes a Schmitt trigger I1, an inverter I2, a delay unit X1, an AND gate I5, a D flip-flop X2 and an inverter I7 connected in series in sequence; the voltage signal on the external precision resistor is filtered by the Schmitt trigger I1, shaped by the inverter I2, and delayed by the delay unit X1, and then input together with the PWML signal into the AND gate I5 for AND logic operation, thereby generating a low-level signal to send To the Clk input of the D flip-flop X2; the D input of the D flip-flop is connected to a high-level VDD signal, and the Reset input is input with an enable signal EN. When the Clk input receives a rising edge, the output Q state is flipped, and the level output is switched from a high-level state to a low-level state. The output control signal CtrlA is locked to a low level, and the control signal CtrlB is locked to a high level through an inverter I7; the voltage signal on the external precision resistor is filtered through a Schmitt trigger I1, shaped by the inverter I2, and then inverted and locked through an inverter I3 connected to the output end of the inverter I2 to output a control signal CtrlC.
[0030] In some preferred embodiments, the current generating circuit includes MOS tube M1, MOS tube M2, MOS tube M3, MOS tube M4, MOS tube M5, MOS tube M6, MOS tube M7, MOS tube M8, resistor R1, resistor R2, resistor R3, resistor R4, bias current source Ibias and operational amplifier U1; the gate of MOS tube M1 receives the control signal CtrlA, the drain is respectively connected to the positive electrode of the bias current source Ibias and the in-phase input terminal of the operational amplifier U1 through the resistor R1, the source is connected to the power supply VDD, and the negative electrode of the bias current source Ibias is grounded; the gate of MOS tube M2 receives the control signal CtrlB, the drain is respectively connected to the positive electrode of the bias current source Ibias and the in-phase input terminal of the operational amplifier U1 through the resistor R2, and the source is connected to the power supply VDD; the sources of MOS tube M3, MOS tube M4 and MOS tube M5 are respectively connected to the power supply VDD. The gate of the MOS tube M3 receives the control signal CtrlA, and the drain is respectively connected to the inverting input terminal of the operational amplifier U1 and the source of the MOS tube M6 through the resistor R3; the gate of the MOS tube M4 receives the control signal CtrlB, and the drain is respectively connected to the inverting input terminal of the operational amplifier U1 and the source of the MOS tube M6 through the resistor R4; the gate of the MOS tube M5 receives the enable signal EN, and the drain is connected to the signal output terminal of the operational amplifier U1; the signal output terminal of the operational amplifier U1 is connected to the gate of the MOS tube M6, the drain of the MOS tube M6 is commonly connected to the source of the MOS tube M7 and the source of the MOS tube M8, the gate of the source of the MOS tube M7 is connected to the output terminal of the NAND gate I4 of the sampling and holding circuit, the input terminal of the NAND gate I4 inputs the PWML signal and the input signal ILIM in filtered by the Schmitt trigger I1 of the sampling and holding circuit and shaped by the inverter I2, and the drain of the MOS tube M7 is grounded; the gate of the MOS tube M8 receives the control signal CtrlC, and the drain outputs the generated required reference current Ilimit. Further, the bias current source Ibias provides a 5uA bias current.
[0031] It should be noted that ILIM in is the sampled input signal. When the system is set to the low-side MOS tube on-resistance sampling mode, the initial state of the sampled voltage of the input signal ILIM in is low level. Once the first switching cycle of the system comes, the upper tube is turned on and the lower tube is turned off. At this time, the signal sampled by ILIM_in is the voltage of the system SW node. The switching signal generated by it is filtered by the Schmitt trigger I1, shaped by the inverter I2, and delayed by the delay unit X1. It is then subjected to an AND logic operation with the PWML signal, and then a pulse signal is generated and sent to the Clk input of the D flip-flop X2. The D input of the D flip-flop is connected to a high-level VDD signal, and the Reset input is low level after the enable signal EN is established. When the Clk input receives a rising edge, the output Q state is flipped, that is, it is switched from a low level state to a high level state. At this time, the output control signal CtrlA is locked to a high level, and CtrlB is locked to a low level through the inverter I7.
[0032] It should also be noted that when the system is set to the external precision resistor sampling mode, since the lower tube of the system is not turned on during sampling, the input signal ILIM in samples the voltage signal on the external precision resistor. The amplitude of the voltage signal changes slightly, which is not enough to trigger the Schmitt trigger I1 to flip. The signal after the above-mentioned filtering, shaping and delay is still at a low level after the AND operation with the PWML signal. At this time, the output control signal CtrlA remains at a low level, and CtrlB remains at a high level through the inverter I7. In this way, the detection and adaptive switching of the system working mode are realized.
[0033] It should also be noted that the required reference current Ilimit is the current output from the reference current output terminal, such as the current output from the drain of the MOS tube M8. The bias current source Ibias provides a 5uA bias current for the internal reference circuit of the system; after the enable signal EN is established, it is at a high level, and the pull-up lock on the output terminal of the operational amplifier U1 can be released. The control signals CtrlA and CtrlB are connected through an inverter and are a pair of complementary signals. When the system is set to the external precision resistor sampling mode, CtrlA is at a low level, MOS tubes M1 and MOS tubes M3 are turned on, and the control signal CtrlB is at a high level, and MOS tubes M2 and MOS tubes M4 are turned off. The following relationship is obtained from the circuit structure: (Formula ①), (Formula ②). Set the resistor R1 to 20 times the resistor R3. According to the virtual short and virtual break principle of the operational amplifier, Vp = Vn. Then, formulas ① and ② can be simplified to: Ibias*R1 = I_M6*R3, that is, The control signal CtrlC controls the M8 and M7 tubes according to the system working requirements to realize the outflow and discharge of the sampling current, so the required reference current Ilimit=I_M6=100uA at this time.
[0034] Similarly, when the system is set to the low-side MOS tube on-resistance sampling mode, CtrlA is high, M1 and M3 are off, CtrlB is low, M2 and M4 are on. Set the resistor R2 to 40 times the resistor R4. At this time, the required reference current The difference is that because the temperature characteristic of the on-resistance of the low-side MOS tube decreases with increasing temperature, the resistor R2 needs to use a negative temperature coefficient resistor so that the sampling current Ilimit can track its temperature characteristics and improve the sampling accuracy.
[0035] It should be generally explained that the system working mode is selected by the user as needed, and the sampling and holding circuit adaptively switches and locks the selected mode, which will generate control signals CtrlA, CtrlB, and CtrlC. The control signals CtrlA, CtrlB, and CtrlC control the current generating circuit to generate the reference current of the corresponding working mode, and use the reference current Ilimit as the sampling current to act on the sampling resistor, thereby realizing the system overcurrent protection, short circuit protection and other functions. Resistors R1, R2, R3, and R4 are proportional resistors, which can control the proportional current change. By selecting their temperature characteristics or superimposing the burning circuit, the precise generation of the sampling current is completed.
[0036] It should be pointed out that the above embodiments are only preferred specific implementation modes of the present invention, and the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. The protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A current generating circuit capable of adaptive mode switching, It is characterized in that include: A sampling and holding circuit, used for performing level holding processing on the input signal ILIMin according to the input signal ILIMin and different current sampling modes, so as to output a control signal CtrlA, a control signal CtrlB and a control signal CtrlC; A current generating circuit is electrically connected to the control signal output terminal of the sample-and-hold circuit, and is used to generate a required reference current according to the control signal CtrlA, the control signal CtrlB and the control signal CtrlC when the current sampling mode is an external precision resistor sampling mode or a low-side MOS tube on-resistance sampling mode.
2. The current generating circuit capable of adaptive mode switching according to claim 1, It is characterized in that When the current sampling mode is the low-side MOS tube on-resistance sampling mode, the control signal CtrlA is locked to a high level, and the control signal CtrlB is locked to a low level.
3. The current generating circuit capable of adaptive mode switching according to claim 1, It is characterized in that When the current sampling mode is the external precision resistor sampling mode, the control signal CtrlA is maintained at a low level, and the control signal CtrlB is maintained at a high level.
4. The current generating circuit capable of adaptive mode switching as claimed in claim 2, It is characterized in that When the current sampling mode is the low-side MOS tube on-resistance sampling mode, the sampling voltage of the input signal ILIM in is initially at a low level.
5. The current generating circuit capable of adaptive mode switching as claimed in claim 3, It is characterized in that When the current sampling mode is an external precision resistor sampling mode, the input signal ILIM in is a voltage signal on the external precision resistor.
6. The current generating circuit capable of adaptive mode switching as claimed in claim 2, It is characterized in that The sampling and holding circuit comprises a Schmitt trigger I1, an inverter I2, a delay unit X1, an AND gate I5, a D flip-flop X2 and an inverter I7 which are connected in series in sequence; the input signal ILIMin is filtered by the Schmitt trigger I1, shaped by the inverter I2, and after delay processing by the delay unit X1, it is input together with the PWML signal into the AND gate I5 for AND logic operation, and then a pulse signal is generated and sent to the Clk input terminal of the D flip-flop X2; the D input terminal of the D flip-flop is connected to a high-level VDD signal, and the Reset input terminal is input with an enable signal EN. When the Clk input terminal receives a rising edge, the output terminal Q state is reversed, and the level output is switched from a low-level state to a high-level state, the output control signal CtrlA is locked to a high level, and the control signal CtrlB is locked to a low level through the inverter I7; the input signal ILIMin is filtered by the Schmitt trigger I1, shaped by the inverter I2, and then inverted and locked through the inverter I3 connected to the output terminal of the inverter I2, and the control signal CtrlC is output.
7. The current generating circuit capable of adaptive mode switching according to claim 6, It is characterized in that The enable signal EN is input to the Reset input terminal of the D flip-flop through the inverter I6; the enable signal EN is at a high level and is locked to a low level through the inverter I6.
8. The current generating circuit capable of adaptive mode switching as claimed in claim 5, It is characterized in that The input signal ILIM in is a voltage signal on an external precision resistor with a small amplitude change, and the voltage signal on the external precision resistor with a small amplitude change indicates that the voltage signal on the external precision resistor is a signal that is insufficient to trigger the flip of the Schmitt trigger I1; the sampling and holding circuit includes a Schmitt trigger I1, an inverter I2, a delay unit X1, an AND gate I5, a D flip-flop X2 and an inverter I7 connected in series in sequence; the voltage signal on the external precision resistor is filtered by the Schmitt trigger I1, shaped by the inverter I2, and after delay processing by the delay unit X1, it is input together with the PWML signal into the AND gate I5 for AND logic operation, and then a low-level signal is generated and sent to the Clk input terminal of the D flip-flop X2; the D input terminal of the D flip-flop is connected to a high-level VDD signal, and the Reset input terminal is input with an enable signal EN. When the Clk input terminal receives a rising edge, the output terminal Q state flips, and the level output is switched from a high-level state to a low-level state, the output control signal CtrlA is locked to a low level, and the control signal CtrlB is transmitted through the inverter I 7 is locked to a high level; the voltage signal on the external precision resistor is filtered by the Schmitt trigger I1, shaped by the inverter I2, and then inverted and locked by the inverter I3 connected to the output end of the inverter I2 to output the control signal CtrlC.
9. The current generating circuit capable of adaptive mode switching according to any one of claims 1 to 8, It is characterized in that The current generating circuit includes MOS tube M1, MOS tube M2, MOS tube M3, MOS tube M4, MOS tube M5, MOS tube M6, MOS tube M7, MOS tube M8, resistor R1, resistor R2, resistor R3, resistor R4, bias current source Ibias and operational amplifier U1; the gate of MOS tube M1 receives control signal CtrlA, the drain is respectively connected to the positive electrode of bias current source Ibias and the in-phase input terminal of operational amplifier U1 through resistor R1, the source is connected to power supply VDD, and the negative electrode of bias current source Ibias is grounded; the gate of MOS tube M2 receives control signal CtrlB, the drain is respectively connected to the positive electrode of bias current source Ibias and the in-phase input terminal of operational amplifier U1 through resistor R2, and the source is connected to power supply VDD; the sources of MOS tube M3, MOS tube M4 and MOS tube M5 are respectively connected to power supply VDD; The gate of the MOS tube M3 receives the control signal CtrlA, and the drain is respectively connected to the inverting input terminal of the operational amplifier U1 and the source of the MOS tube M6 through the resistor R3; the gate of the MOS tube M4 receives the control signal CtrlB, and the drain is respectively connected to the inverting input terminal of the operational amplifier U1 and the source of the MOS tube M6 through the resistor R4; the gate of the MOS tube M5 receives the enable signal EN, and the drain is connected to the signal output terminal of the operational amplifier U1; the signal output terminal of the operational amplifier U1 is connected to the gate of the MOS tube M6, the drain of the MOS tube M6 is commonly connected to the source of the MOS tube M7 and the source of the MOS tube M8, the gate of the source of the MOS tube M7 is connected to the output terminal of the NAND gate I4 of the sampling and holding circuit, the input terminal of the NAND gate I4 inputs the PWML signal and the input signal ILIM in filtered by the Schmitt trigger I1 of the sampling and holding circuit and shaped by the inverter I2, and the drain of the MOS tube M7 is grounded; the gate of the MOS tube M8 receives the control signal CtrlC, and the drain outputs the generated required reference current Ilimit.
10. The current generating circuit capable of adaptive mode switching according to claim 9, It is characterized in that The bias current source Ibias provides 5uA bias current.
