Signal acquisition circuit and chip
By using an integrator and a hysteresis comparator in the signal acquisition circuit, the analog signal to be measured is converted into frequency information, which solves the problem of high cost and limited transmission rate of the ADC chip and achieves more efficient signal acquisition.
Patent Information
- Application Number
- CN202322834111.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2033-10-20
AI Technical Summary
In the existing technology, the ADC dedicated chip has a high cost and the transmission rate is limited by the chip communication protocol, making it difficult to improve the signal collection efficiency on the basis of reducing costs.
A signal acquisition circuit is used, including a voltage conversion circuit, a signal comparison circuit and an integral clearing circuit. The analog signal to be measured is converted into frequency information through an integrator, and a hysteresis comparator is used to collect the charging time to determine the size of the analog signal, reduce costs and improve Signal acquisition efficiency.
It achieves improved signal acquisition efficiency on the basis of cost reduction, avoids the transmission rate limitation caused by the ADC chip communication protocol, and provides a lower-cost analog-to-digital conversion solution.
Smart Images

Figure CN221597876U
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic circuits, and in particular, to a signal acquisition circuit and a chip. Background Art
[0002] During the actual use of various electronic products on the market, there is a need to determine the power consumption of the product itself. Therefore, when the actual power consumption of the electronic product exceeds the rated power of the power supply and the heat dissipation requirements, corresponding restrictive measures are taken to reduce the power consumption to ensure the stability of the electronic product.
[0003] Related technologies usually use ADC (Analog-to-digital converter) dedicated chips to convert analog signals such as voltage or current of electronic products into digital signals, and then transmit the digital signals to the controller through chip communication protocols such as I2C or SPI, thereby obtaining the actual power consumption of electronic products from the controller. However, the cost of ADC dedicated chips is high, and the transmission rate is limited by the chip communication protocol. Utility Model Content
[0004] The purpose of the present disclosure is to provide a signal acquisition circuit and chip to improve signal acquisition efficiency while reducing costs.
[0005] In order to achieve the above-mentioned purpose, a first aspect of an embodiment of the present disclosure provides a signal acquisition circuit, comprising: a voltage conversion circuit, a signal comparison circuit and an integral clearing circuit, wherein the voltage conversion circuit comprises an integrator, and the signal comparison circuit comprises a hysteresis comparator;
[0006] The input end of the integrator is used to be electrically connected to the power-consuming device to receive the analog signal to be tested of the power-consuming device, and the output end of the integrator is connected to the input end of the hysteresis comparator;
[0007] The output end of the hysteresis comparator is connected to the on / off control end of the integral clearing circuit;
[0008] The reset terminal of the integral reset circuit is connected to the input terminal of the integrator, and the ground terminal of the integral reset circuit is used for grounding.
[0009] Optionally, the voltage conversion circuit further includes a voltage ratio conversion subcircuit;
[0010] The input end of the voltage ratio conversion subcircuit is used to be electrically connected to the power-consuming device to receive the analog signal to be tested of the power-consuming device, and the output end of the voltage ratio conversion subcircuit is connected to the input end of the integrator.
[0011] Optionally, the voltage conversion circuit further includes a first resistor, a second resistor and a third resistor, the integrator includes a first capacitor and a first operational amplifier, and the first operational amplifier includes a first positive input terminal, a first negative input terminal and a first output terminal;
[0012] The first end of the first resistor is used to receive the power supply voltage, the second end is respectively connected to the first end of the second resistor and the first positive input end, and the second end of the second resistor is grounded;
[0013] The first negative input terminal is respectively connected to the second end of the third resistor, the first end of the first capacitor and the reset end of the integral reset circuit, and the first end of the third resistor is used to be connected to the power-consuming device;
[0014] The first output terminal is respectively connected to the second terminal of the first capacitor and the input terminal of the hysteresis comparator.
[0015] Optionally, the signal comparison circuit further includes a fourth resistor and a fifth resistor, the hysteresis comparator includes a sixth resistor and a second operational amplifier, and the second operational amplifier includes a second positive input terminal, a second negative input terminal and a second output terminal;
[0016] The first end of the fourth resistor is used to receive the power supply voltage, the second end is respectively connected to the first end of the fifth resistor, the first end of the sixth resistor and the second positive input end, and the second end of the fifth resistor is grounded;
[0017] The second negative input terminal is connected to the output terminal of the integrator;
[0018] The second output terminal is respectively connected to the second end of the sixth resistor and the on / off control terminal of the integral clearing circuit.
[0019] Optionally, the integral clearing circuit is a MOS tube;
[0020] The on / off control terminal of the integral clearing circuit is the gate of the MOS tube, the clearing terminal of the integral clearing circuit is the drain of the MOS tube, and the grounding terminal of the integral clearing circuit is the source of the MOS tube.
[0021] Optionally, the integral clearing circuit includes a transistor and a seventh resistor;
[0022] The base of the transistor is connected to the first end of the seventh resistor;
[0023] The on / off control terminal of the integral clearing circuit is the second terminal of the seventh resistor, the clearing terminal of the integral clearing circuit is the collector of the transistor, and the grounding terminal of the integral clearing circuit is the emitter of the transistor.
[0024] Optionally, the signal acquisition circuit further includes a controller;
[0025] The controller is connected to the output end of the hysteresis comparator.
[0026] Optionally, the controller includes a single-edge trigger, and the single-edge trigger is connected to the output end of the hysteresis comparator.
[0027] Optionally, the capacitance value of the first capacitor is smaller than a preset capacitance value, and / or the resistance value of the third resistor is larger than a preset resistance value.
[0028] A second aspect of the embodiments of the present disclosure provides a chip integrating the signal acquisition circuit described in any one of the first aspects.
[0029] The above technical solution provided by the embodiment of the present disclosure can be combined with the integral zeroing circuit to convert the analog signal to be tested of the power-consuming device into frequency information through the integrator, that is, the period of charging the capacitor set in the integrator by the analog signal to be tested. On this basis, the charging time of each cycle can be collected according to the output of the hysteresis comparator, and the size of the analog signal to be tested can be determined based on the time information collected in each cycle. Compared with the chip for analog-to-digital conversion used in the related art, the device provided by the technical solution provided by the embodiment of the present disclosure has a lower cost and is not limited by the chip communication protocol, thereby achieving improved signal acquisition efficiency on the basis of reduced costs.
[0030] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0032] Figure 1 is a block diagram of a signal acquisition circuit according to an exemplary embodiment.
[0033] Figure 2 is a schematic diagram of a signal acquisition circuit according to an exemplary embodiment.
[0034] Figure 3 is a schematic diagram of an integral clearing circuit according to an exemplary embodiment.
[0035] Figure 4 is a schematic diagram showing output signals of an integrator and a hysteresis comparator according to an exemplary embodiment.
[0036] Description of Reference Numerals
[0037] 100 signal acquisition circuit 120 signal comparison circuit
[0038] 110 Voltage conversion circuit 122 Hysteresis comparator
[0039] 112 integrator 1222 sixth resistor
[0040] 1124 first capacitor 1224 second operational amplifier
[0041] 1126 first operational amplifier 124 fourth resistor
[0042] 114 first resistor 126 fifth resistor
[0043] 116 Second resistor 130 Integral reset circuit
[0044] 118 The third resistor 132 MOS tube
[0045] 134 transistor 136 seventh resistor DETAILED DESCRIPTION
[0046] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0047] Reference Figure 1 , Figure 1 FIG. 1 is a block diagram of a signal acquisition circuit 100 according to an exemplary embodiment. Figure 1 As shown, the signal acquisition circuit 100 includes: a voltage conversion circuit 110 , a signal comparison circuit 120 and an integral clearing circuit 130 . The voltage conversion circuit 110 includes an integrator 112 , and the signal comparison circuit 120 includes a hysteresis comparator 122 .
[0048] The input end of the integrator 112 is used to be electrically connected to the power-consuming device to receive the analog signal to be tested of the power-consuming device, and the output end of the integrator 112 is connected to the input end of the hysteresis comparator 122;
[0049] The output end of the hysteresis comparator 122 is connected to the on / off control end of the integral clearing circuit 130;
[0050] The reset terminal of the integral reset circuit 130 is connected to the input terminal of the integrator 112 , and the ground terminal of the integral reset circuit 130 is used for grounding.
[0051] The power-consuming device may be an electronic product, or a power-consuming device in an electronic product, such as a GPU. The analog signal to be measured of the power-consuming device may be a voltage signal, such as a voltage drop from a power supply terminal to the power-consuming device in a circuit.
[0052] In a possible implementation, a sampling resistor connected in series with the power-consuming device can be set in the circuit to collect the current signal of the power-consuming device. In this case, the analog signal to be measured can be a voltage signal of the sampling resistor used to determine the current signal of the power-consuming device, thereby determining the current signal of the power-consuming device through the determined voltage signal of the sampling resistor and the resistance value of the sampling resistor, and then determining the power consumption of the power-consuming device based on the determined current signal and voltage signal of the power-consuming device, and thus performing corresponding power consumption control. Among them, the size and setting method of the sampling resistor can refer to the relevant technology and specific implementation, and the present disclosure does not make specific limitations on this.
[0053] It should be noted that, in combination with the integral clearing circuit 130, the integrator 112 can be used to convert the analog signal to be tested of the power-consuming device into frequency information, that is, the period of the analog signal to be tested charging the capacitor set in the integrator 112. On this basis, the charging duration of each cycle can be collected according to the output of the hysteresis comparator 122, and the size of the analog signal to be tested can be determined according to the collected duration information.
[0054] It is understandable that the hysteresis comparator 122 is usually provided with two threshold voltages, and the two threshold voltages can be switched with the change of the output signal of the integrator 112, so that the hysteresis comparator 122 outputs a high level or a low level respectively. The duration that the hysteresis comparator 122 maintains a high level or a low level can reflect the duration that the analog signal to be measured charges the capacitor set in the integrator 112.
[0055] It should be noted that the on / off control terminal of the integral clearing circuit 130 can be used to control the conduction or shutoff of the clearing terminal of the integral clearing circuit 130 to the ground terminal according to the output signal of the hysteresis comparator 122, thereby achieving the clearing of the integrator 112 when it is turned on to enter the next acquisition cycle.
[0056] For example, when the hysteresis comparator 122 outputs a high level, the on / off control terminal receives a high level signal, thereby controlling the zeroing terminal of the integral zeroing circuit 130 to be turned on to the ground terminal. In this case, the integral zeroing circuit 130 takes effect, so that the input terminal of the integrator 112 is cleared, that is, the voltage at the input terminal of the integrator 112 is set to zero, and the integrator 112 outputs a gradually rising voltage signal. In this process, the hysteresis comparator 122 maintains an output high level, thereby the duration of the high level signal can be collected by devices such as edge triggers or related software methods. Continuing with this example, when the high level signal output by the integrator 112 is greater than or equal to the high threshold voltage of the hysteresis comparator 122, the output of the hysteresis comparator 122 flips. In this case, the hysteresis comparator 122 outputs a low level, and the on / off control terminal receives a low level signal, thereby controlling the zeroing terminal of the integral zeroing circuit 130 to be turned off to the ground terminal. At this time, the voltage at the input end of the integrator 112 is not affected by the integral zeroing circuit 130, but receives the analog signal to be tested from the power-consuming device, so that the analog signal to be tested starts to charge the capacitor set in the integrator 112, and the integrator 112 outputs a gradually decreasing voltage signal. In this process, the hysteresis comparator 122 keeps outputting a low level, so that the duration of the low-level signal can be collected through devices such as edge triggers or related software methods. It is not difficult to understand that when the low-level signal output by the integrator 112 is less than or equal to the low threshold voltage of the hysteresis comparator 122, the output of the hysteresis comparator 122 flips again, and outputs a high-level signal so that the voltage at the input end of the integrator 112 is reset to zero, thereby entering the next collection cycle.
[0057] The above technical solution provided by the embodiment of the present disclosure can be combined with the integral zeroing circuit to convert the analog signal to be tested of the power-consuming device into frequency information through the integrator, that is, the period of charging the capacitor set in the integrator by the analog signal to be tested. On this basis, the charging time of each cycle can be collected according to the output of the hysteresis comparator, and the size of the analog signal to be tested can be determined based on the time information collected in each cycle. Compared with the chip for analog-to-digital conversion used in the related art, the device provided by the technical solution provided by the embodiment of the present disclosure has a lower cost and is not limited by the chip communication protocol, thereby achieving improved signal acquisition efficiency on the basis of reduced costs.
[0058] Reference Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a signal acquisition circuit 100 according to an exemplary embodiment. Figure 2As shown, the voltage conversion circuit 110 may further include a first resistor 114, a second resistor 116 and a third resistor 118, the integrator 112 includes a first capacitor 1124 and a first operational amplifier 1126, and the first operational amplifier 1126 includes a first positive input terminal, a first negative input terminal and a first output terminal;
[0059] The first end of the first resistor 114 is used to receive the power supply voltage, and the second end is respectively connected to the first end of the second resistor 116 and the first positive input terminal, and the second end of the second resistor 116 is grounded;
[0060] The first negative input terminal is respectively connected to the second end of the third resistor 118, the first end of the first capacitor 1124 and the reset end of the integral reset circuit 130, and the first end of the third resistor 118 is used to connect to the power-consuming device;
[0061] The first output terminal is respectively connected to the second terminal of the first capacitor 1124 and the input terminal of the hysteresis comparator 122 .
[0062] Among them, the input end of the integrator 112 can refer to the first negative input end of the first operational amplifier 1126. In order to avoid excessive current when the analog signal to be measured charges the first capacitor 1124, a third resistor 118 can be connected between the first negative input end and the power-consuming device as a load protection, and the resistance value of the third resistor 118 can affect the charging time of the first capacitor 1124, thereby being used to control the charging time of the capacitor. On this basis, the voltage of the first negative input end can be equivalent to the voltage of the second end of the third resistor 118. Therefore, when the zeroing end of the integral zeroing circuit is connected to the first negative input end, the voltage of the second end of the third resistor 118 and the voltage of the first negative input end are both reset to zero when the zeroing end of the integral zeroing circuit 130 is turned on to the ground end, that is, the voltage of the input end of the integrator 112 is reset to zero.
[0063] The supply voltage can be provided by a power supply in the circuit, and the present disclosure does not specifically limit this. The first resistor 114 and the second resistor 116 can be used to divide the supply voltage, thereby controlling the voltage value of the first positive input terminal. Among them, the voltage signal input to the first positive input terminal can be used as a first reference signal to compare with the analog signal to be measured, and the result of the comparison between the two can affect the charging and discharging of the first capacitor 1124, so that the integrator 112 outputs a voltage signal that gradually increases or decreases.
[0064] It should be noted that the voltage value represented by the analog signal to be measured is usually not less than the voltage value of the first positive input terminal. Thus, when the zeroing terminal of the integral zeroing circuit 130 is turned off to the ground terminal, the current flow direction can be controlled based on the voltage difference between the analog signal to be measured and the voltage signal input to the first positive input terminal, so that the capacitor (i.e., the first capacitor 1124) set in the integrator 112 is charged by the analog signal to be measured. On this basis, the integrator 112 outputs a gradually decreasing voltage signal, so that the charging time can be collected by the hysteresis comparator 122 to further determine the size of the analog signal to be measured based on the time. Similarly, when the zeroing terminal of the integral zeroing circuit 130 is turned on to the ground terminal, the voltage at the input terminal of the integrator 112 is set to zero, and the integrator 112 outputs a gradually increasing voltage signal.
[0065] In one embodiment, the resistance values of the first resistor 114 and the second resistor 116 can be adjusted so that the voltage value input to the first positive input terminal is smaller than the voltage value represented by the analog signal to be measured.
[0066] In another embodiment, a voltage ratio conversion subcircuit may be provided in the voltage conversion circuit 110. The input end of the voltage ratio conversion subcircuit may be used to be electrically connected to the power-consuming device to receive the analog signal to be tested of the power-consuming device, and to convert the analog signal to be tested so that the voltage value represented by the converted analog signal to be tested is not less than the voltage value of the input first positive input end. The output end of the voltage ratio conversion subcircuit may be connected to the input end of the integrator 112 to input the converted analog signal to be tested into the integrator 112. The arrangement of each element in the voltage ratio conversion subcircuit may refer to the relevant technology, and the present disclosure does not specifically limit this.
[0067] It should also be noted that the magnitude of the current in the branch where the third resistor 118 is located can be controlled by changing the resistance value of the third resistor 118 , thereby controlling the duration for the analog signal to be measured to charge the first capacitor 1124 .
[0068] Continue to use Figure 2 For example, the signal comparison circuit 120 may further include a fourth resistor 124 and a fifth resistor 126, the hysteresis comparator 122 may include a sixth resistor 1222 and a second operational amplifier 1224, and the second operational amplifier 1224 includes a second positive input terminal, a second negative input terminal, and a second output terminal;
[0069] The first end of the fourth resistor 124 is used to receive the power supply voltage, the second end is respectively connected to the first end of the fifth resistor 126, the first end of the sixth resistor 1222 and the second positive input end, and the second end of the fifth resistor 126 is grounded;
[0070] The second negative input terminal is connected to the output terminal of the integrator 112;
[0071] The second output terminal is respectively connected to the second end of the sixth resistor 1222 and the on / off control terminal of the integral clearing circuit 130 .
[0072] The input end of the hysteresis comparator 122 may be the second negative input end of the second operational amplifier 1224. The fourth resistor 124, the fifth resistor 126 and the sixth resistor 1222 may be used to divide the supply voltage, thereby controlling the voltage value of the second positive input end. The voltage signal input to the second positive input end may be used as a second reference signal to be compared with the voltage signal output by the integrator 112, and the result of the comparison between the two may affect the output signal of the hysteresis comparator 122, thereby causing the hysteresis comparator 122 to output a high level signal or a low level signal.
[0073] As mentioned above, the hysteresis comparator 122 is usually provided with two threshold voltages. When the hysteresis comparator 122 outputs a high level signal, the voltage input to the second positive input terminal is provided as a high threshold voltage X 2MAX The high threshold voltage can be regarded as the result of the fourth resistor 124 and the sixth resistor 1222 being connected in parallel and then connected in series with the fifth resistor 126 for voltage division. When the hysteresis comparator 122 outputs a low level signal, the voltage input to the second positive input terminal is provided as the low threshold voltage X 2MIN The low threshold voltage can be regarded as a voltage-dividing result after the fifth resistor 126 and the sixth resistor 1222 are connected in parallel and then connected in series with the fourth resistor 124 .
[0074] Among them, the high threshold voltage X 2MAX And low threshold voltage X 2MIN The calculation formula can be shown as follows:
[0075] X 2MAX =Vcc*(R5 / (R5+(R4 / / R6)))
[0076] X 2MIN =Vcc*((R5 / / R6) / (R4+(R5 / / R6)))
[0077] Wherein, Vcc is the supply voltage, R4 is the resistance value of the fourth resistor 124, R5 is the resistance value of the fifth resistor 126, R6 is the resistance value of the sixth resistor 1222, and “ / / ” indicates that the resistors are connected in parallel. The calculation of the resistance value of the resistors connected in parallel can refer to the relevant formula, which will not be repeated here.
[0078] In addition, the size and connection method of the resistor used to adjust the threshold voltage of the hysteresis comparator 122 can be set according to actual conditions. For example, the fourth resistor 124, the fifth resistor 126 and the sixth resistor 1222 can be adaptively adjusted according to actual conditions, and the present disclosure does not make specific limitations on this.
[0079] It should be noted that the high threshold voltage and the low threshold voltage of the hysteresis comparator 122 can be switched as the output signal of the integrator 112 changes. In the process that the voltage signal output by the integrator 112 is less than the high threshold voltage, the hysteresis comparator 122 keeps outputting a high level. When the voltage signal output by the integrator 112 is greater than or equal to the high threshold voltage of the hysteresis comparator 122, the output of the hysteresis comparator 122 flips, that is, outputs a low level. On this basis, the low level output by the hysteresis comparator 122 is also used to control the level of the positive terminal of the hysteresis comparator 122 itself, that is, to change the signal at the positive terminal so that the voltage at the second positive input terminal is provided as a low threshold voltage. When the voltage signal output by the integrator 112 is greater than or equal to the lower threshold voltage, the hysteresis comparator 122 keeps outputting a low level until the low level signal output by the integrator 112 is less than or equal to the lower threshold voltage of the hysteresis comparator 122. Then, the output of the hysteresis comparator 122 flips again and outputs a high level signal so that the voltage at the input end of the integrator 112 is reset to zero, thereby entering the next acquisition cycle.
[0080] In the embodiment of the present disclosure, the duration of the high-level signal and / or low-level signal output by the hysteresis comparator 122 can be collected by devices such as edge triggers or related software methods, thereby determining the size of the analog signal to be measured based on the collected duration information.
[0081] Continue to use Figure 2 For example, the integral clearing circuit 130 may be a MOS transistor 132. In this case, the on / off control terminal of the integral clearing circuit 130 may be the gate of the MOS transistor 132, the clearing terminal of the integral clearing circuit 130 may be the drain of the MOS transistor 132, and the ground terminal of the integral clearing circuit 130 may be the source of the MOS transistor 132.
[0082] It is not difficult to understand that when the gate of the MOS tube 132 receives a high-level signal, the drain to source of the MOS tube 132 is turned on, thereby the input terminal of the integrator 112 can be set to zero, so that the integrator 112 outputs a gradually increasing voltage signal, and the hysteresis comparator 122 keeps outputting a high level when the gradually increasing voltage signal is less than the high threshold voltage of the hysteresis comparator 122. Afterwards, when the voltage signal output by the integrator 112 is greater than or equal to the high threshold voltage of the hysteresis comparator 122, the output of the hysteresis comparator 122 flips, that is, outputs a low-level signal, and the voltage of the second positive input terminal is provided as a low threshold voltage. When the gate of the MOS tube 132 receives a low-level signal, the drain to source of the MOS tube 132 is turned off, so that the input end of the integrator 112 can receive the analog signal to be tested of the power-consuming device, so that the integrator 112 outputs a gradually decreasing voltage signal. In the process that the gradually decreasing voltage signal is greater than the low threshold voltage of the hysteresis comparator 122, the hysteresis comparator 122 keeps outputting a low level. Afterwards, when the voltage signal output by the integrator 112 is less than the low threshold voltage of the hysteresis comparator 122, the output of the hysteresis comparator 122 flips again, and outputs a high-level signal so that the voltage at the input end of the integrator 112 is set to zero, thereby entering the next acquisition cycle.
[0083] In the embodiment of the present disclosure, the analog signal to be measured can affect the output of the integrator 112, and further affect the flipping time point of the hysteresis comparator 122, as well as the timing of clearing the integrator 112 by the integrator clearing circuit 130. Thus, the size of the analog signal to be measured can be determined by collecting the length of time that the hysteresis comparator maintains outputting a high-level signal and / or a low-level signal in each cycle.
[0084] In a possible implementation, the integral clearing circuit 130 can be obtained based on a transistor and a resistor to achieve the function of being turned on when the hysteresis comparator outputs a high level and being turned off when the hysteresis comparator outputs a low level.
[0085] Reference Figure 3 , Figure 3 FIG. 1 is a schematic diagram showing an integral clearing circuit 130 according to an exemplary embodiment. Figure 3 As shown, the integration clearing circuit 130 may include a transistor 134 and a seventh resistor 136 .
[0086] The base of the transistor 134 is connected to the first end of the seventh resistor 136;
[0087] The on / off control terminal of the integral clearing circuit 130 may be the second terminal of the seventh resistor 136 , the clearing terminal of the integral clearing circuit 130 may be the collector of the transistor 124 , and the ground terminal of the integral clearing circuit 130 may be the emitter of the transistor 124 .
[0088] Among them, the operating principle of the integral clearing circuit obtained based on the transistor 134 and the seventh resistor 136 is similar to the operating principle of the integral clearing circuit obtained based on the MOS tube, and will not be repeated here.
[0089] It is understandable that the signal acquisition circuit 100 may further include a controller, which may be connected to the output end of the hysteresis comparator 122, thereby determining the size of the analog signal to be measured based on the time length information collected in each cycle.
[0090] Reference Figure 4 , Figure 4 FIG. 1 is a schematic diagram showing output signals of the integrator 112 and the hysteresis comparator 122 according to an exemplary embodiment. Figure 4 As shown, in the process that the integrator 112 outputs a gradually rising voltage signal and the voltage signal is less than the high threshold voltage of the hysteresis comparator 122, the hysteresis comparator 122 keeps outputting a high level signal. Afterwards, when the voltage signal output by the integrator 112 is greater than or equal to the high threshold voltage of the hysteresis comparator 122, the output of the hysteresis comparator 122 is flipped, that is, a low level signal is output, and the voltage at the second positive input terminal is provided as a low threshold voltage. In this process, the time length T1 during which the output of the hysteresis comparator 122 remains at a high level can be collected by an edge trigger. For example, the time point of the rising edge trigger and the time point of the immediately following falling edge trigger are collected by a double edge trigger, so that the time length T1 can be determined by the difference between the two time points.
[0091] It is not difficult to understand that after the threshold voltage of the hysteresis comparator 122 is switched, the integral clearing circuit 130 synchronously completes the clearing of the integrator 112. On this basis, the integrator 112 outputs a gradually decreasing voltage signal. In the process that the integrator 112 outputs a gradually decreasing voltage signal and the voltage signal is greater than or equal to the low threshold voltage of the hysteresis comparator 122, the hysteresis comparator 122 keeps outputting a low level signal. Afterwards, when the voltage signal output by the integrator 112 is less than the low threshold voltage of the hysteresis comparator 122, the output of the hysteresis comparator 122 flips again, and outputs a high level signal so that the voltage at the input end of the integrator 112 is reset to zero, thereby entering the next acquisition cycle. In this process, a similar method as described above can be used to collect the duration T2 during which the output of the hysteresis comparator 122 remains at a low level.
[0092] The calculation formulas for T1 and T2 can be shown as follows:
[0093] T1=(X 2MAX -X 2MIN )*C1 / X 1_IOUT
[0094] T2=(X 2MAX-X 2MIN )*C1 / ((VIN-X 1_IN ) / R3)
[0095] Wherein, C1 is the capacitance value of the first capacitor 1124, X 1_IOUT is the current value output by the first operational amplifier 1126, X 1_IN is the voltage value input to the first positive input terminal of the first operational amplifier 1126, that is, the voltage value represented by the first reference signal, and R3 is the resistance value of the third resistor 118. VIN is the voltage value input to the integrator 112, that is, the voltage value of the first terminal of the third resistor 118, which can be the voltage value represented by the analog signal to be measured, or the voltage value represented by the analog signal to be measured after conversion by the voltage ratio conversion subcircuit. It is not difficult to understand that if VIN is the voltage value represented by the analog signal to be measured after conversion, then the size of the analog signal to be measured that was initially input can be obtained by inverse calculation of the conversion ratio of the voltage ratio conversion subcircuit.
[0096] It is not difficult to know from the above formula that the capacitance value of the first capacitor 1124 can affect the size of T1 and T2, and the resistance value of the third resistor 118 can affect the size of T2. Therefore, by changing the size of C1 and / or R3, for example, setting R3 larger, and / or setting C1 very small, T2 can be made much larger than T1. In this way, T1 can be ignored, and only the sum Tsum between T1 and T2 can be obtained by a single edge trigger. For example, the duration between two rising edge signals is obtained by a rising edge trigger, or the duration between two falling edge signals is obtained by a falling edge trigger. On this basis, Tsum can be used as the value of T2, so that there is no need for a double edge trigger or a similar software method to collect duration information, further reducing costs.
[0097] In a possible implementation, the capacitance value of the first capacitor 1124 may be set to be smaller than a preset capacitance value, and / or the resistance value of the third resistor 118 may be set to be larger than a preset resistance value.
[0098] Among them, the preset capacitance value and the preset resistance value are used to refer to the above formula, so that T2 is much larger than T1. The specific value can be determined according to the actual situation, and the present disclosure does not make specific limitations on this.
[0099] Optionally, the controller may include a single-edge trigger, which may be connected to the output of the hysteresis comparator 122. Thus, in the embodiment of the present disclosure, a single-edge trigger may be used instead of a double-edge trigger, thereby further reducing the device cost.
[0100] The above technical solution provided by the embodiment of the present disclosure can be combined with the integral zeroing circuit to convert the analog signal to be tested of the power-consuming device into frequency information through the integrator, that is, the period of charging the capacitor set in the integrator by the analog signal to be tested. On this basis, the charging time of each cycle can be collected according to the output of the hysteresis comparator, and the size of the analog signal to be tested can be determined based on the time information collected in each cycle. Compared with the chip for analog-to-digital conversion used in the related art, the device provided by the technical solution provided by the embodiment of the present disclosure has a lower cost and is not limited by the chip communication protocol, thereby achieving improved signal acquisition efficiency on the basis of reduced costs.
[0101] Based on the same concept, the present disclosure also provides a chip integrating the above-mentioned signal acquisition circuit.
[0102] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0103] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0104] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A signal acquisition circuit, characterized in that: The signal acquisition circuit comprises: a voltage conversion circuit, a signal comparison circuit and an integral clearing circuit, wherein the voltage conversion circuit comprises an integrator, and the signal comparison circuit comprises a hysteresis comparator; The input end of the integrator is used to be electrically connected to the power-consuming device to receive the analog signal to be tested of the power-consuming device, and the output end of the integrator is connected to the input end of the hysteresis comparator; The output end of the hysteresis comparator is connected to the on / off control end of the integral clearing circuit; The reset terminal of the integral reset circuit is connected to the input terminal of the integrator, and the ground terminal of the integral reset circuit is used for grounding.
2. The signal acquisition circuit according to claim 1, characterized in that: The voltage conversion circuit also includes a voltage ratio conversion subcircuit; The input end of the voltage ratio conversion subcircuit is used to be electrically connected to the power-consuming device to receive the analog signal to be tested of the power-consuming device, and the output end of the voltage ratio conversion subcircuit is connected to the input end of the integrator.
3. The signal acquisition circuit according to claim 1, characterized in that: The voltage conversion circuit further includes a first resistor, a second resistor and a third resistor, the integrator includes a first capacitor and a first operational amplifier, and the first operational amplifier includes a first positive input terminal, a first negative input terminal and a first output terminal; The first end of the first resistor is used to receive the power supply voltage, the second end is respectively connected to the first end of the second resistor and the first positive input end, and the second end of the second resistor is grounded; The first negative input terminal is respectively connected to the second end of the third resistor, the first end of the first capacitor and the reset end of the integral reset circuit, and the first end of the third resistor is used to be connected to the power consuming device; The first output terminal is respectively connected to the second terminal of the first capacitor and the input terminal of the hysteresis comparator.
4. The signal acquisition circuit according to claim 1, characterized in that: The signal comparison circuit further includes a fourth resistor and a fifth resistor, the hysteresis comparator includes a sixth resistor and a second operational amplifier, and the second operational amplifier includes a second positive input terminal, a second negative input terminal and a second output terminal; The first end of the fourth resistor is used to receive the power supply voltage, the second end is respectively connected to the first end of the fifth resistor, the first end of the sixth resistor and the second positive input end, and the second end of the fifth resistor is grounded; The second negative input terminal is connected to the output terminal of the integrator; The second output terminal is respectively connected to the second end of the sixth resistor and the on / off control terminal of the integral clearing circuit.
5. The signal acquisition circuit according to any one of claims 1 to 4, characterized in that: The integral clearing circuit is a MOS tube; The on / off control terminal of the integral clearing circuit is the gate of the MOS tube, the clearing terminal of the integral clearing circuit is the drain of the MOS tube, and the grounding terminal of the integral clearing circuit is the source of the MOS tube.
6. The signal acquisition circuit according to any one of claims 1 to 4, characterized in that: The integral clearing circuit comprises a triode and a seventh resistor; The base of the transistor is connected to the first end of the seventh resistor; The on / off control terminal of the integral clearing circuit is the second terminal of the seventh resistor, the clearing terminal of the integral clearing circuit is the collector of the transistor, and the grounding terminal of the integral clearing circuit is the emitter of the transistor.
7. The signal acquisition circuit according to any one of claims 1 to 4, characterized in that: The signal acquisition circuit also includes a controller; The controller is connected to the output end of the hysteresis comparator.
8. The signal acquisition circuit according to claim 7, characterized in that: The controller comprises a single-edge trigger connected to the output end of the hysteresis comparator.
9. The signal acquisition circuit according to claim 3, characterized in that: The capacitance value of the first capacitor is smaller than a preset capacitance value, and / or the resistance value of the third resistor is larger than a preset resistance value.
10. A chip, characterized in that: The signal acquisition circuit according to any one of claims 1 to 9 is integrated.
