CN116366063A - Signal acquisition circuit, chip and signal acquisition method - Google Patents

Signal acquisition circuit, chip and signal acquisition method Download PDF

Info

Publication number
CN116366063A
CN116366063A CN202310267839.0A CN202310267839A CN116366063A CN 116366063 A CN116366063 A CN 116366063A CN 202310267839 A CN202310267839 A CN 202310267839A CN 116366063 A CN116366063 A CN 116366063A
Authority
CN
China
Prior art keywords
voltage
signal
circuit
power consumption
voltage value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310267839.0A
Other languages
Chinese (zh)
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Moore Threads Technology Co Ltd
Original Assignee
Moore Threads Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Moore Threads Technology Co Ltd filed Critical Moore Threads Technology Co Ltd
Priority to CN202310267839.0A priority Critical patent/CN116366063A/en
Publication of CN116366063A publication Critical patent/CN116366063A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/124Sampling or signal conditioning arrangements specially adapted for A/D converters
    • H03M1/1245Details of sampling arrangements or methods
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K7/00Modulating pulses with a continuously-variable modulating signal
    • H03K7/08Duration or width modulation ; Duty cycle modulation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The present disclosure relates to a signal acquisition circuit, a chip and a signal acquisition method, wherein the signal acquisition circuit comprises a triangular wave generation circuit, a voltage conversion circuit and a signal comparison circuit, and the signal comparison circuit comprises a comparator; the input end of the voltage conversion circuit is used for being electrically connected with the power consumption equipment, so that the input end of the voltage conversion circuit inputs an analog signal to be tested of the power consumption equipment, and the output end of the voltage conversion circuit is connected with the first input end of the comparator; the output end of the triangular wave generating circuit is connected with the second input end of the comparator. Through the signal acquisition circuit, a chip for analog-to-digital conversion is not required, but the converted analog signal to be detected of the power consumption equipment can be compared with the triangular wave to obtain the PWM waveform reflecting the voltage signal, so that the analog signal to be detected is determined based on the PWM waveform, the process is not limited by a chip communication protocol, and the signal acquisition efficiency can be improved on the basis of reducing the cost.

Description

Signal acquisition circuit, chip and signal acquisition method
Technical Field
The present disclosure relates to the field of electronic circuits, and in particular, to a signal acquisition circuit, a chip, and a signal acquisition method.
Background
At present, the power consumption of the electronic product can be obtained through the controller of the electronic product, so that under the condition that the actual power consumption of the electronic product exceeds the rated power of a power supply and the heat dissipation requirement, corresponding limiting measures are adopted to reduce the power consumption, and the stability of the electronic product is ensured.
Related art generally adopts an ADC (Analog-to-digital converter) dedicated chip to convert Analog signals such as voltage or current of an electronic product into digital signals, and then transmits the digital signals to a controller through a chip communication protocol such as I2C or SPI, thereby realizing the acquisition of actual power consumption of the electronic product from the controller. However, the cost of the ADC-specific chip is high, and the transmission rate is limited by the chip communication protocol.
Disclosure of Invention
The disclosure aims to provide a signal acquisition circuit, a chip and a signal acquisition method, so as to improve the signal acquisition efficiency on the basis of reducing the cost.
In order to achieve the above object, a first aspect of the embodiments of the present disclosure provides a signal acquisition circuit including a triangular wave generation circuit, a voltage conversion circuit, and a signal comparison circuit including a comparator;
the input end of the voltage conversion circuit is used for being electrically connected with power consumption equipment, so that the input end of the voltage conversion circuit inputs an analog signal to be tested of the power consumption equipment, and the output end of the voltage conversion circuit is connected with the first input end of the comparator;
the output end of the triangular wave generating circuit is connected with the second input end of the comparator.
Optionally, the voltage conversion circuit includes a sampling resistor and a first voltage proportional amplifying circuit;
the sampling resistor is used for being connected with the power consumption equipment in series;
the first voltage proportional amplifying circuit is used for amplifying the voltage of the sampling resistor and transmitting the amplified first voltage signal to the first input end of the comparator.
Optionally, the voltage conversion circuit includes a second voltage scaling circuit;
the second voltage proportional amplifying circuit is used for amplifying the voltage of the power consumption equipment and transmitting the amplified second voltage signal to the first input end of the comparator.
Optionally, the voltage conversion circuit includes a voltage dividing resistor and a grounding resistor;
the first end of the voltage dividing resistor is connected with the grounding resistor and the first input end of the comparator respectively, and the second end of the voltage dividing resistor is connected with the power consumption equipment in series.
Optionally, the triangle wave generating circuit comprises a resistor and a capacitor;
the first end of the resistor is used for being connected with the controller, and the second end of the resistor is respectively connected with the first end of the capacitor and the second input end of the comparator;
the second end of the capacitor is grounded.
Optionally, the signal acquisition circuit further comprises a controller;
the controller is connected with the output end of the comparator.
A second aspect of an embodiment of the present disclosure provides a signal acquisition method, which is applied to the signal acquisition circuit described in the first aspect, and the method includes:
the triangular wave generating circuit outputs triangular waves;
the voltage conversion circuit converts an analog signal to be detected of the power consumption equipment to output a converted voltage signal with a voltage value within the triangular wave voltage amplitude range;
the signal comparison circuit compares the voltage value of the triangular wave with the voltage value represented by the converted voltage signal through the comparator and outputs a corresponding PWM signal, wherein the PWM signal is used for determining the voltage value and/or the current value of the power consumption equipment.
Optionally, the signal acquisition circuit further comprises a controller, the method further comprising:
the controller determines a voltage value represented by the converted voltage signal according to the PWM signal and the voltage amplitude range of the triangular wave, and determines a voltage value and/or a current value of the power consumption equipment according to the voltage value.
Optionally, the voltage conversion circuit includes a sampling resistor and a first voltage proportional amplifying circuit, and a current of the sampling resistor is consistent with a current of the power consumption device;
the voltage conversion circuit converts an analog signal to be measured of the power consumption device to output a converted voltage signal having a voltage value within the triangle wave voltage amplitude range, and includes:
the first voltage proportional amplifying circuit amplifies a sampling voltage signal corresponding to the sampling resistor to obtain the conversion voltage signal with a voltage value within the triangular wave voltage amplitude range;
the controller determining a current value of the power consuming device from a voltage value characterized by the converted voltage signal, comprising:
the controller determines the voltage value represented by the sampling voltage signal according to the voltage value represented by the conversion voltage signal and the amplification ratio of the first voltage proportional amplifying circuit, and determines the current value of the power consumption equipment according to the voltage value represented by the sampling voltage signal and the resistance value of the sampling resistor.
Optionally, the method further comprises:
the controller determines the power consumption of the power consumption device according to the current value of the power consumption device and a pre-acquired fixed voltage value of the power consumption device.
Optionally, the voltage conversion circuit includes a second voltage scaling circuit;
the voltage conversion circuit converts an analog signal to be measured of the power consumption device to output a converted voltage signal having a voltage value within the triangle wave voltage amplitude range, and includes:
the second voltage proportional amplifying circuit amplifies a voltage signal to be detected of the power consumption equipment to obtain the converted voltage signal with a voltage value within the triangular wave voltage amplitude range;
the controller determining a voltage value of the power consumption device according to the voltage value characterized by the converted voltage signal, including:
the controller determines the voltage value represented by the voltage signal to be detected according to the voltage value represented by the converted voltage signal and the amplification ratio of the second voltage proportional amplifying circuit.
Optionally, the voltage conversion circuit includes a voltage dividing resistor connected in series with the power consumption device;
the controller determining a voltage value of the power consumption device according to the voltage value characterized by the converted voltage signal, including:
and the controller determines the voltage value of the power consumption equipment according to the voltage value represented by the converted voltage signal and the voltage value corresponding to the voltage dividing resistor.
A third aspect of an embodiment of the present disclosure provides a chip integrated with the signal acquisition circuit of any one of the first aspects.
According to the technical scheme, the triangular wave is output by the triangular wave generating circuit, the voltage converting circuit converts the analog signal to be tested of the power consumption equipment, so that the converted voltage signal with the voltage value within the range of the voltage amplitude of the triangular wave is output, on the basis, the voltage value of the triangular wave and the voltage value represented by the converted voltage signal are compared by the signal comparing circuit, and the corresponding PWM signal is output. In this way, the voltage value represented by the converted voltage signal can be determined from the PWM signal and the voltage amplitude range of the triangular wave, thereby determining the voltage value and/or the current value of the power consuming device. That is, by adopting the technical scheme provided by the disclosure, a special chip for analog-to-digital conversion is not required, but a comparator is used for comparing an analog signal to be detected of the power consumption equipment with a voltage value of a triangular wave to obtain a PWM waveform capable of reflecting the voltage signal, so that the voltage value and/or the current value of the power consumption equipment can be determined according to the PWM waveform, the limitation of a chip communication protocol is avoided, and the signal acquisition efficiency is improved on the basis of reducing the cost.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification, illustrate the disclosure and together with the description serve to explain, but do not limit the disclosure. In the drawings:
fig. 1 is a schematic diagram of a signal acquisition circuit according to the related art.
Fig. 2 is a schematic diagram of a signal acquisition circuit, according to an example embodiment.
Fig. 3 is a schematic diagram illustrating a comparison of a triangle wave signal with a voltage signal according to an exemplary embodiment.
Fig. 4 is a schematic diagram of another signal acquisition circuit shown according to an exemplary embodiment.
Fig. 5 is a schematic diagram of another signal acquisition circuit shown according to an exemplary embodiment.
Fig. 6 is a flow chart illustrating a method of signal acquisition according to an exemplary embodiment.
Detailed Description
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
Referring to fig. 1, fig. 1 is a schematic diagram of a signal acquisition circuit according to the related art. As shown in fig. 1, related art generally adopts an ADC dedicated chip to convert analog signals such as voltage or current of an electronic product into digital signals, and then transmits the digital signals to a controller through a communication interface compatible with a chip communication protocol such as I2C or SPI, thereby realizing the acquisition of actual power consumption of the electronic product from the controller. However, using an ADC-specific chip for analog-to-digital conversion increases product cost, and the transmission rate is limited by the chip communication protocol.
In view of this, an embodiment of the present disclosure provides a signal acquisition circuit, a chip, and a signal acquisition method, in which a triangle wave is output by a triangle wave generating circuit, a voltage conversion circuit converts an analog signal to be tested of a power consumption device, so as to output a converted voltage signal having a voltage value within a voltage amplitude range of the triangle wave, and on the basis, the voltage value of the triangle wave and a voltage value represented by the converted voltage signal are compared by a signal comparison circuit, and a corresponding PWM signal is output. In this way, the voltage value represented by the converted voltage signal can be determined from the PWM signal and the voltage amplitude range of the triangular wave, thereby determining the voltage value and/or the current value of the power consuming device. That is, the technical solution provided in the embodiments of the present disclosure does not need to set a special chip for analog-to-digital conversion, but may compare an analog signal to be detected of a power consumption device with a voltage value of a triangular wave through a comparator to obtain a PWM waveform capable of reflecting the voltage signal, so that the voltage value and/or the current value of the power consumption device may be determined according to the PWM waveform, which may not be limited by a chip communication protocol, and improve signal acquisition efficiency on the basis of reducing cost.
Schematic diagrams of a signal acquisition circuit 200 according to embodiments of the present disclosure are shown in fig. 2 to 5. As shown in fig. 2, in an exemplary embodiment of the present disclosure, the signal acquisition circuit 200 includes a triangular wave generation circuit 202, a voltage conversion circuit 203, and a signal comparison circuit 204, the signal comparison circuit 204 includes a comparator 2041;
the input end of the voltage conversion circuit 203 is used for being electrically connected with the power consumption equipment, so that the input end of the voltage conversion circuit 203 inputs an analog signal to be tested of the power consumption equipment, and the output end of the voltage conversion circuit 203 is connected with the first input end of the comparator 2041;
an output terminal of the triangular wave generating circuit 202 is connected to a second input terminal of the comparator 2041.
The power consumption device may be an electronic product or a power consumption device in an electronic product. The analog signal to be measured of the power consuming device may be a voltage signal and/or a current signal. The comparator 2041 in the signal comparison circuit 204 is for comparing the triangular wave signal output from the triangular wave generation circuit 202 and the converted voltage signal output from the voltage conversion circuit 203, thereby generating a PWM signal with a duty ratio varying in proportion to the converted voltage signal output from the voltage conversion circuit. The ratio between the duty ratio of the PWM signal and the converted voltage signal output by the voltage conversion circuit may be a forward ratio or a reverse ratio, which is not particularly limited in the present disclosure.
Referring to the example of fig. 3, on the basis of setting the ratio between the duty ratio of the PWM signal and the converted voltage signal output from the voltage conversion circuit to the forward ratio, a high level may be output in the case where the voltage value represented by the triangular wave is smaller than the voltage value output from the voltage conversion circuit 203, and a low level may be output in the case where the voltage value represented by the triangular wave is larger than the voltage value output from the voltage conversion circuit 203, thereby obtaining a PWM signal having the duty ratio in the forward ratio with the converted voltage signal. On the basis, the voltage value represented by the converted voltage signal can be determined according to the duty ratio of the PWM signal and the voltage amplitude range of the triangular wave.
For example, the voltage value characterized by the converted voltage signal may be determined by the following equation:
V rotation =V min +D*(V max -V min )
Wherein V is Rotation For converting the voltage value characterised by the voltage signal, V min Is the lowest voltage value of the triangular wave voltage amplitude range, V max The highest voltage value in the amplitude range of the triangular wave voltage is represented by D, and the duty ratio is represented by D.
Therefore, the value represented by the analog signal to be measured before conversion can be determined according to the voltage value represented by the converted voltage signal, and the value represented by the analog signal to be measured can be the voltage value or the current value of the power consumption equipment.
Optionally, the signal acquisition circuit may further comprise a controller, which may be used to connect the output of the comparator, so that the determination of the voltage value and/or the current value of the power consumption device from the PWM signal output by the comparator is achieved by the controller. In this embodiment, the triangular wave is output by the triangular wave generating circuit 202, the voltage converting circuit 203 converts the analog signal to be tested of the power consumption device, thereby outputting a converted voltage signal with a voltage value within the range of the voltage amplitude of the triangular wave, on the basis of which the voltage value of the triangular wave and the voltage value represented by the converted voltage signal are compared by the signal comparing circuit 204, and a corresponding PWM signal is output. In this way, the controller may analyze the duty cycle from the PWM signal and determine a voltage value represented by the converted voltage signal from the voltage amplitude range of the triangular wave, thereby determining a voltage value and/or a current value of the power consumption device. That is, by adopting the technical scheme provided by the disclosure, a special chip for analog-to-digital conversion is not required, but the comparator 2041 is used for comparing the analog signal to be detected of the power consumption device with the voltage value of the triangular wave to obtain the PWM waveform capable of reflecting the voltage signal, so that the voltage value and/or the current value of the power consumption device can be determined according to the PWM waveform, and the signal acquisition efficiency can be improved on the basis of reducing the cost without being limited by a chip communication protocol.
It should be noted that the speed at which the controller parses the duty cycle to obtain the voltage value and/or the current value of the power consumption device may depend on the frequency of the triangular wave, and the higher the frequency of the triangular wave, the faster the controller collects the signal. The frequency of the triangular wave is affected by the speed of the comparator 2041, so that comparators with different speeds can be selected according to actual conditions, and the signal acquisition efficiency can be flexibly controlled.
It should be further noted that the signal acquisition circuit 200 may be configured to acquire a voltage signal and/or a current signal of the power consumption device, and the voltage conversion circuit 203 in the signal acquisition circuit 200 is different according to the acquired analog signal to be measured. The voltage signal converted by the voltage conversion circuit 203 may be a voltage signal of the power consumption device or a voltage signal of a sampling resistor for determining a current signal of the power consumption device. According to ohm's law, the current signal of the sampling resistor is inversely proportional to the voltage signal, whereby the current signal of the sampling resistor can be determined from the voltage signal of the sampling resistor, and thus the current signal of the power consuming device.
In one possible implementation, the current signal of the power consuming device may be collected by providing a sampling resistor in series with the power consuming device in the voltage conversion circuit 203. Since the sampling resistor is connected in series with the power consumption device, the current of the sampling resistor coincides with the current of the power consumption device, whereby the current value of the power consumption device can be determined by measuring the current value of the sampling resistor.
It should be noted that the sampling resistor may be a precision resistor, so that a large waste of power consumption caused by the sampling resistor can be avoided. Since the resistance value of the precision resistor is generally small, the voltage signal generated by the current passing through the precision resistor is also small, and thus the voltage of the precision resistor can be amplified by the voltage proportional amplifying circuit. That is, the voltage conversion circuit 203 may include a sampling resistor and a first voltage proportional amplifying circuit.
As shown in fig. 4, in an exemplary embodiment of the present disclosure, the signal acquisition circuit 200 may include a triangle wave generation circuit 202, a voltage conversion circuit 203, and a signal comparison circuit 204, wherein the voltage conversion circuit 203 may include a sampling resistor 2031 and a first voltage proportional amplification circuit 2032;
the sampling resistor 2031 is used for being connected with power consumption equipment in series;
the first voltage proportional amplifying circuit 2032 is configured to amplify the voltage of the sampling resistor 2031 and to transmit the amplified first voltage signal to the first input terminal of the comparator 2041.
It is understood that in the case where the sampling resistor 2031 is connected in series with the power consumption device, the current of the sampling resistor 2031 coincides with the current of the power consumption device. On this basis, the sampling voltage signal corresponding to the sampling resistor may be amplified by the first voltage proportional amplifying circuit 2032, thereby obtaining a converted voltage signal having a voltage value within the triangular wave voltage amplitude range. The sampled voltage signal may represent a voltage value of the sampled resistor before the voltage of the sampled resistor is amplified, and the converted voltage signal (i.e., the first voltage signal) may represent a voltage value of the sampled resistor after the voltage of the sampled resistor is amplified. Thus, after comparing the voltage value of the triangular wave and the voltage value represented by the converted voltage signal by the signal comparison circuit 204 and outputting the corresponding PWM signal, the controller may determine the voltage value represented by the converted voltage signal according to the PWM signal and the voltage amplitude range of the triangular wave. In this way, the controller can determine the voltage value represented by the sampled voltage signal according to the voltage value represented by the converted voltage signal and the amplification ratio of the first voltage scaling circuit 2032, and determine the current value of the power consumption device according to the voltage value represented by the sampled voltage signal and the resistance value of the sampling resistor. The amplification ratio of the first voltage proportional amplifying circuit 2032 may be determined according to the actual situation, which is not particularly limited in the disclosure.
Taking the example of fig. 4, the first voltage scaling circuit 2032 may include a capacitor 20321, an operational amplifier 20322, and a number of resistors. The capacitor 20321 may be used for filtering, and in a specific implementation, the setting of the capacitor 20321 is not necessary, and whether to set the capacitor 20321 may be selected according to actual requirements. The operational amplifier 20322 and a plurality of resistors are used for amplifying the voltage signal of the sampling resistor 2031, wherein the arrangement manner of each circuit element can refer to the related technology. It should be understood that the placement and connection of the resistors in the operational amplifier may be changed according to actual requirements.
Since the voltage of the power consumption device may be a fixed value or may change continuously with other conditions, for example, the voltage of the notebook may decrease with decreasing electric power. Therefore, in the case of collecting voltage signals of power consumption devices, the voltage conversion circuit in the signal collection circuit 200 is also different for power consumption devices of different voltage types.
In an embodiment, in the case where the voltage of the power consumption device is fixed, a fixed voltage value of the power consumption device may be acquired in advance, whereby the power consumption of the power consumption device may be determined from the current value of the power consumption device determined based on the sampling resistor and the fixed voltage value of the power consumption device acquired in advance.
In another embodiment, in the case where the voltage of the power consumption device is not fixed, since the voltage ranges of the voltage variations of different power consumption devices are different, in the case where the voltage of the power consumption device varies in a high voltage range, a voltage dividing resistor connected in series with the power consumption device may be provided in the voltage conversion circuit 203, so that the magnitude of the voltage value output by the voltage conversion circuit 203 is reduced by the voltage division, so that the voltage value output by the voltage conversion circuit 203 is within the voltage amplitude range of the triangular wave. In the case where the voltage of the power consumption device fluctuates in a low voltage range, the voltage of the power consumption device can be amplified by the voltage proportional amplifying circuit so that the voltage value output by the voltage converting circuit 203 is within the voltage amplitude range of the triangular wave. It is to be understood that, when the voltage of the power consumption device varies within the voltage amplitude range of the triangular wave, the voltage signal of the power consumption device does not need to be converted by the voltage conversion circuit 203, but the voltage signal of the power consumption device may be directly input to the first input terminal of the comparator 2041. The specific values of the high voltage range and the low voltage range may be determined according to practical situations, which is not specifically limited in the disclosure.
In this way, when determining the voltage value of the power consumption device, the power consumption of the power consumption device can be determined from the current value of the power consumption device determined based on the sampling resistor and the voltage value.
As shown in fig. 5, in an exemplary embodiment of the present disclosure, in a case where the voltage of the power consumption device varies within a high voltage range, the signal acquisition circuit 200 may include a triangle wave generation circuit 202, a voltage conversion circuit 203, and a signal comparison circuit 204, wherein the voltage conversion circuit 203 in the signal acquisition circuit 200 may include a voltage division resistor 2033 and a ground resistor 2034;
the first terminal of the voltage dividing resistor 2033 is connected to the ground resistor 2034 and the first input terminal of the comparator 2041, respectively, and the second terminal of the voltage dividing resistor 2033 is used for being connected in series with the power consumption device.
It is to be understood that the voltage dividing resistor 2033 is connected in series with the power consumption device, whereby voltage division can be performed by the voltage dividing resistor 2033 so that the voltage value output by the voltage conversion circuit is within the triangular wave voltage amplitude range. On this basis, the voltage value represented by the converted voltage signal determined by the controller according to the PWM signal and the voltage amplitude range of the triangular wave is the voltage value divided by the voltage dividing resistor 2033, so that the voltage value of the power consumption device can be determined according to the voltage value represented by the converted voltage signal and the voltage value corresponding to the voltage dividing resistor. The voltage value of the voltage dividing resistor 2033 is related to the voltage fluctuation range of the power consumption device and the voltage amplitude range of the triangular wave. In some embodiments, the voltage value of the voltage dividing resistor 2033 required may be determined based on the maximum value of the power consumption device voltage variation range and the maximum value of the triangular wave voltage amplitude range.
It is understood that the voltage conversion circuit 203 may include a second voltage proportional amplifying circuit in the case where the voltage of the power consuming device fluctuates in a low voltage range.
The second voltage proportional amplifying circuit may be configured to amplify a voltage of the power consumption device and transmit the amplified second voltage signal to the first input terminal of the comparator 2041.
Thus, the voltage signal to be measured of the power consumption device can be amplified by the voltage conversion circuit 203 to obtain a converted voltage signal (i.e., the second voltage signal) having a voltage value within the range of the triangular wave voltage amplitude. The converted voltage signal may represent a voltage value of the power consumption device after the voltage is amplified. On the basis, the controller can determine the voltage value represented by the voltage signal to be measured, namely, the voltage value of the power consumption equipment according to the voltage value represented by the converted voltage signal and the amplification ratio of the second voltage proportional amplifying circuit after determining the voltage value represented by the converted voltage signal according to the PWM signal and the voltage amplitude range of the triangular wave. The amplification ratio of the second voltage proportional amplifying circuit may be determined according to practical situations, which is not particularly limited in the present disclosure.
In addition, the second voltage proportional amplifying circuit is similar to the first voltage proportional amplifying circuit 2032 in structure, and will not be described here again.
It should be noted that the circuit elements provided for different situations of the power consumption device may be connected in the same circuit by the gate switch. The arrangement of the gate switch may refer to the related art, which is not particularly limited in the present disclosure. The gate switch may be provided, for example, in a manner as shown in fig. 1, so that the circuit elements provided in the above-described different cases are connected in the same circuit. In this way, the voltage value or the current value of the power consumption device can be selectively collected by the gating switch. Further, the actual power consumption of the power consuming device may be determined on the basis of determining the voltage value and the current value of the power consuming device.
Alternatively, the triangular wave generation circuit 202 may include a resistor and a capacitor;
the first end of the resistor is used for being connected with the controller, and the second end of the resistor is respectively connected with the first end of the capacitor and the second input end of the comparator;
the second end of the capacitor is grounded.
The connection method of the circuit elements can be referred to as a triangle wave generation circuit 202 shown in fig. 4 and 5. The controller connected with the first end of the resistor can be a controller in the signal acquisition circuit or an external controller.
In one possible implementation, a controller inside the signal acquisition circuit may be connected to the input of the triangular wave generation circuit, so that 50% of the standard square wave is generated by the controller, and on this basis, the standard square wave is filtered by an RC filter circuit formed by a resistor and a capacitor, so as to generate the triangular wave. In this process, the slope and amplitude of the triangular wave waveform can be adjusted by adjusting the resistance value of the resistor and/or the capacitance value of the capacitor. The voltage amplitude range of the triangular wave may be determined according to practical situations, which is not specifically limited in the present disclosure. The first end of the resistor may be connected to an external controller and a standard square wave is generated by the external controller.
It should be appreciated that the triangle wave generation circuit 202 has low cost, and the triangle wave output by the triangle wave generation circuit 202 can effectively control the cost of the signal acquisition circuit. In one possible implementation, other circuit arrangements may also be used to output the triangular wave, which is not specifically limited in this disclosure.
Through the above technical scheme, the triangular wave generating circuit 202 is utilized to output triangular waves, the voltage converting circuit 203 converts analog signals to be tested of the power consumption equipment, so as to output converted voltage signals with voltage values within the range of the voltage amplitude of the triangular waves, on the basis, the signal comparing circuit 204 is utilized to compare the voltage values of the triangular waves and the voltage values represented by the converted voltage signals, and corresponding PWM signals are output. In this way, the controller can determine the voltage value characterized by the converted voltage signal, and thus the voltage value and/or the current value of the power consumption device, based on the PWM signal and the voltage amplitude range of the triangular wave. That is, by adopting the technical scheme provided by the disclosure, a special chip for analog-to-digital conversion is not required, but the comparator 2041 is used for comparing the analog signal to be detected of the power consumption device with the voltage value of the triangular wave to obtain the PWM waveform capable of reflecting the voltage signal, so that the voltage value and/or the current value of the power consumption device can be determined according to the PWM waveform, and the signal acquisition efficiency can be improved on the basis of reducing the cost without being limited by a chip communication protocol.
Based on the same concept, the present disclosure also provides a signal acquisition method, referring to fig. 6, fig. 6 is a flowchart illustrating a signal acquisition method according to an exemplary embodiment. The signal acquisition method may be applied to the signal acquisition circuit described above, as shown in fig. 6, and may include:
s501, a triangular wave generating circuit outputs triangular waves;
s502, converting an analog signal to be tested of the power consumption equipment by the voltage conversion circuit to output a converted voltage signal with a voltage value within the range of the triangular wave voltage amplitude;
s503, the signal comparison circuit compares the voltage value of the triangular wave and the voltage value represented by the converted voltage signal through the comparator and outputs a corresponding PWM signal, wherein the PWM signal is used for determining the voltage value and/or the current value of the power consumption equipment.
For example, in response to an analog signal to be measured input from an electric power consumption device, a triangular wave may be output through a triangular wave generating circuit, and the analog signal to be measured is converted through a voltage converting circuit, thereby outputting a converted voltage signal having a voltage value within a range of an amplitude of the triangular wave. On the basis, the voltage value of the triangular wave and the voltage value represented by the converted voltage signal can be compared by the signal comparison circuit, and the corresponding PWM signal is output. In this way, the voltage value represented by the converted voltage signal can be determined from the PWM signal and the voltage amplitude range of the triangular wave, thereby determining the voltage value and/or the current value of the power consuming device. That is, by adopting the technical scheme provided by the disclosure, a special chip for analog-to-digital conversion is not required, but a comparator is used for comparing an analog signal to be detected of the power consumption equipment with a voltage value of a triangular wave to obtain a PWM waveform capable of reflecting the voltage signal, so that the voltage value and/or the current value of the power consumption equipment can be determined according to the PWM waveform, the limitation of a chip communication protocol is avoided, and the signal acquisition efficiency is improved on the basis of reducing the cost.
By way of example, the voltage value and the current value of the notebook computer can be collected by the signal collection method of the embodiment of the disclosure, so that the power consumption of the notebook computer can be determined. On the basis that the notebook computer is connected into the signal acquisition circuit, the voltage value of the notebook computer can be converted through the voltage conversion circuit, so that a converted voltage signal with the voltage value within the range of the voltage amplitude of the triangular wave is output, on the basis, the voltage value of the triangular wave and the voltage value represented by the converted voltage signal are compared through the signal comparison circuit, and a corresponding PWM signal is output. Therefore, the voltage value represented by the converted voltage signal can be determined through the voltage amplitude range of the PWM signal and the triangular wave, and the voltage value of the notebook computer can be determined according to the voltage value. In addition, a sampling resistor may be connected in series with the notebook computer in the voltage conversion circuit, and a voltage signal of the sampling resistor is collected, whereby a current value may be determined according to the determined voltage value and resistance value of the sampling resistor. Because the sampling resistor is connected with the notebook computer in series in the loop, the current value of the notebook computer can be determined according to the current value of the sampling resistor. Therefore, the power consumption of the notebook computer can be determined according to the determined voltage value and current value of the notebook computer, and corresponding limiting measures are adopted to reduce the power consumption under the condition that the actually determined power consumption exceeds the rated power and the heat dissipation requirement of the notebook computer, so that the stability of the notebook computer is ensured.
In an embodiment, the signal acquisition circuit may further include a controller, and on the basis of this, the technical scheme provided in the embodiment of the disclosure may further include:
the controller determines a voltage value represented by the converted voltage signal according to the PWM signal and the voltage amplitude range of the triangular wave, and determines a voltage value and/or a current value of the power consumption equipment according to the voltage value.
In an embodiment, the voltage conversion circuit may include a sampling resistor and a first voltage scaling circuit, wherein a current of the sampling resistor is consistent with a current of the power consumption device. On this basis, the step S502 may include:
the first voltage proportional amplifying circuit amplifies a sampling voltage signal corresponding to the sampling resistor to obtain a conversion voltage signal with a voltage value within the range of the triangular wave voltage amplitude;
thus, the step of the controller determining the current value of the power consuming device from the voltage value characterized by the converted voltage signal may comprise:
the controller determines the voltage value represented by the sampling voltage signal according to the voltage value represented by the conversion voltage signal and the amplification ratio of the first voltage proportional amplifying circuit, and determines the current value of the power consumption equipment according to the voltage value represented by the sampling voltage signal and the resistance value of the sampling resistor.
In an embodiment, the technical solution provided by the embodiment of the disclosure may further include:
the controller determines the power consumption of the power consumption device according to the current value of the power consumption device and the pre-acquired fixed voltage value of the power consumption device.
In an embodiment, the voltage conversion circuit may include a second voltage proportional amplifying circuit, and the step S502 may include:
the second voltage proportional amplifying circuit amplifies a voltage signal to be detected of the power consumption equipment to obtain a converted voltage signal with a voltage value within a triangular wave voltage amplitude range;
thus, the step of the controller determining the voltage value of the power consuming device from the voltage value characterized by the converted voltage signal may comprise:
the controller determines the voltage value represented by the voltage signal to be measured according to the voltage value represented by the converted voltage signal and the amplification ratio of the second voltage proportional amplifying circuit.
In one embodiment, the voltage conversion circuit may include a voltage dividing resistor, wherein the voltage dividing resistor is connected in series with the power consumption device. On the basis, the step of determining, by the controller, the voltage value of the power consuming device from the voltage value characterized by the converted voltage signal may comprise:
the controller determines the voltage value of the power consumption equipment according to the voltage value represented by the converted voltage signal and the voltage value corresponding to the voltage dividing resistor.
With respect to the signal acquisition method in the above-described embodiment, each step has been described in detail in the embodiment regarding the signal acquisition circuit, and will not be described in detail herein.
Based on the same concept, the present disclosure also provides an electronic device, which may include: a processor, a memory. The electronic device may also include one or more of a multimedia component, an input/output (I/O) interface, and a communication component.
The processor is used for controlling the whole operation of the electronic device so as to complete all or part of the steps in the signal acquisition method. The memory is used to store various types of data to support operation at the electronic device, which may include, for example, instructions for any application or method operating on the electronic device, as well as application-related data, such as contact data, messages, pictures, audio, video, and so forth. The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components may include a screen and audio components. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in a memory or transmitted through a communication component. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface provides an interface between the processor and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component is used for wired or wireless communication between the electronic device and other devices. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near Field Communication, NFC for short), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or a combination of more of them, is not limited herein. The corresponding communication assembly may thus comprise: wi-Fi module, bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated ASIC), digital signal processor (Digital Signal Processor, abbreviated DSP), digital signal processing device (Digital Signal Processing Device, abbreviated DSPD), programmable logic device (Programmable Logic Device, abbreviated PLD), field programmable gate array (Field Programmable Gate Array, abbreviated FPGA), controller, microcontroller, microprocessor, or other electronic component for performing the signal acquisition method described above.
In another exemplary embodiment, a computer readable storage medium is also provided comprising program instructions which, when executed by a processor, implement the steps of the signal acquisition method described above. For example, the computer readable storage medium may be the memory described above including program instructions executable by a processor of an electronic device to perform the signal acquisition method described above.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned signal acquisition method when being executed by the programmable apparatus.
Based on the same conception, the disclosure also provides a chip integrated with the signal acquisition circuit.
The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure, and all the simple modifications belong to the protection scope of the present disclosure.
In addition, the specific features described in the foregoing embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, the present disclosure does not further describe various possible combinations.
Moreover, any combination between the various embodiments of the present disclosure is possible as long as it does not depart from the spirit of the present disclosure, which should also be construed as the disclosure of the present disclosure.

Claims (13)

1. The signal acquisition circuit is characterized by comprising a triangular wave generation circuit, a voltage conversion circuit and a signal comparison circuit, wherein the signal comparison circuit comprises a comparator;
the input end of the voltage conversion circuit is used for being electrically connected with power consumption equipment, so that the input end of the voltage conversion circuit inputs an analog signal to be tested of the power consumption equipment, and the output end of the voltage conversion circuit is connected with the first input end of the comparator;
the output end of the triangular wave generating circuit is connected with the second input end of the comparator.
2. The signal acquisition circuit of claim 1, wherein the voltage conversion circuit comprises a sampling resistor and a first voltage scaling circuit;
the sampling resistor is used for being connected with the power consumption equipment in series;
the first voltage proportional amplifying circuit is used for amplifying the voltage of the sampling resistor and transmitting the amplified first voltage signal to the first input end of the comparator.
3. The signal acquisition circuit of claim 1, wherein the voltage conversion circuit comprises a second voltage scaling circuit;
the second voltage proportional amplifying circuit is used for amplifying the voltage of the power consumption equipment and transmitting the amplified second voltage signal to the first input end of the comparator.
4. The signal acquisition circuit of claim 1, wherein the voltage conversion circuit comprises a voltage dividing resistor and a ground resistor;
the first end of the voltage dividing resistor is connected with the grounding resistor and the first input end of the comparator respectively, and the second end of the voltage dividing resistor is connected with the power consumption equipment in series.
5. The signal acquisition circuit of any one of claims 1-4, wherein the triangular wave generation circuit comprises a resistor and a capacitor;
the first end of the resistor is used for being connected with the controller, and the second end of the resistor is respectively connected with the first end of the capacitor and the second input end of the comparator;
the second end of the capacitor is grounded.
6. The signal acquisition circuit of any one of claims 1-4, wherein the signal acquisition circuit further comprises a controller;
the controller is connected with the output end of the comparator.
7. A signal acquisition method, characterized in that the method is applied to the signal acquisition circuit of claim 1, the method comprising:
the triangular wave generating circuit outputs triangular waves;
the voltage conversion circuit converts an analog signal to be detected of the power consumption equipment to output a converted voltage signal with a voltage value within the triangular wave voltage amplitude range;
the signal comparison circuit compares the voltage value of the triangular wave with the voltage value represented by the converted voltage signal through the comparator and outputs a corresponding PWM signal, wherein the PWM signal is used for determining the voltage value and/or the current value of the power consumption equipment.
8. The signal acquisition method of claim 7, wherein the signal acquisition circuit further comprises a controller, the method further comprising:
the controller determines a voltage value represented by the converted voltage signal according to the PWM signal and the voltage amplitude range of the triangular wave, and determines a voltage value and/or a current value of the power consumption equipment according to the voltage value.
9. The signal acquisition method according to claim 8, wherein the voltage conversion circuit includes a sampling resistor and a first voltage proportional amplification circuit, a current of the sampling resistor being identical to a current of the power consumption device;
the voltage conversion circuit converts an analog signal to be measured of the power consumption device to output a converted voltage signal having a voltage value within the triangle wave voltage amplitude range, and includes:
the first voltage proportional amplifying circuit amplifies a sampling voltage signal corresponding to the sampling resistor to obtain the conversion voltage signal with a voltage value within the triangular wave voltage amplitude range;
the controller determining a current value of the power consuming device from a voltage value characterized by the converted voltage signal, comprising:
the controller determines the voltage value represented by the sampling voltage signal according to the voltage value represented by the conversion voltage signal and the amplification ratio of the first voltage proportional amplifying circuit, and determines the current value of the power consumption equipment according to the voltage value represented by the sampling voltage signal and the resistance value of the sampling resistor.
10. The signal acquisition method of claim 9, wherein the method further comprises:
the controller determines the power consumption of the power consumption device according to the current value of the power consumption device and a pre-acquired fixed voltage value of the power consumption device.
11. The signal acquisition method of claim 8, wherein the voltage conversion circuit comprises a second voltage scaling circuit;
the voltage conversion circuit converts an analog signal to be measured of the power consumption device to output a converted voltage signal having a voltage value within the triangle wave voltage amplitude range, and includes:
the second voltage proportional amplifying circuit amplifies a voltage signal to be detected of the power consumption equipment to obtain the converted voltage signal with a voltage value within the triangular wave voltage amplitude range;
the controller determining a voltage value of the power consumption device according to the voltage value characterized by the converted voltage signal, including:
the controller determines the voltage value represented by the voltage signal to be detected according to the voltage value represented by the converted voltage signal and the amplification ratio of the second voltage proportional amplifying circuit.
12. The signal acquisition method according to claim 8, wherein the voltage conversion circuit includes a voltage dividing resistor connected in series with the power consumption device;
the controller determining a voltage value of the power consumption device according to the voltage value characterized by the converted voltage signal, including:
and the controller determines the voltage value of the power consumption equipment according to the voltage value represented by the converted voltage signal and the voltage value corresponding to the voltage dividing resistor.
13. A chip, characterized in that it is integrated with the signal acquisition circuit of any one of claims 1-6.
CN202310267839.0A 2023-03-14 2023-03-14 Signal acquisition circuit, chip and signal acquisition method Pending CN116366063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310267839.0A CN116366063A (en) 2023-03-14 2023-03-14 Signal acquisition circuit, chip and signal acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310267839.0A CN116366063A (en) 2023-03-14 2023-03-14 Signal acquisition circuit, chip and signal acquisition method

Publications (1)

Publication Number Publication Date
CN116366063A true CN116366063A (en) 2023-06-30

Family

ID=86913017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310267839.0A Pending CN116366063A (en) 2023-03-14 2023-03-14 Signal acquisition circuit, chip and signal acquisition method

Country Status (1)

Country Link
CN (1) CN116366063A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116879623A (en) * 2023-09-04 2023-10-13 摩尔线程智能科技(北京)有限责任公司 Power consumption acquisition circuit, method and chip

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116879623A (en) * 2023-09-04 2023-10-13 摩尔线程智能科技(北京)有限责任公司 Power consumption acquisition circuit, method and chip
CN116879623B (en) * 2023-09-04 2023-12-08 摩尔线程智能科技(北京)有限责任公司 Power consumption acquisition circuit, method and chip

Similar Documents

Publication Publication Date Title
KR101274821B1 (en) Electronic device, and open circuit detecting system, detecting method thereof
CN116366063A (en) Signal acquisition circuit, chip and signal acquisition method
SG178487A1 (en) Sensor device
CN111007389B (en) Testing arrangement of mainboard
CN103671182A (en) Fan rotation speed control device
EP2887552A1 (en) Protection circuit for analog-to-digital converter used in a digital power supply and circuit protection method
CN106226585A (en) Voltage monitor and electronic equipment monitoring device
CN102400933A (en) Fan drive circuit
CN219611764U (en) Signal acquisition circuit and chip
KR20210114990A (en) Current detection circuit for loudspeaker
CN214591154U (en) Bias voltage circuit, photoelectric detection module and oxygen partial pressure sensor
CN215818094U (en) Signal processing device
JP2007159020A (en) Current/voltage-converting circuit
US9825600B2 (en) Class D amplifier and electronic devices including the same
CN114189292A (en) Power detection circuit, power amplifier module and radio frequency front end architecture
JP2017188733A (en) Signal processing circuit, coulomb counter circuit, and electronic equipment
CN112986635B (en) Programmable electronic load and battery testing device
CN116879623B (en) Power consumption acquisition circuit, method and chip
CN110896296A (en) Electric pump and control method
JP2006128909A (en) Voltage generation circuit and audio signal processor using the same
CN116165471B (en) Signal overload monitoring system, monitoring method and programmable gain amplifier
US8767900B2 (en) Signal transition detection circuit and method of the same
CN211263652U (en) Line load and fault detection system based on STM32 singlechip
CN220173227U (en) Data acquisition circuit and system
CN110346638B (en) High-sensitivity detection circuit and method for monitoring output power of RF system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination