Signal acquisition circuit, chip, and signal acquisition method
The signal acquisition method that combines the triangle wave generation circuit and the voltage conversion circuit solves the problems of high cost and limited transmission rate in the existing technology, achieves efficient signal acquisition, and ensures the stability and power consumption management of electronic products.
Patent Information
- Application Number
- PCT/CN2024/080625
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-14
- Filing Date
- 2024-03-07
- Publication Date
- 2024-09-19
AI Technical Summary
When obtaining the power of electronic products using existing technology, the cost is high and the transmission rate is limited by the chip communication protocol, making it difficult to effectively reduce power consumption and ensure stability.
The triangle wave generating circuit is used to output a triangle wave, the voltage conversion circuit converts the analog signal to be measured of the power-consuming equipment, and the signal comparison circuit compares the size of the triangle wave and the converted voltage signal, and outputs a PWM signal to determine the voltage value and/or current value of the power-consuming equipment. , avoiding the need to use a dedicated analog-to-digital conversion chip.
It achieves improved signal collection efficiency on the basis of cost reduction, avoids the limitations of chip communication protocols, can quickly determine the voltage and/or current values of power-consuming equipment, and ensures the stability of electronic products.
Smart Images

Figure CN2024080625_19092024_PF_FP_ABST
Abstract
Description
Signal acquisition circuit, chip and signal acquisition method
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to the Chinese patent application with application number 202310267839.0, entitled “Signal acquisition circuit, chip and signal acquisition method”, filed with the Chinese Patent Office on March 14, 2023, and application number 202320539448.5, entitled “Signal acquisition circuit and chip”, filed with the Chinese Patent Office on March 14, 2023, the entire contents of which are incorporated by reference into this disclosure. Technical Field
[0003] The present disclosure relates to the technical field of electronic circuits, and in particular, to a signal acquisition circuit, a chip, and a signal acquisition method. Background Art
[0004] Currently, the power consumption of an electronic product can be obtained through its controller. When the actual power consumption of the electronic product exceeds the rated power of the power supply and the heat dissipation requirements, corresponding limiting measures can be taken to reduce the power consumption, thereby ensuring the stability of the electronic product.
[0005] Related technologies typically use dedicated ADC (analog-to-digital converter) chips to convert analog signals such as voltage or current in electronic products into digital signals. These digital signals are then transmitted to a controller via chip communication protocols such as I2C or SPI, allowing the controller to obtain the actual power consumption of the electronic product. However, dedicated ADC chips are expensive, and their transmission speed is limited by the chip communication protocol.
[0006] Summary of the Invention
[0007] The purpose of the present disclosure is to provide a signal acquisition circuit, a chip and a signal acquisition method to improve signal acquisition efficiency while reducing costs.
[0008] To achieve the above-mentioned object, a first aspect of an embodiment of the present disclosure provides a signal acquisition circuit, comprising a triangle wave generating circuit, a voltage conversion circuit, and a signal comparison circuit, wherein the signal comparison circuit comprises a comparator;
[0009] The input end of the voltage conversion circuit is used to be electrically connected to the power-consuming device, so that the input end of the voltage conversion circuit inputs the analog signal to be measured of the power-consuming device, and the output end of the voltage conversion circuit is connected to the first input end of the comparator;
[0010] The output end of the triangle wave generating circuit is connected to the second input end of the comparator.
[0011] Optionally, the voltage conversion circuit includes a sampling resistor and a first voltage proportional amplification circuit;
[0012] The sampling resistor is used to be connected in series with the power-consuming device;
[0013] The first voltage proportional amplifier circuit is used to amplify the voltage of the sampling resistor and transmit the amplified first voltage signal to the first input terminal of the comparator.
[0014] Optionally, the voltage conversion circuit includes a second voltage proportional amplification circuit;
[0015] The second voltage proportional amplifying circuit is used to amplify the voltage of the power-consuming device and transmit the amplified second voltage signal to the first input terminal of the comparator.
[0016] Optionally, the voltage conversion circuit includes a voltage dividing resistor and a grounding resistor;
[0017] The first end of the voltage-dividing resistor is respectively connected to the grounding resistor and the first input end of the comparator, and the second end of the voltage-dividing resistor is used to be connected in series with the power-consuming device.
[0018] Optionally, the triangle wave generating circuit includes a resistor and a capacitor;
[0019] The first end of the resistor is used to connect to the controller, and the second end of the resistor is respectively connected to the first end of the capacitor and the second input end of the comparator;
[0020] The second terminal of the capacitor is grounded.
[0021] Optionally, the signal acquisition circuit further includes a controller;
[0022] The controller is connected to the output terminal of the comparator.
[0023] Optionally, the controller is also connected to the input end of the triangle wave generating circuit.
[0024] Optionally, the sampling resistor is a precision resistor.
[0025] Optionally, the first voltage proportional amplification circuit includes a capacitor and an operational amplifier;
[0026] The capacitor is connected in parallel with the operational amplifier.
[0027] A second aspect of the present disclosure provides a signal acquisition method, which is applied to the signal acquisition circuit described in the first aspect. The method includes:
[0028] The triangular wave generating circuit outputs a triangular wave;
[0029] The voltage conversion circuit converts the analog signal to be measured of the power-consuming device to output a conversion voltage signal with a voltage value within the amplitude range of the triangular wave voltage;
[0030] 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 to determine the voltage value and / or current value of the power-consuming device.
[0031] Optionally, the signal acquisition circuit further includes a controller, and the method further includes:
[0032] 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 consuming device according to the voltage value.
[0033] Optionally, the voltage conversion circuit includes a sampling resistor and a first voltage proportional amplification circuit, and the current of the sampling resistor is consistent with the current of the power-consuming device;
[0034] The voltage conversion circuit converts the analog signal to be measured of the power-consuming device to output a converted voltage signal with a voltage value within the amplitude range of the triangular wave voltage, including:
[0035] The first voltage proportional amplifying circuit amplifies the sampling voltage signal corresponding to the sampling resistor to obtain the conversion voltage signal whose voltage value is within the amplitude range of the triangular wave voltage;
[0036] The controller determines the current value of the power-consuming device according to the voltage value represented by the converted voltage signal, including:
[0037] The controller determines 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 proportional amplification circuit, and determines the current value of the power-consuming device according to the voltage value represented by the sampled voltage signal and the resistance value of the sampling resistor.
[0038] Optionally, the method further includes:
[0039] The controller determines the power consumption of the power consuming device according to a current value of the power consuming device and a pre-acquired fixed voltage value of the power consuming device.
[0040] Optionally, the voltage conversion circuit includes a second voltage proportional amplification circuit;
[0041] The voltage conversion circuit converts the analog signal to be measured of the power-consuming device to output a converted voltage signal with a voltage value within the amplitude range of the triangular wave voltage, including:
[0042] The second voltage proportional amplifying circuit amplifies the voltage signal to be measured of the power consuming device to obtain the converted voltage signal whose voltage value is within the amplitude range of the triangular wave voltage;
[0043] The controller determines the voltage value of the power-consuming device according to the voltage value represented by the converted voltage signal, including:
[0044] 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 amplification circuit.
[0045] Optionally, the voltage conversion circuit includes a voltage dividing resistor, and the voltage dividing resistor is connected in series with the power consuming device;
[0046] The controller determines the voltage value of the power-consuming device according to the voltage value represented by the converted voltage signal, including:
[0047] The controller determines the voltage value of the power-consuming device according to the voltage value represented by the converted voltage signal and the voltage value corresponding to the voltage-dividing resistor.
[0048] A third aspect of the embodiments of the present disclosure provides a chip integrating the signal acquisition circuit described in any one of the first aspects.
[0049] With the above technical solution, a triangular wave generating circuit is used to output a triangular wave, and a voltage conversion circuit converts the analog signal to be measured from the power-consuming device, thereby outputting a converted voltage signal having a voltage value within the voltage amplitude range of the triangular wave. Based on this, a signal comparison circuit compares the voltage value of the triangular wave with the voltage value represented by the converted voltage signal and outputs a corresponding PWM signal. In this way, the voltage value represented by the converted voltage signal can be determined based on the PWM signal and the voltage amplitude range of the triangular wave, thereby determining the voltage and / or current value of the power-consuming device. In other words, with the technical solution provided by the present disclosure, there is no need for a dedicated chip for analog-to-digital conversion. Instead, a comparator can be used to compare the analog signal to be measured from the power-consuming device with the voltage value of the triangular wave to obtain a PWM waveform that reflects the voltage signal. The voltage and / or current value of the power-consuming device can then be determined based on the PWM waveform. This eliminates the need for chip communication protocol limitations and improves signal acquisition efficiency while reducing costs.
[0050] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] 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 detailed description, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0052] FIG1 is a schematic diagram of a signal acquisition circuit according to the related art.
[0053] FIG2 is a schematic diagram showing a signal acquisition circuit according to an exemplary embodiment.
[0054] FIG3 is a schematic diagram showing a comparison between a triangular wave signal and a voltage signal according to an exemplary embodiment.
[0055] FIG4 is a schematic diagram showing another signal acquisition circuit according to an exemplary embodiment.
[0056] FIG5 is a schematic diagram showing another signal acquisition circuit according to an exemplary embodiment.
[0057] Fig. 6 is a flow chart showing a signal acquisition method according to an exemplary embodiment. DETAILED DESCRIPTION
[0058] The following describes the specific embodiments of the present disclosure in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure and are not intended to limit the present disclosure.
[0059] Referring to Figure 1, a schematic diagram of a signal acquisition circuit according to related art is shown. As shown in Figure 1, related art typically uses a dedicated ADC chip to convert analog signals, such as voltage or current, from electronic products into digital signals. The digital signals are then transmitted to a controller via a communication interface compatible with chip communication protocols such as I2C or SPI, thereby enabling the controller to obtain the actual power consumption of the electronic product. However, using a dedicated ADC chip for analog-to-digital conversion increases product costs, and the transmission rate is limited by the chip communication protocol.
[0060] In view of this, embodiments of the present disclosure provide a signal acquisition circuit, chip, and signal acquisition method. A triangular wave generating circuit outputs a triangular wave, and a voltage conversion circuit converts the analog signal to be measured from a power-consuming device, thereby outputting a converted voltage signal having a voltage value within the voltage amplitude range of the triangular wave. Furthermore, a signal comparison circuit compares the voltage value of the triangular wave with the voltage value represented by the converted voltage signal and outputs a corresponding PWM signal. In this way, the voltage value represented by the converted voltage signal can be determined based on the PWM signal and the voltage amplitude range of the triangular wave, thereby determining the voltage value and / or current value of the power-consuming device. In other words, the technical solution provided by embodiments of the present disclosure eliminates the need for a dedicated chip for analog-to-digital conversion. Instead, a comparator can be used to compare the analog signal to be measured from the power-consuming device with the voltage value of the triangular wave to obtain a PWM waveform that reflects the voltage signal. The voltage value and / or current value of the power-consuming device can then be determined based on the PWM waveform. This eliminates the limitations of chip communication protocols and improves signal acquisition efficiency while reducing costs.
[0061] Schematic diagrams of a signal acquisition circuit 200 provided by an embodiment of the present disclosure are shown in Figures 2 to 5. As shown in Figure 2, in an exemplary embodiment of the present disclosure, the signal acquisition circuit 200 includes a triangle wave generating circuit 202, a voltage conversion circuit 203, and a signal comparison circuit 204. The signal comparison circuit 204 includes a comparator 2041;
[0062] The input end of the voltage conversion circuit 203 is used to be electrically connected to the power-consuming device, so that the input end of the voltage conversion circuit 203 inputs the analog signal to be measured by the power-consuming device, and the output end of the voltage conversion circuit 203 is connected to the first input end of the comparator 2041;
[0063] The output terminal of the triangle wave generating circuit 202 is connected to the second input terminal of the comparator 2041 .
[0064] The power-consuming device may be an electronic product, or a power-consuming 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 used to compare the triangular wave signal output by the triangular wave generating circuit 202 and the converted voltage signal output by the voltage conversion circuit 203, thereby generating a PWM signal with a varying duty cycle, wherein the duty cycle of the PWM signal is proportional to the converted voltage signal output by the voltage conversion circuit. The ratio between the duty cycle of the PWM signal and the converted voltage signal output by the voltage conversion circuit may be a positive ratio or a negative ratio, which is not specifically limited in the present disclosure.
[0065] 3 , by setting the ratio between the duty cycle of the PWM signal and the converted voltage signal output by the voltage conversion circuit to be in direct proportion, a high level can be output when the voltage value represented by the triangular wave is less than the voltage value output by the voltage conversion circuit 203, and a low level can be output when the voltage value represented by the triangular wave is greater than the voltage value output by the voltage conversion circuit 203. This results in a PWM signal in which the duty cycle is in direct proportion to the converted voltage signal. Furthermore, the voltage value represented by the converted voltage signal can be determined based on the duty cycle of the PWM signal and the voltage amplitude range of the triangular wave.
[0066] For example, the voltage value represented by the converted voltage signal can be determined by the following formula: V 转 =V min +D*(V max -V min )
[0067] Among them, V 转 is the voltage value represented by the converted voltage signal, V min is the lowest voltage value of the triangle wave voltage amplitude range, V max is the highest voltage value in the triangle wave voltage amplitude range, and D is the duty cycle.
[0068] 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. The value represented by the analog signal to be measured can be the voltage value or current value of the power-consuming device.
[0069] Optionally, the signal acquisition circuit may further include a controller, which may be used to connect to the output terminal of the comparator, so as to determine the voltage value and / or current value of the power-consuming device according to the PWM signal output by the comparator through the controller.
[0070] In this embodiment, the triangular wave generating circuit 202 outputs a triangular wave, and the voltage conversion circuit 203 converts the analog signal to be measured from the power-consuming device, thereby outputting a converted voltage signal with a voltage value within the voltage amplitude range of the triangular wave. Based on this, the signal comparison circuit 204 compares the voltage value of the triangular wave with the voltage value represented by the converted voltage signal and outputs a corresponding PWM signal. In this way, the controller can analyze the duty cycle based on the PWM signal and determine the voltage value represented by the converted voltage signal based on the voltage amplitude range of the triangular wave, thereby determining the voltage and / or current value of the power-consuming device. In other words, the technical solution provided by the present disclosure eliminates the need for a dedicated chip for analog-to-digital conversion. Instead, the comparator 2041 can compare the analog signal to be measured from the power-consuming device with the voltage value of the triangular wave to generate a PWM waveform that reflects the voltage signal. The voltage and / or current value of the power-consuming device can then be determined based on the PWM waveform. This eliminates the limitations of chip communication protocols and improves signal acquisition efficiency while reducing costs.
[0071] It should be noted that the speed at which the controller analyzes the duty cycle to obtain the voltage and / or current values of the power-consuming device can depend on the frequency of the triangular wave. The higher the frequency of the triangular wave, the faster the controller acquires the signal. The frequency of the triangular wave is affected by the speed of comparator 2041. Therefore, comparators with different speeds can be selected based on actual conditions, thereby flexibly controlling signal acquisition efficiency.
[0072] It should also be noted that the signal acquisition circuit 200 can be used to acquire voltage signals and / or current signals from power-consuming devices. Depending on the analog signal being acquired, the voltage conversion circuit 203 in the signal acquisition circuit 200 may be different. The voltage signal converted by the voltage conversion circuit 203 may be the voltage signal of the power-consuming device, or the voltage signal of a sampling resistor used to determine the current signal of the power-consuming device. According to Ohm's law, the current signal of a sampling resistor is inversely proportional to the voltage signal. Therefore, the current signal of the sampling resistor can be determined based on the voltage signal of the sampling resistor, thereby determining the current signal of the power-consuming device.
[0073] In one possible implementation, a sampling resistor connected in series with the power-consuming device can be provided in the voltage conversion circuit 203 to collect the current signal of the power-consuming device. Since the sampling resistor is connected in series with the power-consuming device, the current of the sampling resistor is consistent with the current of the power-consuming device. Therefore, the current value of the power-consuming device can be determined by measuring the current value of the sampling resistor.
[0074] It should be noted that the sampling resistor can be a precision resistor, thereby avoiding the significant power consumption waste caused by the sampling resistor. Since the resistance value of a precision resistor is generally small, the voltage signal generated by current passing through the precision resistor is also small. Therefore, the voltage of the precision resistor can be amplified by a voltage proportional amplifier circuit. In other words, the voltage conversion circuit 203 can include a sampling resistor and a first voltage proportional amplifier circuit.
[0075] As shown in FIG4 , in an exemplary embodiment of the present disclosure, the signal acquisition circuit 200 may include a triangle wave generating 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 ;
[0076] The sampling resistor 2031 is used to be connected in series with the power-consuming device;
[0077] The first voltage proportional amplifier circuit 2032 is used to amplify the voltage of the sampling resistor 2031 and transmit the amplified first voltage signal to the first input terminal of the comparator 2041 .
[0078] It is understood that when the sampling resistor 2031 is connected in series with the power-consuming device, the current of the sampling resistor 2031 is consistent with the current of the power-consuming device. Based on this, the sampled voltage signal corresponding to the sampling resistor can be amplified by the first voltage proportional amplifier circuit 2032, thereby obtaining a converted voltage signal whose voltage value is within the triangular wave voltage amplitude range. The sampled voltage signal can represent the voltage value of the sampling resistor before amplification, and the converted voltage signal (i.e., the aforementioned first voltage signal) can represent the voltage value of the sampling resistor after amplification. Therefore, after the signal comparison circuit 204 compares the voltage value of the triangular wave with the voltage value represented by the converted voltage signal and outputs the corresponding PWM signal, the controller can determine the voltage value represented by the converted voltage signal based on 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 based on the voltage value represented by the converted voltage signal and the amplification ratio of the first voltage proportional amplifier circuit 2032, and determine the current value of the power-consuming device based on 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 amplification circuit 2032 can be determined according to actual conditions, and the present disclosure does not impose any specific limitation on this.
[0079] Continuing with the example of FIG. 4 , the first voltage proportional amplification circuit 2032 may include a capacitor 20321, an operational amplifier 20322, and a plurality of resistors. The capacitor 20321 may be connected in parallel with the operational amplifier 20322, and the capacitor 20321 may be used for filtering. In a specific implementation, the provision of the capacitor 20321 is not essential, and the provision of the capacitor 20321 may be selected based on actual needs. The operational amplifier 20322 and the plurality of resistors are used to amplify the voltage signal of the sampling resistor 2031, and the provision of each circuit element may refer to the relevant art. It should be understood that the placement and connection of the plurality of resistors in the operational amplifier may be changed based on actual needs.
[0080] Since the voltage of a power-consuming device can be a fixed value or can vary with other conditions, for example, the voltage of a laptop can drop as the battery level decreases, when collecting voltage signals from power-consuming devices, the voltage conversion circuits in the signal acquisition circuit 200 are different for power-consuming devices of different voltage types.
[0081] In one embodiment, when the voltage of the power consuming device is fixed, the fixed voltage value of the power consuming device may be acquired in advance, thereby determining the power consumption of the power consuming device based on the current value of the power consuming device determined based on the sampling resistor and the acquired fixed voltage value of the power consuming device.
[0082] In another embodiment, when the voltage of a power-consuming device is not fixed, because different power-consuming devices have different voltage ranges, if the voltage of the power-consuming device fluctuates within a high voltage range, a voltage-dividing resistor connected in series with the power-consuming device can be provided in the voltage conversion circuit 203. This voltage-dividing resistor reduces the magnitude of the voltage output by the voltage conversion circuit 203 through voltage division, ensuring that the voltage output by the voltage conversion circuit 203 falls within the voltage amplitude range of the triangular wave. If the voltage of the power-consuming device fluctuates within a low voltage range, the voltage of the power-consuming device can be amplified by a voltage proportional amplifier circuit, ensuring that the voltage output by the voltage conversion circuit 203 falls within the voltage amplitude range of the triangular wave. It is readily understood that if the voltage of the power-consuming device fluctuates within the voltage amplitude range of the triangular wave, the voltage signal of the power-consuming device does not need to be converted by the voltage conversion circuit 203. Instead, the voltage signal of the power-consuming device can 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 can be determined based on actual conditions and are not specifically limited in this disclosure.
[0083] Therefore, when the voltage value of the power consuming device is determined, the power consumption of the power consuming device can be determined based on the current value of the power consuming device determined based on the sampling resistor and the voltage value.
[0084] As shown in FIG5 , in an exemplary embodiment of the present disclosure, when the voltage of the power-consuming device varies within a high voltage range, the signal acquisition circuit 200 may include a triangle wave generating circuit 202 , a voltage conversion circuit 203 , and a signal comparison circuit 204 . The voltage conversion circuit 203 in the signal acquisition circuit 200 may include a voltage-dividing resistor 2033 and a grounding resistor 2034 .
[0085] A first end of the voltage-dividing resistor 2033 is connected to the grounding resistor 2034 and the first input end of the comparator 2041 , respectively. A second end of the voltage-dividing resistor 2033 is connected in series with the power-consuming device.
[0086] It is easy to understand that the voltage-dividing resistor 2033 is connected in series with the power-consuming device, thereby dividing the voltage through the voltage-dividing resistor 2033 so that the voltage value output by the voltage conversion circuit is within the triangular wave voltage amplitude range. Based on this, the controller determines the voltage value represented by the converted voltage signal based on the PWM signal and the voltage amplitude range of the triangular wave, which is the voltage value after the voltage is divided by the voltage-dividing resistor 2033. In this way, the voltage value of the power-consuming device can be determined based on 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 variation range of the power-consuming device and the voltage amplitude range of the triangular wave. In some embodiments, the required voltage value of the voltage-dividing resistor 2033 can be determined based on the maximum value of the voltage variation range of the power-consuming device and the maximum value of the triangular wave voltage amplitude range.
[0087] It is understandable that, when the voltage of the power-consuming device varies within a low voltage range, the voltage conversion circuit 203 may include a second voltage proportional amplification circuit.
[0088] The second voltage proportional amplifier circuit may be used to amplify the voltage of the power-consuming device and transmit the amplified second voltage signal to the first input terminal of the comparator 2041 .
[0089] Thus, the voltage signal to be measured of the power-consuming device can be amplified by the voltage conversion circuit 203 to obtain a converted voltage signal (i.e., the second voltage signal) whose voltage value is within the triangular wave voltage amplitude range. The converted voltage signal can represent the voltage value of the power-consuming device after being amplified. On this basis, the controller can determine the voltage value represented by the voltage signal to be measured based on the voltage value represented by the converted voltage signal and the amplification ratio of the second voltage proportional amplification circuit after determining the voltage value represented by the converted voltage signal based on the PWM signal and the voltage amplitude range of the triangular wave, thereby determining the voltage value represented by the voltage signal to be measured, that is, determining the voltage value of the power-consuming device. The amplification ratio of the second voltage proportional amplification circuit can be determined based on actual conditions and is not specifically limited in this disclosure.
[0090] In addition, the structure of the second voltage proportional amplifier circuit is similar to that of the first voltage proportional amplifier circuit 2032 , and is not further described here.
[0091] It should be noted that the circuit elements configured for different situations of the power-consuming device described above can be connected to the same circuit via a gating switch. The configuration of the gating switch can refer to related art and is not specifically limited in this disclosure. For example, the gating switch can be configured as shown in FIG. 1 , thereby connecting the circuit elements configured for the different situations described above to the same circuit. In this way, the gating switch can be used to selectively collect the voltage or current value of the power-consuming device. Furthermore, based on the voltage and current values of the power-consuming device, the actual power consumption of the power-consuming device can be determined.
[0092] Optionally, the triangle wave generating circuit 202 may include a resistor and a capacitor;
[0093] Wherein, the first end of the resistor is used to connect to the controller, and the second end of the resistor is respectively connected to the first end of the capacitor and the second input end of the comparator;
[0094] The second terminal of the capacitor is grounded.
[0095] The connection mode of each circuit element may refer to the triangle wave generating circuit 202 shown in Figures 4 and 5. The controller connected to the first end of the resistor may be a controller inside the signal acquisition circuit or an external controller.
[0096] In one possible implementation, the controller inside the signal acquisition circuit can be connected to the input end of the triangular wave generating circuit, so that a 50% standard square wave is generated by the controller. On this basis, the standard square wave is filtered by an RC filter circuit composed of a resistor and a capacitor to generate a 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 can be determined according to actual conditions, and this disclosure does not specifically limit this. In addition, the first end of the resistor can also be connected to an external controller, and the standard square wave is generated by the external controller.
[0097] It should be understood that the cost of the triangular wave generating circuit 202 is relatively low, and the triangular wave output by the triangular wave generating circuit 202 can effectively control the cost of the signal acquisition circuit. In one possible implementation, other circuit configurations can also be used to output the triangular wave, which is not specifically limited in this disclosure.
[0098] With the above technical solution, the triangular wave generating circuit 202 outputs a triangular wave, and the voltage conversion circuit 203 converts the analog signal to be measured from the power-consuming device, thereby outputting a converted voltage signal with a voltage value within the triangular wave voltage amplitude range. Based on this, the signal comparison circuit 204 compares the voltage value of the triangular wave with the voltage value represented by the converted voltage signal and outputs a corresponding PWM signal. In this way, the controller can determine the voltage value represented by the converted voltage signal based on the PWM signal and the voltage amplitude range of the triangular wave, thereby determining the voltage and / or current value of the power-consuming device. In other words, with this technical solution provided by the present disclosure, there is no need for a dedicated chip for analog-to-digital conversion. Instead, the comparator 2041 can compare the analog signal to be measured from the power-consuming device with the voltage value of the triangular wave to generate a PWM waveform that reflects the voltage signal. The voltage and / or current value of the power-consuming device can then be determined based on the PWM waveform. This eliminates the limitations of chip communication protocols and improves signal acquisition efficiency while reducing costs.
[0099] Based on the same concept, the present disclosure also provides a signal acquisition method, referring to FIG6 , which is a flow chart of a signal acquisition method according to an exemplary embodiment. The signal acquisition method can be applied to the above-mentioned signal acquisition circuit. As shown in FIG6 , the signal acquisition method may include:
[0100] S501, the triangle wave generating circuit outputs a triangle wave;
[0101] S502, a voltage conversion circuit converts the analog signal to be measured of the power-consuming device to output a converted voltage signal having a voltage value within a triangular wave voltage amplitude range;
[0102] S503 , the signal comparison circuit compares the voltage value of the triangular wave and the voltage value represented by the converted voltage signal through a comparator, and outputs a corresponding PWM signal, wherein the PWM signal is used to determine the voltage value and / or current value of the power-consuming device.
[0103] For example, in response to an analog signal to be measured input from a power-consuming device, a triangular wave can be output by a triangular wave generating circuit, and the analog signal to be measured can be converted by a voltage conversion circuit, thereby outputting a converted voltage signal having a voltage value within the triangular wave amplitude range. Furthermore, a signal comparison circuit can compare the voltage value of the triangular wave with the voltage value represented by the converted voltage signal and output a corresponding PWM signal. In this way, the voltage value represented by the converted voltage signal can be determined based on the PWM signal and the voltage amplitude range of the triangular wave, thereby determining the voltage and / or current value of the power-consuming device. In other words, the technical solution provided by the present disclosure eliminates the need for a dedicated chip for analog-to-digital conversion. Instead, a comparator can be used to compare the analog signal to be measured from the power-consuming device with the voltage value of the triangular wave to generate a PWM waveform that reflects the voltage signal. The voltage and / or current value of the power-consuming device can then be determined based on the PWM waveform. This eliminates the need for chip communication protocol limitations and improves signal acquisition efficiency while reducing costs.
[0104] For example, the signal acquisition method according to the embodiments of the present disclosure can be used to collect the voltage and current values of a laptop computer, thereby determining the laptop computer's power consumption. For example, upon connecting the laptop computer to the aforementioned signal acquisition circuit, the voltage of the laptop computer can be converted by a voltage conversion circuit, thereby outputting a converted voltage signal with a voltage value within the triangular wave voltage amplitude range. Furthermore, a signal comparison circuit compares the triangular wave voltage value with the voltage value represented by the converted voltage signal and outputs a corresponding PWM signal. Thus, the voltage value represented by the converted voltage signal can be determined based on the PWM signal and the triangular wave voltage amplitude range, and the laptop computer's voltage value can be determined based on this voltage value. Alternatively, a sampling resistor can be connected in series with the laptop computer in the voltage conversion circuit, and the voltage signal of the sampling resistor can be collected. The current value can then be determined based on the determined voltage and resistance values of the sampling resistor. Since the sampling resistor and the laptop computer are connected in series in the circuit, the laptop computer's current value can be determined based on the current value of the sampling resistor. In this way, the laptop computer's power consumption can be determined based on the determined voltage and current values of the laptop computer. If the actual power consumption exceeds the laptop computer's rated power and heat dissipation requirements, appropriate limiting measures can be taken to reduce the power consumption, thereby ensuring the laptop computer's stability.
[0105] In one embodiment, the signal acquisition circuit may further include a controller. On this basis, the technical solution provided by the embodiment of the present disclosure may further include:
[0106] 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-consuming device according to the voltage value.
[0107] In one embodiment, the voltage conversion circuit may include a sampling resistor and a first voltage proportional amplification circuit, wherein the current of the sampling resistor is consistent with the current of the power consuming device. On this basis, the above step S502 may include:
[0108] The first voltage proportional amplification circuit amplifies the sampling voltage signal corresponding to the sampling resistor to obtain a conversion voltage signal whose voltage value is within the range of the triangular wave voltage amplitude;
[0109] Therefore, the step of the controller determining the current value of the power-consuming device according to the voltage value represented by the converted voltage signal may include:
[0110] The controller determines 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 proportional amplification circuit, and determines the current value of the power consuming device according to the voltage value represented by the sampled voltage signal and the resistance value of the sampling resistor.
[0111] In one embodiment, the technical solution provided by the embodiment of the present disclosure may further include:
[0112] The controller determines the power consumption of the power consuming device according to the current value of the power consuming device and a pre-acquired fixed voltage value of the power consuming device.
[0113] In one embodiment, the voltage conversion circuit may include a second voltage proportional amplification circuit. Based on this, the above step S502 may include:
[0114] The second voltage proportional amplifying circuit amplifies the voltage signal to be measured of the power consuming device to obtain a converted voltage signal whose voltage value is within the range of the triangular wave voltage amplitude;
[0115] Therefore, the step of the controller determining the voltage value of the power-consuming device according to the voltage value represented by the converted voltage signal may include:
[0116] 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 amplification circuit.
[0117] In one embodiment, the voltage conversion circuit may include a voltage divider resistor, wherein the voltage divider resistor is connected in series with the power consuming device. Based on this, the controller may determine the voltage value of the power consuming device based on the voltage value represented by the converted voltage signal, which may include:
[0118] The controller determines the voltage value of the power-consuming device according to the voltage value represented by the converted voltage signal and the voltage value corresponding to the voltage-dividing resistor.
[0119] Regarding the signal acquisition method in the above embodiment, each step has been described in detail in the embodiment of the signal acquisition circuit, and will not be elaborated here.
[0120] Based on the same concept, the present disclosure also provides an electronic device, which may include: a processor, a memory, and one or more of a multimedia component, an input / output (I / O) interface, and a communication component.
[0121] The processor is used to control the overall operation of the electronic device to complete all or part of the steps in the above-mentioned signal acquisition method. The memory is used to store various types of data to support the operation of the electronic device. These data may include, for example, instructions for any application or method used to operate on the electronic device, as well as application-related data, such as contact data, messages sent and received, pictures, audio, video, etc. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The multimedia component may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input 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 sent through a communication component. The audio component also includes at least one speaker for outputting audio signals. The I / O interface provides an interface between the processor and other interface modules, and the above-mentioned other interface modules may be a keyboard, a 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 (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0122] In an exemplary embodiment, the electronic device may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned signal acquisition method.
[0123] In another exemplary embodiment, a computer-readable storage medium including program instructions is further provided. When executed by a processor, the program instructions implement the steps of the aforementioned signal acquisition method. For example, the computer-readable storage medium may be the aforementioned memory including the program instructions. The program instructions may be executed by a processor of an electronic device to perform the aforementioned signal acquisition method.
[0124] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and has a code portion for executing the above-mentioned signal acquisition method when executed by the programmable device.
[0125] Based on the same concept, the present disclosure also provides a chip integrating the above-mentioned signal acquisition circuit.
[0126] 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 of the above embodiments. Within the technical concept of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure, and these simple modifications all fall within the scope of protection of the present disclosure.
[0127] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any appropriate manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0128] In addition, the 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 includes a triangle wave generating circuit, a voltage conversion circuit and a signal comparison circuit, and the signal comparison circuit includes a comparator; The input end of the voltage conversion circuit is used to be electrically connected to the power-consuming device, so that the input end of the voltage conversion circuit inputs the analog signal to be tested of the power-consuming device, and the output end of the voltage conversion circuit is connected to the first input end of the comparator; The output end of the triangle wave generating circuit is connected to the second input end of the comparator.
2. The signal acquisition circuit according to claim 1, characterized in that: The voltage conversion circuit includes a sampling resistor and a first voltage proportional amplification circuit; The sampling resistor is used to be connected in series with the power-consuming device; The first voltage proportional amplifier circuit is used to amplify the voltage of the sampling resistor and transmit the amplified first voltage signal to the first input terminal of the comparator.
3. The signal acquisition circuit according to any one of claims 1 to 2, characterized in that: The voltage conversion circuit includes a second voltage proportional amplification circuit; The second voltage proportional amplifier circuit is used to amplify the voltage of the power-consuming device and transmit the amplified second voltage signal to the first input terminal of the comparator.
4. The signal acquisition circuit according to any one of claims 1 to 3, characterized in that: The voltage conversion circuit includes a voltage dividing resistor and a grounding resistor; The first end of the voltage-dividing resistor is respectively connected to the grounding resistor and the first input end of the comparator, and the second end of the voltage-dividing resistor is used to be connected in series with the power-consuming device.
5. The signal acquisition circuit according to any one of claims 1 to 4, characterized in that: The triangular wave generating circuit comprises a resistor and a capacitor; The first end of the resistor is used to connect to the controller, and the second end of the resistor is respectively connected to the first end of the capacitor and the second input end of the comparator; The second terminal of the capacitor is grounded.
6. 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 terminal of the comparator.
7. The signal acquisition circuit according to claim 6, characterized in that: The controller is also connected to the input end of the triangle wave generating circuit.
8. The signal acquisition circuit according to claim 2, characterized in that: The sampling resistor is a precision resistor.
9. The signal acquisition circuit according to claim 2, characterized in that: The first voltage proportional amplification circuit includes a capacitor and an operational amplifier; The capacitor is connected in parallel with the operational amplifier.
10. A signal acquisition method, characterized in that: The method is applied to the signal acquisition circuit according to claim 1, and the method comprises: The triangular wave generating circuit outputs a triangular wave; The voltage conversion circuit converts the analog signal to be tested of the power-consuming device to output a conversion voltage signal with a voltage value within the amplitude range of the triangular wave voltage; 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 to determine the voltage value and / or current value of the power-consuming device.
11. The signal acquisition method according to claim 10, characterized in that: The signal acquisition circuit further includes a controller, and the method further includes: The controller determines a voltage value represented by the conversion voltage signal according to the PWM signal and a voltage amplitude range of the triangular wave, and determines a voltage value and / or a current value of the power-consuming device according to the voltage value.
12. The signal acquisition method according to claim 11, characterized in that: The voltage conversion circuit includes a sampling resistor and a first voltage proportional amplification circuit, and the current of the sampling resistor is consistent with the current of the power consuming device; The voltage conversion circuit converts the analog signal to be tested of the power-consuming device to output a conversion voltage signal with a voltage value within the amplitude range of the triangular wave voltage, including: The first voltage proportional amplifier circuit amplifies the sampling voltage signal corresponding to the sampling resistor to obtain the conversion voltage signal whose voltage value is within the amplitude range of the triangular wave voltage; The controller determines the current value of the power-consuming device according to the voltage value represented by the converted voltage signal, including: The controller determines 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 proportional amplification circuit, and determines the current value of the power-consuming device according to the voltage value represented by the sampled voltage signal and the resistance value of the sampling resistor.
13. The signal acquisition method according to claim 12, characterized in that: The method further comprises: The controller generates a voltage signal based on a current value of the power consuming device and a pre-acquired fixed voltage value of the power consuming device. The power consumption of the power consuming device is determined.
14. The signal acquisition method according to any one of claims 11 to 13, characterized in that: The voltage conversion circuit includes a second voltage proportional amplification circuit; The voltage conversion circuit converts the analog signal to be tested of the power-consuming device to output a conversion voltage signal with a voltage value within the amplitude range of the triangular wave voltage, including: The second voltage proportional amplifier circuit amplifies the voltage signal to be measured of the power-consuming device to obtain the conversion voltage signal whose voltage value is within the amplitude range of the triangular wave voltage; The controller determines the voltage value of the power-consuming device according to the voltage value represented by the converted voltage signal, including: 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 amplification circuit.
15. The signal acquisition method according to any one of claims 11 to 14, characterized in that: The voltage conversion circuit includes a voltage dividing resistor, and the voltage dividing resistor is connected in series with the power consuming device; The controller determines the voltage value of the power-consuming device according to the voltage value represented by the converted voltage signal, including: The controller determines the voltage value of the power-consuming device according to the voltage value represented by the converted voltage signal and the voltage value corresponding to the voltage-dividing resistor.
16. A chip, characterized in that: The signal acquisition circuit according to any one of claims 1 to 9 is integrated.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the signal acquisition method according to any one of claims 10 to 15 are implemented.
Citation Information
Patent Citations
Analog-digital conversion method, analog-digital conversion controller and analog-digital conversion circuit
CN113556128A
Signal acquisition circuit, chip and signal acquisition method
CN116366063A
Voltage and current detecting device of power supply of radio-frequency remote system
CN202256480U
High-voltage direct-current voltage sampling circuit
CN216209427U
Detection method for fan motor current and current detector
JP2001281273A
