Capacitance measuring circuit adopting constant current method
Through the constant current method capacitance measurement circuit, the MCU and analog switching chip can be used to realize the switching of current size and the charging and discharging control, forming a square wave to measure the capacitance value, solving the problem of capacitance measurement accuracy and cost in the medium and high-frequency circuits in the existing technology, realizing the High-precision and low-cost capacitance measurement.
Patent Information
- Application Number
- CN202323514263.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2033-12-21
AI Technical Summary
In high-frequency circuit environments, existing capacitance measuring instruments require large output frequency band bandwidth, resulting in high measurement costs and difficult to ensure accuracy.
A constant current method capacitor measurement circuit is designed, including MCU, capacitor charge and discharge module, waveform conversion module and drive control module. The switching and charging and discharge control of current magnitude are realized through analog switching chips and operational amplifiers, forming triangular waves and converting them into squares. wave, for the MCU to measure the capacitance value.
It realizes high-precision capacitance measurement without the need for large output band bandwidth, reducing measurement costs and simplifying the circuit structure.
Smart Images

Figure CN221976997U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of capacitance measurement circuits, in particular to a constant current method capacitance measurement circuit. Background Art
[0002] With the continuous development of the electronics industry, the application scope of electronic components is getting larger and larger, and the required precision of electronic components is getting higher and higher. In the control circuit of electronic products, capacitors, resistors and inductors are frequently used and the most basic components. For different circuit designs, the precision of the required electronic components is different. Especially in high-frequency circuit environments, the parasitic capacitance generated will affect the measured value. Among the existing capacitance measuring instruments, most of the measurement methods used are resonance methods, which have high measurement accuracy and use different frequencies for different capacitance values. For capacitance values between 1NF and 1PF, high-frequency sine waves are used to measure the capacitance of the capacitor. For capacitance values greater than 1NF, low-frequency sine waves are used to measure the capacitance of the capacitor. However, this requires the output frequency band of the measuring instrument to have a large bandwidth, which greatly increases the measurement cost. Utility Model Content
[0003] The technical problem to be solved by the utility model is to provide a constant current capacitance measurement circuit to ensure measurement accuracy, and do not require a measuring instrument with a large bandwidth of the output frequency band for measurement, which can effectively reduce the measurement cost.
[0004] In order to solve the above technical problems, the purpose of the utility model is achieved through the following technical solutions: Provide a constant current capacitance measurement circuit, including an MCU, a capacitance charging and discharging module, a waveform conversion module and a drive control module, the capacitance charging and discharging module is electrically connected to the MCU, including a first operational amplifier, a second operational amplifier and an analog switch chip, the analog switch chip is electrically connected to the first operational amplifier, the second operational amplifier and the MCU respectively, the first gear output end and the second gear output end of the analog switch chip are respectively connected to a sixteenth resistor and a fifteenth resistor; the waveform conversion module is electrically connected to the MCU, and the waveform conversion module is electrically connected to the capacitance charging and discharging module through a third operational amplifier and a charging and discharging switch module, the waveform conversion module The module includes a first comparator, a second comparator and a trigger, the output end of the third operational amplifier is respectively connected to the inverting input end of the first comparator and the non-inverting input end of the second comparator, the output ends of the first comparator and the second comparator are respectively connected to the clear pin and the preset pin of the trigger, the first output end and the second output end of the trigger are connected to the charge and discharge switch module, and the second output end of the trigger is connected to the MCU; the drive control module is electrically connected to the MCU, including a first switch tube, the control end of the first switch tube is connected to the capacitor enable pin of the MCU, the output end of the first switch tube is grounded, and the input end of the first switch tube and the shutdown pin of the first operational amplifier are both connected to the positive terminal of the first power supply voltage.
[0005] The beneficial technical effect of the utility model is that the constant current method capacitance measurement circuit of the utility model is provided with an MCU, a capacitor charging and discharging module including an analog switch chip electrically connected to the MCU, wherein the first gear output terminal and the second gear output terminal of the analog switch chip are respectively connected to the sixteenth resistor and the fifteenth resistor, a waveform conversion module including a first comparator, a second comparator and a trigger electrically connected to the MCU and electrically connected to the capacitor charging and discharging module through a third operational amplifier and a charging and discharging switch module, and a driving control module electrically connected to the MCU, wherein the driving control module includes a first switch tube electrically connected to the MCU and the capacitor charging and discharging module, respectively, so that the driving control module can be controlled to work according to the MCU, thereby The start and stop of the capacitor charge and discharge module are controlled, and the resistance values of the sixteenth resistor and the fifteenth resistor are different, and the analog switch chip is electrically connected to the MCU, so that the gear selection can be realized according to the signal of the analog switch chip controlled by the MCU, and the resistance of the circuit loop can be switched to switch the current size of the measured capacitor, and the charging and discharging control is realized through the waveform conversion module cooperating with the charging and discharging switch module, and the charging and discharging are continuously performed to form a corresponding triangular wave, and the waveform conversion module can convert the triangular wave into a square wave output to the MCU, so that the MCU can measure the capacitance value to be measured according to the frequency of the square wave, thereby ensuring the measurement accuracy, and the circuit structure is simple, and there is no need for a measuring instrument with a large bandwidth of the output frequency band to measure, which can effectively reduce the measurement cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] In order to more clearly illustrate the technical solutions of the embodiments of the utility model, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0007] Figure 1 A schematic diagram of a constant current capacitance measurement circuit provided by an embodiment of the utility model;
[0008] Figure 2 A circuit diagram of a constant current capacitance measurement circuit provided in an embodiment of the utility model. DETAILED DESCRIPTION
[0009] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0010] See also Figure 1 to Figure 2 , Figure 1A schematic diagram of a constant current capacitance measurement circuit provided for an embodiment of the utility model, wherein the constant current capacitance measurement circuit 10 includes an MCU, a capacitance charging and discharging module 11, a waveform conversion module 12, and a drive control module 13, wherein the capacitance charging and discharging module 11 is electrically connected to the MCU, and includes a first operational amplifier U8, a second operational amplifier U6A, and an analog switch chip U18, wherein the analog switch chip U18 is electrically connected to the first operational amplifier U8, the second operational amplifier U6A, and the MCU, respectively, and the first gear output terminal and the second gear output terminal of the analog switch chip U18 are respectively connected to a sixteenth resistor R16 and a fifteenth resistor R15, wherein the sixteenth resistor R16 and the fifteenth resistor R15 have different resistance values, which may be 2000 ohms and 20000 ohms, respectively, then the sixteenth resistor R16 outputs The current is larger than the current output by the fifteenth resistor R15. Accordingly, the first gear output terminal is used as a small current gear, responsible for measuring the capacitance of small capacitors, and the second gear output terminal is used as a large current gear, responsible for measuring the capacitance of large capacitors, so as to meet the testing requirements of different products; the waveform conversion module 12 is electrically connected to the MCU, and the waveform conversion module 12 is electrically connected to the capacitor charging and discharging module 11 through a third operational amplifier U6B and a charge and discharge switch module 14. The waveform conversion module 12 includes a first comparator U9, a second comparator U7 and a trigger A2. The output end of the third operational amplifier U6B is respectively connected to the inverting input end of the first comparator U9 and the non-inverting input end of the second comparator U7. The output ends of the first comparator U9 and the second comparator U7 are respectively connected to the clear pins of the trigger A2 and preset pins The first output terminal Q and the second output terminal of the trigger A2 are connected. The drive control module 13 is electrically connected to the MCU, and includes a first switch tube Q1, a control end of the first switch tube Q1 is connected to the capacitor enable pin CTX_EN of the MCU, an output end of the first switch tube Q1 is grounded, and an input end of the first switch tube Q1 and the first operational amplifier U8 are connected to the MCU. The shutdown pins S / D are connected to the positive terminal PP5V of the first power supply voltage, wherein the positive terminal PP5V of the first power supply voltage refers to the positive terminal of the first power supply voltage, the first power supply voltage is 5V, the positive terminal PP5V of the first power supply voltage is connected to the input end of the first switch tube Q1 and the shutdown pin S / D of the first operational amplifier U8 through a light emitting diode LED1 and a thirty-sixth resistor R36 in sequence, the anode of the light emitting diode LED1 is connected to the positive terminal PP5V of the first power supply voltage, the cathode of the light emitting diode LED1 is connected to one end of the thirty-sixth resistor R36, and a thirty-second resistor R32 whose one end is connected to the positive terminal PP5V of the first power supply voltage is electrically connected between the shutdown pin S / D of the first operational amplifier U8 and the thirty-sixth resistor R36.
[0011] The first operational amplifier U8 is a current feedback amplifier, and the first operational amplifier U8 can be a current feedback amplifier of model LT1206CS8#PBF. The second operational amplifier U6A and the third operational amplifier U6B can both be amplifiers of model AD8066AR, the first comparator U9 and the second comparator U7 can both be comparators of model ADCMP600BKSZ, and the trigger A2 can be a D trigger A2, and the specific model of the trigger A2 can be SN74LVC1G74DCUT. The constant current method capacitance measurement circuit 10 is provided with an MCU, a capacitor charging and discharging module 11 including an analog switch chip U18 electrically connected to the MCU, wherein the first gear output terminal and the second gear output terminal of the analog switch chip U18 are respectively connected to the sixteenth resistor R16 and the fifteenth resistor R15, a waveform conversion module 12 electrically connected to the MCU and electrically connected to the capacitor charging and discharging module 11 through a third operational amplifier U6B and a charging and discharging switch module 14, including a first comparator U9, a second comparator U7 and a trigger A2, and a driving control module 13 electrically connected to the MCU, wherein the driving control module 13 includes a first switch tube Q1 electrically connected to the MCU and the capacitor charging and discharging module 11, so as to control the operation of the driving control module 13 according to the MCU, thereby The start and stop of the capacitor charge and discharge module 11 is controlled, and the resistance values of the sixteenth resistor R16 and the fifteenth resistor R15 are different, and the analog switch chip U18 is electrically connected to the MCU, so that the gear selection can be realized according to the signal of the analog switch chip U18 controlled by the MCU, and the resistance of the circuit loop can be switched to switch the current of the measured capacitor, and the charging and discharging control is realized through the waveform conversion module 12 cooperating with the charging and discharging switch module 14, and the charging and discharging are continuously performed to form a corresponding triangular wave, and the waveform conversion module 12 can convert the triangular wave into a square wave output to the MCU, so that the MCU can measure the capacitance value to be measured according to the frequency of the square wave, thereby ensuring the measurement accuracy, and the circuit structure is simple, and there is no need for a measuring instrument with a large bandwidth of the output frequency band to measure, which can effectively reduce the measurement cost.
[0012] Specifically, in this embodiment, the in-phase input terminal of the second operational amplifier U6A is connected to the first gear output terminal and the second gear output terminal of the analog switch chip U18 respectively through the sixteenth resistor R16 and the fifteenth resistor R15, the in-phase input terminal of the second operational amplifier U6A is connected to the sixteenth resistor R16 and the fifteenth resistor R15 respectively through a thirteenth resistor R13, the output terminal of the second operational amplifier U6A is connected to the in-phase input terminal of the first operational amplifier U8, the inverting input terminal of the second operational amplifier U6A and the charge and discharge switch module 14 respectively, and the second operational amplifier U6A The output end of is connected to the in-phase input end of the first operational amplifier U8 through a third resistor R3, the output end of the second operational amplifier U6A is connected to the charge and discharge switch module 14 through the third resistor R3 and a twelfth resistor R12 in sequence, the negative voltage terminal of the second operational amplifier U6A is electrically connected to an eleventh magnetic bead FB11 connected to the first negative power supply voltage terminal PN5V, a twenty-first capacitor C21 with one end grounded is electrically connected between the eleventh magnetic bead FB11 and the negative voltage terminal of the second operational amplifier U6A, the positive voltage terminal of the second operational amplifier U6A is electrically connected to a first capacitor C21 with one end grounded A thirteenth magnetic bead FB13 connected to the positive terminal PP5V of the power supply voltage, a twenty-third capacitor C23 with one end grounded is electrically connected between the thirteenth magnetic bead FB13 and the positive voltage terminal of the second operational amplifier U6A; a third magnetic bead FB3 with one end connected to the first negative power supply voltage terminal PN5V is electrically connected to the negative voltage terminal of the first operational amplifier U8, a twelfth capacitor C12 with one end grounded and a sixteenth capacitor C16 with one end grounded are electrically connected between the third magnetic bead FB3 and the negative voltage terminal of the first operational amplifier U8, the positive voltage terminal of the first operational amplifier U8 is electrically connected to a twelfth capacitor C12 with one end grounded and a sixteenth capacitor C16 with one end grounded are electrically connected to the negative voltage terminal of the first operational amplifier U8 A second magnetic bead FB2 connected to the positive voltage electrode PP5V is electrically connected between the second magnetic bead FB2 and the voltage positive terminal of the first operational amplifier U8, and a nineteenth capacitor C19 with one end grounded and a tenth capacitor C10 with one end grounded are electrically connected in parallel, wherein the first operational amplifier U8 includes two voltage positive terminals, which correspond to the eighth pin and the first pin respectively, and the voltage positive terminal connected to the second magnetic bead FB2 is the eighth pin of the first operational amplifier U8, and the inverting input terminal of the first operational amplifier U8 is respectively connected to a second resistor R2 with one end grounded and a first resistor R1 with one end connected to the second working voltage, wherein the second working voltage is 2.5V voltage, one end of the first resistor R1 is connected to the second working voltage positive terminal PP2V5 and the second working voltage negative terminal PN2V5 respectively, the second working voltage positive terminal PP2V5 and the second working voltage negative terminal PN2V5 are connected to one end of the first resistor R1 after passing through a first voltage zener diode D1 and a second voltage zener diode D2 respectively, the cathode of the first voltage zener diode D1 is connected to the second working voltage positive terminal PP2V5, the anode of the first voltage zener diode D1 is connected to one end of the first resistor R1, the anode of the second voltage zener diode D2 is connected to the second working voltage negative terminal PN2V5, the cathode of the second voltage zener diode D2 is connected to one end of the first resistor R1, the other end of the first resistor R1 is connected to the inverting input terminal of the first operational amplifier U8 and one end of the grounded first operational amplifier U8. The first resistor R2 is connected to the second resistor R2, the two ends of the first resistor R1 are respectively connected to the two ends of a fourteenth capacitor R14, so that the fourteenth capacitor R14 is connected in parallel with the first resistor R1, the compensation end COMP of the first operational amplifier U8 is connected to the output end of the first operational amplifier U8 through a thirteenth capacitor C13, the output end of the first operational amplifier U8 is respectively connected to the second working voltage, one end of the first resistor R1, one end of the fourteenth capacitor R14 and the control end of the analog switch chip U18 through an eighth resistor R8, and the control end of the analog switch chip U18 is respectively connected to one end of the eighth resistor R8, one end of the first resistor R1, one end of the fourteenth capacitor R14 and the second working voltage through a thirty-third resistor R33. .
[0013] Specifically, in the present embodiment, the first gear output terminal and the second gear output terminal of the analog switch chip U18 are respectively connected to one end of the sixteenth resistor R16 and one end of the fifteenth resistor R15, the other end of the sixteenth resistor R16 is connected to the other end of the fifteenth resistor R15 and then connected to one end of a fourteenth resistor R14, the other end of the fourteenth resistor R14 is connected to the in-phase input terminal of the third operational amplifier U6B after being connected in series with the twenty-fifth resistor R25 and the seventeenth resistor R17, the capacitance detection positive pin CTX_SENSE_P of the MCU is electrically connected between the twenty-fifth resistor R25 and the seventeenth resistor R17, the input and output pins of the analog switch chip U18 are connected to the input control pin CONTROL_INPUT of the MCU, and a grounding capacitor C is electrically connected between the other end of the fourteenth resistor R14 and one end of the twenty-fifth resistor R25. x, the grounding end of the grounding capacitor Cx is connected to the capacitor excitation negative pin CTX_FORCE_N of the MCU, the other end of the grounding capacitor Cx is connected to the capacitor excitation positive pin CTX_FORCE_P of the MCU, the other end of the fourteenth resistor R14 can be connected to the other end of the grounding capacitor Cx through a twenty-eighth resistor R28, a twenty-fourth resistor R24 with one end grounded is electrically connected between the input and output pins of the analog switch chip U18 and the input control pin CONTROL_INPUT of the MCU to discharge through the twenty-fourth resistor R24, the working voltage terminal VDD and the common connection terminal VSS of the analog switch chip U18 are respectively connected to the first power supply voltage positive terminal PP5V and the first power supply voltage negative terminal PN5V, the ground terminal of the analog switch chip U18 is grounded GND, wherein the analog switch chip U18 can adopt an electronic switch IC with model number ADG1419BRMZ. The capacitor excitation positive pin CTX_FORCE_P and the capacitor excitation negative pin CTX_FORCE_N of the MCU can be used to connect to the two ends of the capacitor to be measured to charge the capacitor to be measured. The switch tube Q1 controls the operation of the first operational amplifier U8. When the capacitor enable pin CTX_EN of the MCU outputs a signal of 1, the first switch tube Q1 is turned on, the first operational amplifier U8 stops working, and the capacitor charging and discharging module 11 stops working; when the capacitor enable pin CTX_EN of the MCU outputs a signal of 0, the first switch tube Q1 is turned off, the first operational amplifier U8 starts working, and the capacitor charging and discharging module 11 starts working. The MCU controls the analog switch chip U18 to work to control the current size, and the current flows to the two signal ends of the capacitor excitation positive pin CTX_FORCE_P and the capacitor excitation negative pin CTX_FORCE_N to charge the capacitor to be measured.
[0014] Specifically, in this embodiment, the output end of the third operational amplifier U6B is respectively connected to the inverting input end of the third operational amplifier U6B, the inverting input end of the first comparator U9 and the non-inverting input end of the second comparator U7, the inverting input end of the third operational amplifier U6B is connected to the output end of the third operational amplifier U6B after a nineteenth resistor R19, the inverting input end of the third operational amplifier U6B is connected to the capacitance detection negative pin CTX_SENSE_N of the MCU after an eighteenth resistor R18, and a thirty-fourth resistor R34 with one end grounded is electrically connected between the capacitance detection negative pin CTX_SENSE_N of the MCU and the eighteenth resistor R18.
[0015] Specifically, in the present embodiment, the charge and discharge switch module 14 includes a tenth switch tube U10 and an eleventh switch tube U11, the control ends of the tenth switch tube U10 and the eleventh switch tube U11 are respectively connected to the first output end Q and the second output end Q of the trigger A2, the output end of the tenth switch tube U10 and the input end of the eleventh switch tube U11 are both connected to the output end of the second operational amplifier U6A, the input end of the tenth switch tube U10 and the output end of the eleventh switch tube U11 are respectively connected to the first working voltage positive terminal PP1V and the first working voltage negative terminal PN1V, a fourth resistor R4 is connected in series between the control end of the tenth switch tube U10 and the first output end Q of the trigger A2, a tenth resistor R10 is connected in series between the control end of the eleventh switch tube U11 and the second output end Q of the trigger A2, and the first working voltage is 1V.
[0016] Specifically, in this embodiment, the tenth switch tube U10 and the eleventh switch tube U11 are both NMOS tubes, the gates of the tenth switch tube U10 and the eleventh switch tube U11 are respectively connected to the first output terminal Q and the second output terminal Q of the trigger A2, the source of the tenth switch tube U10 and the drain of the eleventh switch tube U11 are both connected to the output terminal of the second operational amplifier U6A, and the drain of the tenth switch tube U10 and the source of the eleventh switch tube U11 are respectively connected to the first working voltage positive terminal PP1V and the first working voltage negative terminal PN1V.
[0017] Specifically, in this embodiment, the non-inverting input terminal of the first comparator U9 is connected to the first working voltage positive terminal PP1V through a thirty-ninth resistor R39, and the output terminal of the first comparator U9 is connected to the clear pin of the trigger A2. A first test point TP1 is electrically connected between the output end of the first comparator U9 and the clear pin of the trigger A2. A 26th resistor R26 having one end connected to the positive terminal of the third working voltage PP3V3 is electrically connected therebetween. The third working voltage is 3.3V. The output end of the first comparator U9 is connected to the other end of the 26th resistor R26 and the clear pin of the trigger A2 through a 27th resistor R27. The inverting input terminal of the first comparator U9 is connected to one end of a thirty-fifth resistor R35, and the other end of the thirty-fifth resistor R35 is respectively connected to the non-inverting input terminal of the second comparator U7 and the output terminal of the third operational amplifier U6B, a second working voltage is electrically connected between the output terminal of the third operational amplifier U6B and the other end of the thirty-fifth resistor R35, the output terminal of the third operational amplifier U6B is connected to the other end of the thirty-fifth resistor R35 after passing through a twentieth resistor R20, the second working voltage is respectively connected to one end of the twentieth resistor R20, the other end of the thirty-fifth resistor R35 and the non-inverting input terminal of the second comparator U7, the second working voltage is 2.5V, the other end of the thirty-fifth resistor R35, the output terminal of the third operational amplifier U6B and the non-inverting input terminal of the second comparator U7 are respectively connected to the second working voltage positive terminal PP2V5 and the second working voltage negative terminal PN2V5, the second working voltage positive terminal PP2V5 and the first The second working voltage negative terminal PN2V5 is connected to the other end of the thirty-fifth resistor R35, the output end of the third operational amplifier U6B and the in-phase input end of the second comparator U7 through a third zener diode D3 and a fourth zener diode D4 respectively, the cathode of the third zener diode D3 is connected to the second working voltage positive terminal PP2V5, the anode of the third zener diode D3 is connected to the other end of the thirty-fifth resistor R35, one end of the twentieth resistor R20 and the in-phase input end of the second comparator U7 respectively, the anode of the fourth zener diode D4 is connected to the second working voltage negative terminal PN2V5, the cathode of the fourth zener diode D4 is connected to the other end of the thirty-fifth resistor R35, one end of the twentieth resistor R20 and the in-phase input end of the second comparator U7 respectively, the inverting input end of the second comparator U7 is connected to the first working voltage negative terminal PN1V through a fortieth resistor R40, the output end of the second comparator U7 is connected to the preset pin of the trigger A2 through a thirtieth resistor R30. The ground pin GND of the trigger A2 is grounded, the power supply voltage pin Vcc of the trigger A2 is connected to the third working voltage positive terminal PP3V3, and the clock pin CLK and the data pin D of the trigger A2 are electrically connected to a twenty-first grounding resistor R21 and a twenty-second grounding resistor R22, respectively. The first Zener diode D1, the second Zener diode D2, the third Zener diode D3 and the fourth Zener diode D4 are all Schottky diodes, and the first working voltage, the second working voltage and the third working voltage are all obtained by reducing the power supply voltage through the LDO module, so as to provide a normal working voltage for the constant current method capacitance measurement circuit 10.
[0018] Specifically, in the present embodiment, the ground terminal of the first comparator U9 is electrically connected to a fourteenth magnetic bead FB14 having one end connected to the second working voltage negative terminal PN2V5, the voltage positive terminal of the first comparator U9 is electrically connected to a twelfth magnetic bead FB12 having one end connected to the second working voltage positive terminal PP2V5, a twenty-fourth grounding capacitor C24 is electrically connected between the ground terminal GND of the first comparator U9 and the fourteenth magnetic bead FB14, and a twenty-second grounding capacitor C24 is electrically connected between the voltage positive terminal of the first comparator U9 and the twelfth magnetic bead FB12. Capacitor C22, the ground terminal of the second comparator U7 is electrically connected to a sixteenth magnetic bead FB16 with one end connected to the second working voltage negative terminal PN2V5, the voltage positive terminal of the second comparator U7 is electrically connected to a fifteenth magnetic bead FB15 with one end connected to the second working voltage positive terminal PP2V5, a twenty-sixth grounding capacitor C26 is electrically connected between the ground terminal GND of the second comparator U7 and the sixteenth magnetic bead FB16, and a twenty-fifth grounding capacitor C25 is electrically connected between the voltage positive terminal of the second comparator U7 and the fifteenth magnetic bead FB15.
[0019] Specifically, in this embodiment, the preset pin of the trigger A2 A twenty-ninth resistor R29 having one end connected to the third working voltage positive terminal PP3V3 is electrically connected to the thirtieth resistor R30, and a preset pin of the trigger A2 A third test point TP3 is electrically connected between the 30th resistor R30.
[0020] Specifically, in this embodiment, the first switch tube Q1 is an NMOS tube, the gate of the first switch tube Q1 is connected to the capacitor enable pin CTX_EN of the MCU, a grounding resistor R48 is connected between the gate of the first switch tube Q1 and the capacitor enable pin CTX_EN of the MCU, the source of the first switch tube Q1 is grounded, and the drain of the first switch tube Q1 is connected to the first power supply voltage positive terminal PP5V.
[0021] In summary, the constant current capacitance measurement circuit of the utility model is provided with an MCU, a capacitor charging and discharging module including an analog switch chip electrically connected to the MCU, wherein the first gear output terminal and the second gear output terminal of the analog switch chip are respectively connected to the sixteenth resistor and the fifteenth resistor, a waveform conversion module including a first comparator, a second comparator and a trigger electrically connected to the MCU and the capacitor charging and discharging module through a third operational amplifier and a charging and discharging switch module, and a drive control module electrically connected to the MCU, wherein the drive control module includes a first switch tube electrically connected to the MCU and the capacitor charging and discharging module, respectively, so as to control the operation of the drive control module according to the MCU, thereby controlling the capacitor charging and discharging. The discharge module starts and stops working, and the resistance values of the sixteenth resistor and the fifteenth resistor are different, and the analog switch chip is electrically connected to the MCU, so that the gear selection can be realized according to the signal of the analog switch chip controlled by the MCU, and the resistance of the circuit loop can be switched to switch the current size of the measured capacitor, and the charging and discharging control is realized through the waveform conversion module cooperating with the charge and discharge switch module, and the charging and discharging are continuously performed to form a corresponding triangular wave, and the waveform conversion module can convert the triangular wave into a square wave output to the MCU, so that the MCU can measure the capacitance value to be measured according to the frequency of the square wave, thereby ensuring the measurement accuracy, and the circuit structure is simple, and there is no need for a measuring instrument with a large bandwidth of the output frequency band to measure, which can effectively reduce the measurement cost.
[0022] The above is only a specific implementation of the utility model, but the protection scope of the utility model is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the utility model, and these modifications or replacements should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model should be based on the protection scope of the claims.
Claims
1. A constant current capacitance measurement circuit, characterized in that: include: MCU; A capacitor charging and discharging module is electrically connected to the MCU, comprising a first operational amplifier, a second operational amplifier and an analog switch chip, wherein the analog switch chip is electrically connected to the first operational amplifier, the second operational amplifier and the MCU respectively, and a first gear output terminal and a second gear output terminal of the analog switch chip are respectively connected to a sixteenth resistor and a fifteenth resistor; A waveform conversion module is electrically connected to the MCU, and the waveform conversion module is electrically connected to the capacitor charging and discharging module through a third operational amplifier and a charging and discharging switch module, the waveform conversion module includes a first comparator, a second comparator and a trigger, the output end of the third operational amplifier is respectively connected to the inverting input end of the first comparator and the non-inverting input end of the second comparator, the output ends of the first comparator and the second comparator are respectively connected to the clear pin and the preset pin of the trigger, the first output end and the second output end of the trigger are connected to the charging and discharging switch module, and the second output end of the trigger is connected to the MCU; A drive control module is electrically connected to the MCU, comprising a first switch tube, a control end of the first switch tube is connected to a capacitor enable pin of the MCU, an output end of the first switch tube is grounded, and an input end of the first switch tube and a shutdown pin of the first operational amplifier are both connected to a positive terminal of a first power supply voltage.
2. The constant current capacitance measurement circuit according to claim 1, characterized in that: The in-phase input terminal of the second operational amplifier is connected to the first gear output terminal and the second gear output terminal of the analog switch chip respectively through the sixteenth resistor and the fifteenth resistor, the output terminal of the second operational amplifier is connected to the in-phase input terminal of the first operational amplifier, the inverting input terminal of the second operational amplifier and the charge and discharge switch module respectively, the negative voltage terminal of the second operational amplifier is electrically connected to the eleventh magnetic bead having one end connected to the negative terminal of the first power supply voltage, the positive voltage terminal of the second operational amplifier is electrically connected to the thirteenth magnetic bead having one end connected to the positive terminal of the first power supply voltage; the negative voltage terminal of the first operational amplifier is electrically connected to the first Three magnetic beads, the positive voltage terminal of the first operational amplifier is electrically connected to a second magnetic bead having one end connected to the positive electrode of the first power supply voltage, the inverting input terminal of the first operational amplifier is respectively connected to a second resistor having one end grounded and a first resistor having one end connected to the second working voltage, the two ends of the first resistor are respectively connected to the two ends of a fourteenth capacitor, so that the fourteenth capacitor is connected in parallel with the first resistor, the compensation end of the first operational amplifier is connected to the output end of the first operational amplifier via a thirteenth capacitor, and the output end of the first operational amplifier is respectively connected to the second working voltage, one end of the first resistor, one end of the fourteenth capacitor and the control end of the analog switch chip after passing through an eighth resistor.
3. The constant current capacitance measurement circuit according to claim 2, characterized in that: The first gear output terminal and the second gear output terminal of the analog switch chip are respectively connected to one end of the sixteenth resistor and one end of the fifteenth resistor, the other end of the sixteenth resistor is connected to the other end of the fifteenth resistor and then connected to one end of a fourteenth resistor, the other end of the fourteenth resistor is connected to the non-inverting input terminal of the third operational amplifier through the twenty-fifth resistor and the seventeenth resistor connected in series, the capacitor detection positive pin of the MCU is electrically connected between the twenty-fifth resistor and the seventeenth resistor, the input and output pins of the analog switch chip are connected to the input control pin of the MCU, a grounding capacitor is electrically connected between the other end of the fourteenth resistor and one end of the twenty-fifth resistor, the grounding end of the grounding capacitor is connected to the capacitor excitation negative pin of the MCU, and the other end of the grounding capacitor is connected to the capacitor excitation positive pin of the MCU.
4. The constant current capacitance measurement circuit according to claim 3, characterized in that: The output end of the third operational amplifier is respectively connected to the inverting input end of the third operational amplifier, the inverting input end of the first comparator and the non-inverting input end of the second comparator, the inverting input end of the third operational amplifier is connected to the output end of the third operational amplifier through a nineteenth resistor, and the inverting input end of the third operational amplifier is connected to the capacitance detection negative pin of the MCU through an eighteenth resistor.
5. The constant current capacitance measurement circuit according to claim 2, characterized in that: The charge and discharge switch module includes a tenth switch tube and an eleventh switch tube, the control ends of the tenth switch tube and the eleventh switch tube are respectively connected to the first output end and the second output end of the trigger, the output end of the tenth switch tube and the input end of the eleventh switch tube are both connected to the output end of the second operational amplifier, and the input end of the tenth switch tube and the output end of the eleventh switch tube are respectively connected to the positive terminal of the first working voltage and the negative terminal of the first working voltage.
6. The constant current capacitance measurement circuit according to claim 5, characterized in that: The tenth switch tube and the eleventh switch tube are both NMOS tubes, the gates of the tenth switch tube and the eleventh switch tube are respectively connected to the first output end and the second output end of the trigger, the source of the tenth switch tube and the drain of the eleventh switch tube are both connected to the output end of the second operational amplifier, and the drain of the tenth switch tube and the source of the eleventh switch tube are respectively connected to the positive terminal of the first working voltage and the negative terminal of the first working voltage.
7. The constant current capacitance measurement circuit according to claim 1, characterized in that: The non-inverting input terminal of the first comparator is connected to the positive terminal of the first working voltage via a thirty-ninth resistor, a twenty-sixth resistor whose one end is connected to the positive terminal of the third working voltage is electrically connected between the output terminal of the first comparator and the clear pin of the trigger, the inverting input terminal of the first comparator is connected to one end of a thirty-fifth resistor, the other end of the thirty-fifth resistor is respectively connected to the non-inverting input terminal of the second comparator and the output terminal of the third operational amplifier, a second working voltage is electrically connected between the output terminal of the third operational amplifier and the other end of the thirty-fifth resistor, the inverting input terminal of the second comparator is connected to the negative terminal of the first working voltage via a fortieth resistor, and the output terminal of the second comparator is connected to the preset pin of the trigger via a thirtieth resistor.
8. The constant current capacitance measurement circuit according to claim 7, characterized in that: The ground terminal of the first comparator is electrically connected to a fourteenth magnetic bead having one end connected to the negative terminal of the second working voltage, the positive voltage terminal of the first comparator is electrically connected to a twelfth magnetic bead having one end connected to the positive terminal of the second working voltage, the ground terminal of the second comparator is electrically connected to a sixteenth magnetic bead having one end connected to the negative terminal of the second working voltage, and the positive voltage terminal of the second comparator is electrically connected to a fifteenth magnetic bead having one end connected to the positive terminal of the second working voltage.
9. The constant current capacitance measurement circuit according to claim 7, characterized in that: A twenty-ninth resistor whose one end is connected to the positive terminal of the third working voltage is electrically connected between the preset pin of the trigger and the 30th resistor.
10. The constant current capacitance measurement circuit according to claim 1, characterized in that: The first switch tube is an NMOS tube, the gate of the first switch tube is connected to the capacitor enable pin of the MCU, a grounding resistor is connected between the gate of the first switch tube and the capacitor enable pin of the MCU, the source of the first switch tube is grounded, and the drain of the first switch tube is connected to the positive terminal of the first power supply voltage.
