Signal sampling circuit, electric motor control circuit and signal sampling method

By introducing a second operational amplifier that is the same as the first operational amplifier in the signal sampling circuit to collect and amplify the ground signal of the sampling resistor, the problem of board-level interference is solved, and the accuracy of the signal sampling circuit and the efficiency of motor control are improved. Accuracy.

WO2024193588A1PCT designated stage expired Publication Date: 2024-09-26HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082734
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-21
Filing Date
2024-03-20
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Signal sampling circuits are susceptible to board-level interference in home appliance motor control. Existing improvement methods are time-consuming and ineffective, making it difficult to effectively remove conduction interference and interference introduced by power supply ripple.

Method used

An additional second operational amplifier is used to collect and amplify the ground terminal signal of the sampling resistor. The second operational amplifier, which is the same as the first operational amplifier and has consistent wiring, is used to obtain and remove board-level interference signals, thereby improving the efficiency of the signal sampling circuit. Accuracy.

Benefits of technology

The time required for signal sampling is reduced, the accuracy of the sampling resistor signal is significantly improved, and the accuracy of motor current sampling and motor control accuracy are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082734_26092024_PF_FP
    Figure CN2024082734_26092024_PF_FP
Patent Text Reader

Abstract

The present application relates to the technical field of chips. Provided are a signal sampling circuit, an electric motor control circuit and a signal sampling method, which can solve the problem of board-level interference to which a signal sampling circuit is subjected. The signal sampling circuit comprises a sampling resistor, a first amplification circuit and a second amplification circuit, wherein a first end of the sampling resistor is coupled to an input end of a signal sampling circuit, and a second end of the sampling resistor is coupled to a grounding end; a first input end of a first operational amplifier is coupled to the first end of the sampling resistor, a second input end of the first operational amplifier is coupled to the second end of the sampling resistor, and an output end of the first operational amplifier is coupled to a first output end of the signal sampling circuit; and a first input end and a second input end of a second operational amplifier are both coupled to the grounding end, and an output end of the second operational amplifier is coupled to a second output end of the signal sampling circuit. The embodiments of the present application are used for the process of signal sampling and of electric motor control.
Need to check novelty before this filing date? Find Prior Art

Description

A signal sampling circuit, a motor control circuit and a signal sampling method

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 21, 2023, with application number 202310310046.2 and application name “A signal sampling circuit, motor control circuit and signal sampling method”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of chip technology, and in particular to a signal sampling circuit, a motor control circuit, and a signal sampling method. Background Art

[0003] In the motor control circuit of a home appliance, the signal flowing through the motor can be sampled by a signal sampling circuit, and the motor speed can be determined by the sampled signal.

[0004] However, signal sampling circuits are often subject to board-level interference, such as switching ringing from pulse-width modulation (PWM) control circuits, power switching, and power supply ripple. Conventional improvements can typically be made by targeting the source of the interference, such as increasing the number of capacitors, adjusting capacitor values, or improving power supply routing. However, these improvements are time-consuming and often ineffective, with interference still present.

[0005] Summary of the Invention

[0006] Embodiments of the present application provide a signal sampling circuit, a motor control circuit, and a signal sampling method, which can solve the problem of board-level interference in the signal sampling circuit.

[0007] To achieve the above objectives, the present invention adopts the following technical solutions:

[0008] In a first aspect, a signal sampling circuit is provided. The signal sampling circuit includes a sampling resistor, a first operational amplifier, and a second operational amplifier. The first end of the sampling resistor is coupled to an input end of the signal sampling circuit, and the second end of the sampling resistor is coupled to a ground end. The first input end of the first operational amplifier is coupled to the first end of the sampling resistor, the second input end of the first operational amplifier is coupled to the second end of the sampling resistor, and the output end of the first operational amplifier is coupled to the first output end of the signal sampling circuit. The first input end and the second input end of the second operational amplifier are both coupled to the ground end, and the output end of the second operational amplifier is coupled to the second output end of the signal sampling circuit.

[0009] Therefore, the present application uses a second operational amplifier to collect the signal of the ground terminal of the sampling resistor, and the signal of the second output terminal of the signal sampling circuit is the signal of the board-level interference of the path where the second operational amplifier is located. If the second operational amplifier is the same as the first operational amplifier and has the same routing, the board-level interference encountered by the second operational amplifier when amplifying and outputting the signal of the ground terminal of the sampling resistor to the first output terminal of the signal sampling circuit after collecting the signal will be the same as or close to the board-level interference encountered by the first operational amplifier when outputting the amplified signal to the second output terminal of the signal sampling circuit. That is, the signal received by the second output terminal of the signal sampling circuit can also be understood as the signal generated by the board-level interference encountered by the first operational amplifier. In this way, when calculating the signal of the sampling resistor, the signal of the first output terminal of the signal sampling circuit can be subtracted from the signal of the second output terminal of the signal sampling circuit, which is equivalent to removing the signal generated by the board-level interference encountered by the first operational amplifier, thereby improving the accuracy of obtaining the signal of the sampling resistor of the signal sampling circuit.

[0010] Moreover, compared with the problems of long time consumption and poor improvement effect caused by increasing the number of capacitors, adjusting the capacitance value or improving the power supply routing method in the prior art, the present application can obtain the signal of board-level interference by directly sampling the signal at the ground end of the sampling resistor, which can reduce the time consumed for sampling the signal of the sampling resistor and has a better improvement effect.

[0011] In one possible design, the first operational amplifier is used to receive a signal from a sampling resistor, amplify the signal from the sampling resistor, and output it to a first output terminal of a signal sampling circuit; the second operational amplifier is used to receive a signal from a ground terminal, amplify the signal from the ground terminal, and output it to a second output terminal of the signal sampling circuit.

[0012] The signal output by the first output terminal of the signal sampling circuit includes not only the signal of the sampling resistor but also the signal introduced by board-level interference to the first operational amplifier. The signal output by the second output terminal of the signal sampling circuit includes the signal of the ground terminal and the signal introduced by board-level interference to the second operational amplifier. When the signal of the ground terminal is 0, the signal output by the second output terminal of the signal sampling circuit is equivalent to the signal introduced by board-level interference to the second operational amplifier. If the second operational amplifier is identical to the first operational amplifier and has the same routing, the board-level interference encountered by the second operational amplifier when collecting the signal of the ground terminal of the sampling resistor and then amplifying and outputting it to the first output terminal of the signal sampling circuit is the same as the board-level interference encountered by the first operational amplifier. This facilitates removing the board-level interference signal when determining the signal of the sampling resistor, thereby improving the accuracy of the sampling resistor signal.

[0013] In one possible design, a first trace between the first input terminal of the second operational amplifier and the ground terminal is parallel to a second trace between the first input terminal of the first operational amplifier and the first terminal of the sampling resistor; a third trace between the trace of the second input terminal of the second operational amplifier and the ground terminal is parallel to a fourth trace between the second input terminal of the first operational amplifier and the second terminal of the sampling resistor; and a fifth trace between the output terminal of the second operational amplifier and the second output terminal of the signal sampling circuit is parallel to a sixth trace between the output terminal of the first operational amplifier and the first output terminal of the signal sampling circuit. For example, if the first input terminal of the second operational amplifier and the first input terminal of the first operational amplifier are both non-inverting input terminals, if the first trace and the second trace are parallel, the conducted interference introduced by the first trace and the conducted interference introduced by the second trace can be minimized. Similarly, the third trace and the fourth trace, as well as the fifth trace and the sixth trace, are similarly aligned. When the traces are parallel, the conducted interference of the traces is also minimized.

[0014] In one possible design, the distance between the first and fourth traces is within a first threshold range, and the distance between the fifth and sixth traces is within a second threshold range. This minimizes the distance between the traces, minimizing the conducted interference introduced by the traces, which helps improve the accuracy of the signal acquired from the sampling resistor.

[0015] In one possible design, the length difference between the first and second traces is within a third threshold range; the length difference between the third and fourth traces is within a third threshold range; and the length difference between the fifth and sixth traces is within a third threshold range. In this way, by ensuring that the lengths of the corresponding traces are as close as possible, the conducted interference introduced by the traces can be minimized, which helps improve the accuracy of the signal acquired from the sampling resistor.

[0016] In one possible design, the power supply terminal of the second operational amplifier and the power supply terminal of the first operational amplifier share the same power supply. In this way, the interference caused by the power ripple generated by the power supply to the first operational amplifier and the interference caused to the second operational amplifier are similar or the same.

[0017] In one possible design, when the signal of the sampling resistor is a voltage, the voltage of the sampling resistor after amplification by the first operational amplifier is the difference between the voltage collected by the first output terminal of the signal sampling circuit and the voltage collected by the second output terminal of the signal sampling circuit. The voltage collected by the second output terminal of the signal sampling circuit is a voltage generated by board-level interference experienced by the second operational amplifier, and the voltage generated by the board-level interference experienced by the second operational amplifier is the same as the voltage generated by the board-level interference experienced by the first operational amplifier. Thus, by introducing the path of the second operational amplifier coupled to the ground terminal of the sampling resistor, the voltage collected by the second output terminal of the signal sampling circuit can be used as the board-level interference corresponding to the path of the first operational amplifier. Thus, when calculating the voltage of the sampling resistor, the voltage introduced by the board-level interference corresponding to the path of the first operational amplifier can be removed, thereby improving the accuracy of obtaining the voltage of the sampling resistor.

[0018] In one possible design, board-level interference on the first operational amplifier includes conducted interference introduced by the wiring of the first and second input terminals of the first operational amplifier, conducted interference introduced by the wiring of the output terminal of the first operational amplifier, and power supply ripple generated by the power supply to the power supply terminal of the first operational amplifier. The board-level interference on the second operational amplifier is similar to that on the first operational amplifier.

[0019] In a second aspect, a motor control circuit is provided, which includes a controller, a pulse width modulation control circuit and a signal sampling circuit as in the first aspect and any possible design of the first aspect, wherein the output end of the pulse width modulation control circuit is coupled to the motor, the output end of the first operational amplifier and the output end of the second operational amplifier in the signal sampling circuit are both coupled to the input end of the controller, and the output end of the controller is coupled to the input end of the pulse width modulation control circuit; the controller is configured to obtain a pulse width modulation signal based on a signal received from the output end of the first operational amplifier and a signal received from the output end of the second operational amplifier, and output the pulse width modulation signal to the pulse width modulation control circuit, wherein the pulse width modulation signal is used to adjust the speed of the motor.

[0020] Similar to the first aspect, if the signal sampling circuit of the first aspect is applied to a motor control circuit, the controller can remove the signal received from the second operational amplifier from the signal received from the first operational amplifier, thereby obtaining a more accurate signal from the sampling resistor and more accurately determining the current flowing through the motor. This improves the accuracy of motor control when sending a pulse-width modulated signal to the motor. Furthermore, the time spent sampling the signal from the sampling resistor can be reduced.

[0021] In one possible design, the controller is configured to: perform analog-to-digital conversion on a signal received from a first output terminal of a signal sampling circuit to obtain a first digital signal; and perform analog-to-digital conversion on a signal received from a second output terminal of the signal sampling circuit to obtain a second digital signal; obtain a signal from a sampling resistor in the signal sampling circuit based on the first and second digital signals; and determine a pulse width modulation signal based on the signal from the sampling resistor. For example, the difference between the first and second digital signals can be divided by the amplification factor of an operational amplifier to obtain the signal from the sampling resistor.

[0022] In one possible design, when the signal of the sampling resistor is a voltage, the first digital signal is a first voltage, the second data signal is a second voltage, and the voltage of the sampling resistor after amplification by the first operational amplifier is a difference between the first voltage and the second voltage; wherein the second voltage is a voltage generated by board-level interference suffered by the second operational amplifier, and the voltage generated by the board-level interference suffered by the second operational amplifier is the same as the voltage generated by the board-level interference suffered by the first operational amplifier.

[0023] In a third aspect, an electronic device is provided, comprising a motor and a motor control circuit according to the second aspect and any possible design of the second aspect.

[0024] In a fourth aspect, a signal sampling method is provided, which is applied to a signal sampling circuit such as the first aspect and any possible design of the first aspect, the method comprising: a first operational amplifier receives a signal from a sampling resistor, amplifies the signal from the sampling resistor, and outputs the signal to a first output end of the signal sampling circuit; a second operational amplifier receives a signal from a ground end, amplifies the signal from the ground end, and outputs the signal to a second output end of the signal sampling circuit.

[0025] The beneficial effects of the fourth aspect can be found in the description of the first aspect.

[0026] In a possible design, the signal of the sampling resistor is determined according to the signal of the first output terminal of the signal sampling circuit and the signal of the second output terminal of the signal sampling circuit.

[0027] In one possible design, assuming that the first output end of the signal sampling circuit outputs a first digital signal, and the second output end of the signal sampling circuit outputs a second digital signal, when the signal of the sampling resistor is a voltage, the first digital signal is a first voltage, the second digital signal is a second voltage, and the voltage of the sampling resistor after amplification by the first operational amplifier is the difference between the first voltage and the second voltage; wherein the second voltage is a voltage generated by board-level interference suffered by the second operational amplifier, and the voltage generated by the board-level interference suffered by the second operational amplifier is the same as the voltage generated by the board-level interference suffered by the first operational amplifier.

[0028] In a fifth aspect, a motor control method is provided, which is applied to the motor control circuit as in the second aspect, and the method includes: a controller obtains a pulse width modulation signal based on a signal received from the output end of the first operational amplifier and a signal received from the output end of the second operational amplifier; the controller outputs the pulse width modulation signal to the pulse width modulation control circuit; and the pulse width modulation control circuit adjusts the speed of the motor according to the pulse width modulation signal.

[0029] In one possible design, the controller obtains a pulse width modulated signal based on a signal received from an output end of the first operational amplifier and a signal received from an output end of the second operational amplifier, including: performing analog-to-digital conversion on the signal received from the output end of the first operational amplifier to obtain a first digital signal, and performing analog-to-digital conversion on the signal received from the output end of the second operational amplifier to obtain a second digital signal; and obtaining a signal from a sampling resistor in a signal sampling circuit based on the first digital signal and the second digital signal, and obtaining a pulse width modulated signal based on the signal from the sampling resistor.

[0030] Exemplarily, the controller includes an analog-to-digital converter and a calculator. A first operational amplifier receives a signal from a sampling resistor, amplifies the signal from the sampling resistor, and outputs it to a first input terminal of the analog-to-digital converter. The analog-to-digital converter performs analog-to-digital conversion on the signal received at the first input terminal of the analog-to-digital converter to obtain a first digital signal. The sampling resistor is used to sample signals from the motor. A second operational amplifier is controlled to receive a signal from a ground terminal of the sampling resistor, amplifies the signal from the ground terminal, and outputs it to a second input terminal of the analog-to-digital converter. The analog-to-digital converter is controlled to perform analog-to-digital conversion on the signal received at the second input terminal of the analog-to-digital converter to obtain a second digital signal. A control processor obtains the signal from the sampling resistor based on the first digital signal and the second digital signal, determines a pulse width modulation signal based on the signal from the sampling resistor, and adjusts the speed of the motor based on the pulse width modulation signal.

[0031] The beneficial effects of the fifth aspect can be found in the description of the second aspect.

[0032] In one possible design, when the signal of the sampling resistor is a voltage, the first digital signal is a first voltage, the second data signal is a second voltage, and the voltage of the sampling resistor after amplification by the first operational amplifier is the difference between the first voltage collected by the first input terminal of the analog-to-digital converter and the voltage collected by the second input terminal of the controller; wherein the second voltage is a voltage generated by board-level interference suffered by the second operational amplifier, and the voltage generated by the board-level interference suffered by the second operational amplifier is the same as the voltage generated by the board-level interference suffered by the first operational amplifier.

[0033] In a sixth aspect, a chip is provided, comprising a substrate, and a signal sampling circuit as described in the first aspect and any possible design of the first aspect, packaged on the substrate.

[0034] In the seventh aspect, a chip is provided, which stores computer execution instructions. When the computer execution instructions are executed, the method described in the fourth aspect is executed, or the method corresponding to the controller described in the fifth aspect and any possible implementation method is executed.

[0035] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method corresponding to the controller in the fifth aspect and any possible implementation method.

[0036] In the ninth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer or processor, enables the computer or processor to execute the method corresponding to the controller in the fifth aspect and any possible implementation method.

[0037] It can be understood that any of the signal sampling circuits, motor control circuits, chips, computer-readable storage media or computer program products provided above can be applied to the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods and will not be repeated here.

[0038] These and other aspects of the present application will become more readily apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] FIG1 is a schematic diagram of a motor control circuit provided in an embodiment of the present application;

[0040] FIG2 is a circuit diagram of a signal sampling circuit provided in an embodiment of the present application;

[0041] FIG3 is a circuit diagram of a motor control circuit provided in an embodiment of the present application;

[0042] FIG4 is a circuit diagram of a motor control circuit provided in an embodiment of the present application;

[0043] FIG5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0044] FIG6 is a flow chart of a signal sampling method provided in an embodiment of the present application;

[0045] FIG7 is a flow chart of a motor control method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0047] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0048] Printed circuit boards (PCBs) support the circuit elements and devices in electronic devices, providing electrical connections between them and forming a fundamental component of various electronic devices. Different layout and routing characteristics of components such as digital circuits, analog circuits, and power supply circuits on a PCB can lead to different interference. As electronic devices become increasingly complex, board-level interference issues are becoming more common. To ensure that electronic devices meet standards, circuits must be repeatedly tested, redesigned, and retested during the design phase. Therefore, identifying board-level interference early in the product design process is crucial.

[0049] Board-level interference can be understood as electromagnetic interference (EMI), which includes conducted interference and radiated interference. Conducted interference primarily refers to interference signals generated by electronic devices, which interfere with each other through conductive media or common power lines. Radiated interference refers to interference signals generated by electronic devices that are transmitted to another circuit network or electronic device through spatial coupling.

[0050] Conducted interference is commonly found in household electronic devices (hereinafter referred to as appliances), such as high-speed hair dryers, vacuum cleaners, refrigerators, washing machines, dishwashers, electric fans, range hoods, and juicers. These appliances are typically powered by single-phase AC motors. Excessive motor speed can cause high motor temperatures, excessive noise, and damage. Therefore, the motor control circuit typically samples the motor current to determine its current speed and sends a control signal to the motor to adjust the speed accordingly.

[0051] Specifically, FIG1 is a schematic diagram of a motor control circuit 10. The motor control circuit 10 includes a microcontroller unit (MCU) 100, a pulse width modulation (PWM) control circuit 101, and a current sampling circuit 102. Typically, in a household appliance motor M (or compressor) control circuit, to save costs, the current sampling circuit 102 can be configured by connecting a sampling resistor R in series between the PWM control circuit 101 coupled to the motor M and the ground (GND). The voltage across the sampling resistor R is amplified by an operational amplifier (OA) P and then output to the MCU 100. The analog-to-digital converter (ADC) in the MCU 100 performs analog-to-digital conversion to complete the sampling of the current flowing through the motor M. The MCU 100 outputs a PWM signal to the PWM control circuit 101 based on the sampled current. The PWM control circuit 101 then outputs a high-voltage PWM signal to the motor. The PWM signal is used to adjust the speed of the motor M.

[0052] The PWM control circuit 101 may include a switching device such as an insulated gate bipolar transistor (IGBT) or a metal-oxide-semiconductor field-effect transistor (MOSFET). The power supply circuit that supplies power to the MCU 100 may include an alternating current / direct current (AC / DC) converter and a low dropout regulator (LDO).

[0053] In some embodiments, the MCU 100 in the motor control circuit 10 typically uses a field-oriented control (FOC) algorithm to control the current flowing through the motor M to adjust the speed of the motor M. FOC, also known as vector control, is a technology that uses a variable-frequency drive (VFD) to control a three-phase motor. It controls the current output of the motor M by adjusting the output frequency, output voltage, and angle of the inverter. Because the three-phase output current and voltage are represented as vectors during processing, it is called vector control. Therefore, the accuracy of sampling the current flowing through the motor M is crucial. When the sampled current is inaccurate, it will affect the accuracy of the FOC algorithm output.

[0054] Typically, the current sampling circuit 102 is subject to conducted interference from other board-level modules, such as switching ringing of the PWM-driven IGBT or MOSFET, power ripple of the power supply VDD output by the AC / DC converter in the power supply circuit, and interference introduced by the wiring of the operational amplifier P. This affects the accuracy of the sampled current and, in turn, the output of the FOC algorithm. This application collectively refers to various types of interference as board-level interference.

[0055] Switching ringing can be understood as the ultra-high current rise rate (di / dt) and voltage rise rate (dv / dt) caused by high voltage and ultra-fast switching speed. This will cause interference through the system's stray inductance and capacitance. For example, the excessively high switching speed of SiC MOSFETs can cause switching voltage (Vds) ringing spikes, thereby generating electromagnetic interference (EMI).

[0056] Ripple is an AC component in a DC voltage. Power supply ripple is a large number of high-speed, large-signal voltage and current waveforms in the power supply that can easily couple with probes. These waveforms include magnetic fields coupled from the power transformer, electric fields coupled from the switch nodes, and common-mode currents generated by the transformer's mutual winding capacitance.

[0057] Currently, to improve the accuracy of current sampling, the ADC algorithm is typically configured to add a certain amount of time before sampling to avoid switching ringing caused by switching devices such as IGBTs and MOSFETs. For example, when the ADC receives the current from the operational amplifier P input, it waits for 2 microseconds (µs) before starting current sampling.

[0058] For interference generated by switches in the AC / DC converter, interference from the operational amplifier (OPA) routing, and ripple interference introduced by the OPA output due to power supply ripple, conventional optimization can be performed at the source of the interference. For example, this can be achieved by adding capacitors, adjusting their values, or optimizing the power supply routing. However, this optimization method is time-consuming and generally ineffective, and the issue of inaccurate current sampling still exists.

[0059] To this end, the present application provides a signal sampling circuit, a motor control circuit, and a signal sampling method. These circuits can address the problems of interference caused by switches introduced into the signal sampling circuit, board-level interference introduced by the input and output wiring of the operational amplifier circuit, and interference introduced into the output of the operational amplifier circuit due to the presence of power supply ripple. By adding an additional operational amplifier circuit coupled to the ground terminal of the sampling resistor, the signal size introduced by the board-level interference is obtained. In this way, when calculating the signal of the sampling resistor, the signal size obtained by sampling the operational amplifier circuit that amplifies the signal of the sampling resistor can be subtracted from the signal size introduced by the board-level interference to obtain the signal of the sampling resistor after being amplified by the operational amplifier in the signal sampling circuit. In this way, when applied to the motor control circuit, while removing the board-level interference to the first operational amplifier, the accuracy of the current sampling of the sampling resistor can be significantly improved.

[0060] Based on the above description, the embodiments of the present application are described below.

[0061] FIG2 is a circuit diagram of a signal sampling circuit 20 provided in an embodiment of the present application.

[0062] The signal sampling circuit 20 includes a sampling resistor R, a first operational amplifier A, and a second operational amplifier B. A first end a of the sampling resistor R is coupled to an input end o of the signal sampling circuit, and a second end b of the sampling resistor R is coupled to ground (GND). The sampling resistor R is used to sample signals from the sampled circuit 21.

[0063] The first input terminal c of the first operational amplifier A is coupled to the first terminal a of the sampling resistor R, the second input terminal d of the first operational amplifier A is coupled to the second terminal b of the sampling resistor R, and the output terminal e of the first operational amplifier A is coupled to the first output terminal f of the signal sampling circuit 20.

[0064] The first input terminal g and the second input terminal h of the second operational amplifier B are both coupled to the ground terminal GND, and the output terminal i of the second operational amplifier B is coupled to the second output terminal j of the signal sampling circuit 20 .

[0065] When the signal sampling circuit 20 samples the signal across the sampling resistor R, the signal output by the first output terminal f of the signal sampling circuit 20 includes the signal amplified by the first operational amplifier A from the signal of the sampling resistor R, and also includes the signal generated by board-level interference experienced by the first operational amplifier A. When the first input terminal g and the second input terminal h of the second operational amplifier B are both coupled to the ground terminal GND of the sampling resistor R, the signal output by the second output terminal j of the signal sampling circuit 20 includes the signal generated by board-level interference experienced by the second operational amplifier B.

[0066] If the second operational amplifier B is identical to the first operational amplifier A and has the same routing, the board-level interference encountered by the second operational amplifier B when it collects the signal from the ground terminal GND of the sampling resistor R and then amplifies and outputs it to the first output terminal f of the signal sampling circuit 20 will be the same as or similar to the board-level interference encountered by the first operational amplifier A when it outputs the amplified signal to the second output terminal j of the signal sampling circuit 20. That is, the signal received by the second output terminal j of the signal sampling circuit 20 can also be understood as the signal generated by the board-level interference encountered by the first operational amplifier A. Thus, when calculating the signal from the sampling resistor R, the signal from the second output terminal j of the signal sampling circuit 20 can be subtracted from the signal from the first output terminal f of the signal sampling circuit 20. This is equivalent to removing the signal generated by the board-level interference encountered by the first operational amplifier A, thereby improving the accuracy of acquiring the signal from the sampling resistor R of the signal sampling circuit 20.

[0067] Moreover, compared with the problems of long time consumption and poor improvement effect caused by increasing the number of capacitors, adjusting the capacitance value or improving the power supply routing method in the prior art, the present application can obtain the signal of board-level interference by directly sampling the signal of the ground terminal GND of the sampling resistor R, which can reduce the time consumed for sampling the signal of the sampling resistor R and has a better improvement effect.

[0068] The sampling resistor R is typically a small resistor connected in series in a circuit to convert current into a voltage signal for measurement. For example, in this application, the sampling resistor R is connected in series with the sampled circuit 21 to sample the current flowing through the sampled circuit 21.

[0069] In some embodiments, the first operational amplifier A is configured to receive a signal from the sampling resistor R, amplify the signal from the sampling resistor R, and output the amplified signal to the first output terminal f of the signal sampling circuit 20 .

[0070] The second operational amplifier B is configured to receive a signal from the ground terminal GND, amplify the signal from the ground terminal GND, and output the amplified signal to the second output terminal j of the signal sampling circuit 20 .

[0071] For example, when the sampling resistor R is used to sample the current flowing through the sampled circuit 21, the current flowing through the sampled circuit 21 is received by the first input terminal c and the second input terminal d of the first operational amplifier A. The first operational amplifier A amplifies the voltage generated by the current of the sampling resistor R and outputs it to the first output terminal f of the signal sampling circuit 20. This allows the current of the sampled circuit 21 to be obtained based on the voltage output by the first output terminal f of the signal sampling circuit 20, and the sampled circuit 21 to be controlled based on the current of the sampled circuit 21.

[0072] However, considering that the first input terminal c of the first operational amplifier A is coupled to the first terminal a of the sampling resistor R, and the second input terminal d is coupled to the second terminal b of the sampling resistor R, there is a section of wiring 22 and a wiring 23 before the signal of the sampling resistor R enters the first input terminal c and the second input terminal d of the first operational amplifier A. As a result, the signal received by the first input terminal c of the first operational amplifier A may be subject to conduction interference from the wiring 22, and the signal received by the second input terminal d of the first operational amplifier A may be subject to conduction interference from the wiring 23.

[0073] Similarly, there is a wire 24 between the first output terminal g of the first operational amplifier A and the first output terminal f of the signal sampling circuit 20 , so that the signal at the first output terminal f of the signal sampling circuit 20 is also subject to conduction interference from the wire 24 .

[0074] At the same time, when the power supply terminal k of the first operational amplifier A receives the voltage VDD output by the power supply, the first operational amplifier A will also be interfered by the power ripple generated by the power supply when amplifying the signal.

[0075] Thus, the signal at the first output terminal f of the signal sampling circuit 20 includes not only the amplified signal from the sampling resistor R, but also the signals of the board-level interference generated by the above-mentioned traces 22, 23, 24 and power supply ripple.

[0076] If the present application couples a second operational amplifier B between the second end b of the sampling resistor R and the ground terminal GND, the signal inputted by the first input terminal g and the second input terminal h of the second operational amplifier B is equivalent to the signal collected from the ground terminal GND of the sampling resistor R. The signal collected from the ground terminal GND of the sampling resistor R is 0, that is, the current collected from the ground terminal GND of the sampling resistor R is 0. Then, for the second operational amplifier B, the current inputted by the first input terminal g is the current generated by the conducted interference of the trace 25, and the current inputted by the second input terminal h is the current generated by the conducted interference of the trace 26. After the second operational amplifier B amplifies and outputs the input signal, the signal at the second output terminal j of the signal sampling circuit 20 is the signal generated by the board-level interference experienced by the second operational amplifier B, including the signal generated by the conducted interference of traces 25, traces 26, and traces 27, and the signal generated by the power ripple of the power supply VDD experienced by the second operational amplifier B.

[0077] When the traces 25 and 26 at the input of the second operational amplifier B coincide with the traces 22 and 23 at the input of the first operational amplifier A, including being of similar length and parallel to each other, and the trace 24 at the output of the second operational amplifier B coincides with the trace 24 at the output of the first operational amplifier A, and the second operational amplifier B and the first operational amplifier A share a common power supply VDD, the signal generated by board-level interference received by the second output terminal j of the signal sampling circuit 20 is identical to the signal generated by board-level interference on the path of the first operational amplifier A received by the first output terminal f. Thus, when the signal output from the first output terminal f is converted to a voltage value, and the signal output from the second output terminal j is converted to a voltage value, a signal from the sampling resistor R without board-level interference can be obtained based on the voltage values ​​corresponding to the first output terminal f and the voltage values ​​corresponding to the second output terminal j.

[0078] Therefore, the present application uses a second operational amplifier B alone to collect the signal of the access terminal GND of the sampling resistor R. By obtaining the signal of the board-level interference of the path where the second operational amplifier B is located, the signal generated by the board-level interference of the path where the first operational amplifier A used to collect the signal of the sampling resistor R is located can be known. In this way, the signal output by the first output terminal f can be removed from the signal of the board-level interference to the first operational amplifier A (the signal output by the second output terminal j), so as to improve the accuracy of the signal during sampling by the signal sampling circuit 20.

[0079] In some embodiments, the board-level interference to the first operational amplifier A includes conducted interference introduced by the traces 22 and 23 coupled to the first input terminal c and the second input terminal d of the first operational amplifier A, conducted interference introduced by the trace 24 coupled to the output terminal e of the first operational amplifier A, and power supply ripple generated to the power supply VDD of the power supply terminal k of the first operational amplifier A.

[0080] Similarly, the board-level interference to the second operational amplifier B includes the conducted interference introduced by the traces 25 and 26 coupled to the first input terminal g and the second input terminal h of the second operational amplifier B, the conducted interference introduced by the trace 27 coupled to the output terminal i of the second operational amplifier B, and the power supply ripple generated to the power supply VDD of the power supply terminal l of the second operational amplifier B.

[0081] For the convenience of description, the routing 25 in this application is recorded as the first routing 25, the routing 22 is recorded as the second routing 22, the routing 26 is recorded as the third routing 26, the routing 23 is recorded as the fourth routing 23, the routing 27 is recorded as the fifth routing 27, and the routing 24 is recorded as the sixth routing 24.

[0082] In some embodiments, a first trace 25 between the first input terminal g of the second operational amplifier B and the ground terminal GND is parallel to a second trace 22 between the first input terminal c of the first operational amplifier A and the first terminal a of the sampling resistor R. A third trace 26 between the second input terminal h of the second operational amplifier B and the ground terminal GND is parallel to a fourth trace 23 between the second input terminal d of the first operational amplifier A and the second terminal b of the sampling resistor R. A fifth trace 27 between the output terminal i of the second operational amplifier B and the first output terminal f of the signal sampling circuit 20 is parallel to a sixth trace 24 between the output terminal e of the first operational amplifier A and the first output terminal f of the signal sampling circuit 20.

[0083] For example, assuming that the first input terminal c of the first operational amplifier A is a non-inverting input terminal, the first input terminal g of the second operational amplifier B is a non-inverting input terminal, and the second trace 22 is parallel to the first trace 25, the conducted interference generated by the second trace 22 and the first trace 25 are similar. Assuming that the second input terminal d of the first operational amplifier A is a negative input terminal, the second input terminal h of the second operational amplifier B is a negative input terminal, and the fourth trace 23 is parallel to the third trace 26, the conducted interference generated by the fourth trace 23 and the third trace 26 are similar. Similarly, if the fifth trace 27 and the sixth trace 24 are parallel, the conducted interference generated by the fifth trace 27 and the sixth trace 24 are also similar.

[0084] In some embodiments, the distance between the first trace 25 and the fourth trace 23 is within a first threshold range.

[0085] The distance between the fifth trace 27 and the sixth trace 24 is within the second threshold range.

[0086] For example, the maximum value of the first threshold range is 2 mm, that is, the distance between the first trace 25 and the fourth trace 23 can be controlled within a range of less than or equal to 2 mm. The maximum value of the second threshold range is 4 mm, that is, the distance between the fifth trace 27 and the sixth trace 24 can be controlled within a range of less than or equal to 4 mm.

[0087] In this way, the routing of the first operational amplifier A and the routing of the second operational amplifier B can be made as consistent and close as possible.

[0088] Therefore, when the routing line coupled to the input terminal of the first operational amplifier A is parallel and close to the routing line coupled to the input terminal of the second operational amplifier B, the conducted interference generated by the second routing line 22 and the fourth routing line 23 is relatively close to the conducted interference generated by the first routing line 25 and the third routing line 26. When the conducted interference generated by the sixth routing line 24 is parallel and close to the fifth routing line 27, the conducted interference generated by the sixth routing line 24 and the fifth routing line 27 are also relatively close.

[0089] This facilitates the board-level interference signal output from the second output terminal j of the signal sampling circuit 20 to be close to the board-level interference signal included in the signal output from the first output terminal f. Furthermore, the board-level interference signal is removed when calculating the signal of the sampling resistor R, and the accuracy of the signal of the sampling resistor R is improved.

[0090] In some embodiments, the length difference between the first trace 25 and the second trace 22 is within a third threshold range.

[0091] The length difference between the third trace 26 and the fourth trace 23 is within a third threshold range.

[0092] The length difference between the fifth trace 27 and the sixth trace 24 is within a third threshold range.

[0093] For example, when the first input terminal g of the second operational amplifier B and the first input terminal c of the first operational amplifier A are both non-inverting input terminals, if the length difference between the first trace 25 and the second trace 22 is within a third preset threshold range, the conducted interference generated by the first trace 25 and the second trace 22 is relatively close. When the second input terminal h of the second operational amplifier B and the second input terminal d of the first operational amplifier A are both negative input terminals, if the length difference between the third trace 26 and the fourth trace 23 is within a third preset threshold range, the conducted interference generated by the third trace 26 and the fourth trace 23 is also relatively close. Similarly, if the length difference between the fifth trace 27 and the sixth trace 24 is within the third threshold range, the conducted interference generated by the fifth trace 27 and the sixth trace 24 is also relatively close.

[0094] For example, the maximum value of the third threshold range is 5 mm, or it may be other values, which is not limited in this application.

[0095] In this way, similar to the above description, when the lengths of the corresponding traces are close, the board-level interference on the path where the first operational amplifier A is located and the board-level interference on the path where the second operational amplifier B is located are close, which is conducive to removing the board-level interference signal when calculating the signal of the sampling resistor R. When the signal of the sampling resistor R is obtained, the accuracy of the signal of the sampling resistor R is improved.

[0096] In some embodiments, the power supply terminal l of the second operational amplifier B and the power supply terminal k of the first operational amplifier A share the same power supply VDD.

[0097] In this way, the power ripple generated by the power supply VDD on the first operational amplifier A and the power ripple generated by the power supply VDD on the second operational amplifier B are close to or identical. The signal outputted from the output terminal e of the first operational amplifier A due to the influence of the power ripple is close to or identical to the signal outputted from the output terminal i of the second operational amplifier B due to the influence of the power ripple. This facilitates the removal of board-level interference signals when calculating the signal of the sampling resistor R, thereby improving the accuracy of the signal of the sampling resistor R.

[0098] Based on this, in some embodiments, when the signal of the sampling resistor R is a voltage, the voltage V of the sampling resistor R after being amplified by the first operational amplifier A is R ' is the voltage V at the first output terminal f A and the voltage V at the second output terminal j B The difference between . This can be expressed as: V R ′=V A -V B .

[0099] This is because the voltage V B The voltage V generated by the board-level interference on the second operational amplifier B B干扰 , that is, V B =V B干扰 The voltage V generated by the board-level interference on the second operational amplifier B is B干扰 and the voltage V generated by the board-level interference on the first operational amplifier V A干扰 Same, that is, V B干扰 =V A干扰 Since V A =V R ′+V A干扰 , therefore, V R ′=V A -V A干扰 =V A -V B干扰 =V A -V B Thus, the voltage V of the sampling resistor R after being amplified by the first operational amplifier A without board-level interference can be obtained. R ′.

[0100] For example, assuming that the first operational amplifier A and the second operational amplifier B are the same device, the voltage amplification factor of the first operational amplifier A and the second operational amplifier B is 5 times, the voltage V of the sampling resistor R R is 0.2V, the bias voltage of the first operational amplifier A is 1.65V, and the voltage generated by the board-level interference on the first operational amplifier A is 0.1V, then V A=0.2V×5+1.65V+0.1V=2.75V.

[0101] Assume that the bias voltage of the second operational amplifier B is 1.65V and the voltage generated by the board-level interference on the second operational amplifier B is 0.1V, then V B =1.65V+0.1V=1.75V.

[0102] In this way, the voltage V of the sampling resistor R after being amplified by the first operational amplifier is R ′=2.75V-1.75V=1V. Then, when the amplification factor of the first operational amplifier A is 5, the voltage V of the sampling resistor R before amplification can be obtained. R =V R ' / 5=0.2V.

[0103] In this way, through the signal sampling circuit provided in the embodiment of the present application, by introducing a second operational amplifier B, the signal of the sampling resistor R without board-level interference can be calculated. On the basis of improving the signal accuracy of the sampling resistor R, the signal sampling accuracy of the sampled circuit can be improved.

[0104] Based on the signal sampling circuit 20 shown in Figure 2 of the present application, when the signal sampling circuit 20 is applied to a motor control circuit, the signal of the sampling resistor R is the signal flowing through the motor, and the control accuracy of the motor can be improved based on the signal of the sampling resistor R with higher accuracy.

[0105] Therefore, as shown in Figure 3, the present application provides a circuit schematic diagram of a motor control circuit 30. The motor control circuit 30 includes a controller 31, a pulse width modulation control circuit 32 and the signal sampling circuit 20 in the above embodiment. The output end of the pulse width modulation control circuit 32 is coupled to the motor M, and the output end e of the first operational amplifier A and the output end i of the second operational amplifier B in the signal sampling circuit 20 are both coupled to the input end of the controller 31. The output end of the controller 31 is coupled to the input end p of the pulse width modulation control circuit 32.

[0106] The controller 31 is configured to obtain a pulse width modulation signal based on the signal received from the output terminal e of the first operational amplifier A and the signal received from the output terminal i of the second operational amplifier B, and output the pulse width modulation signal to the pulse width modulation control circuit 32. The pulse width modulation signal is used to adjust the speed of the motor M.

[0107] In some embodiments, the controller 31 may be configured to:

[0108] The signal received from the first output terminal f of the signal sampling circuit 20 is converted into a digital form to obtain a first digital signal, and the signal received from the second output terminal j of the signal sampling circuit 20 is converted into a digital form to obtain a second digital signal.

[0109] The signal of the sampling resistor R in the signal sampling circuit 20 is acquired according to the first digital signal and the second digital signal, and the pulse width modulation signal is obtained according to the signal of the sampling resistor R.

[0110] According to the above embodiment, it can be seen that the signal of the sampling resistor R=(first digital signal−second digital signal) / amplification factor.

[0111] The controller 31 may be the MCU mentioned above.

[0112] In this way, if the signal sampling circuit 20 is applied to the motor control circuit 30, a more accurate signal from the sampling resistor R can be obtained based on the first digital signal and the second digital signal. The controller 31 can then determine a more accurate current flowing through the motor M based on the amplified signal from the sampling resistor R, thereby improving the control accuracy of the motor M. Furthermore, the time spent sampling the signal from the sampling resistor R can be reduced.

[0113] 4 is a schematic diagram of a motor control circuit 30 provided by the present application. When the controller 31 is an MCU, the MCU includes an analog-to-digital converter (ADC) 34 and a calculator 33 .

[0114] The analog-to-digital converter 34 is used to perform analog-to-digital conversion on the signal received by the first output terminal f from the output terminal e of the first operational amplifier A to obtain a first digital signal, and to perform analog-to-digital conversion on the signal received by the second output terminal j from the output terminal i of the second operational amplifier B to obtain a second digital signal.

[0115] The calculator 33 is configured to obtain a signal from the sampling resistor R according to the first digital signal and the second digital signal, determine a pulse width modulation signal PWM according to the signal from the sampling resistor R, and output the pulse width modulation signal PWM to the pulse width modulation control circuit 32 .

[0116] The pulse width modulation control circuit 32 is used to adjust the speed of the motor M according to the pulse width modulation signal PWM.

[0117] In some embodiments, when the signal of the sampling resistor R is a voltage, the first digital signal is a first voltage V A , the second digital signal is the second voltage V B , the voltage V of the sampling resistor R after being amplified by the first operational amplifier R ' is the first voltage V A and the second voltage VB The difference.

[0118] Among them, the second voltage V B is a voltage generated by the board-level interference suffered by the second operational amplifier B, and the voltage generated by the board-level interference suffered by the second operational amplifier B is the same as the voltage generated by the board-level interference suffered by the first operational amplifier A.

[0119] Based on the motor control circuit 30 provided in the embodiment of the present application, FIG5 is a structural diagram of an electronic device 50 provided in the embodiment of the present application. The electronic device 50 includes the motor control circuit 30 and the motor M provided in the embodiment of the present application.

[0120] Based on the signal sampling circuit 20 provided in the embodiment of the present application, FIG6 is a flow chart of a signal sampling method provided in the embodiment of the present application, and the method includes the following process.

[0121] 601 . A first operational amplifier A receives a signal from a sampling resistor R, amplifies the signal from the sampling resistor R, and outputs the amplified signal to a first output terminal f of a signal sampling circuit 20 .

[0122] 602 . The second operational amplifier B receives a signal from the ground terminal GND, amplifies the signal from the ground terminal GND, and outputs the amplified signal to the second output terminal j of the signal sampling circuit 20 .

[0123] Step 602 and step 601 may be performed simultaneously.

[0124] Thus, when the first output terminal f outputs the first signal and the second output terminal j outputs the second signal, the signal of the sampling resistor R can be obtained based on the first signal and the second signal. That is, the signal of the sampling resistor R is determined based on the signal of the first output terminal f of the signal sampling circuit 20 and the signal of the second output terminal j of the signal sampling circuit 20.

[0125] For example, when the signal of the sampling resistor R is a voltage, the first signal is a first voltage V A , the second signal is the second voltage V B , the voltage V of the sampling resistor R after being amplified by the first operational amplifier A R ' is the first voltage V A and the second voltage V B Then, the voltage V of the sampling resistor R after amplification can be used to calculate the difference. R ' and the amplification factor determine the voltage V of the sampling resistor R R .

[0126] Among them, the second voltage V Bis a voltage generated by the board-level interference suffered by the second operational amplifier B, and the voltage generated by the board-level interference suffered by the second operational amplifier B is the same as the voltage generated by the board-level interference suffered by the first operational amplifier A.

[0127] The beneficial effects of a signal sampling method provided in an embodiment of the present application are similar to the beneficial effects corresponding to the signal sampling circuit 20 .

[0128] Based on the motor control circuit 30 provided in the embodiment of the present application, FIG7 is a flow chart of a motor control method provided in the embodiment of the present application. The method includes the following process.

[0129] 701. The controller 31 obtains a pulse width modulation signal according to a signal received from an output terminal e of a first operational amplifier A and a signal received from an output terminal i of a second operational amplifier B.

[0130] Exemplarily, the controller 31 performs analog-to-digital conversion on the signal received from the output terminal e of the first operational amplifier A to obtain a first digital signal, and also performs analog-to-digital conversion on the signal received from the output terminal of the second operational amplifier A to obtain a second digital signal. The controller 31 obtains a signal from a sampling resistor R in the signal sampling circuit 20 based on the first and second digital signals, and obtains a pulse width modulated signal based on the signal from the sampling resistor R. The sampling resistor R is used to sample signals from the motor M.

[0131] 702 . The controller 31 outputs a pulse width modulation signal to the pulse width modulation control circuit 32 .

[0132] 703 . The PWM control circuit 32 adjusts the speed of the motor M according to the PWM signal.

[0133] The first digital signal in steps 701 to 703 corresponds to the first signal in the method flow shown in FIG. 6 , and the second digital signal corresponds to the second signal in the method flow shown in FIG. 6 .

[0134] The beneficial effects of a motor control method provided in an embodiment of the present application are similar to the corresponding beneficial effects of the motor control circuit 30 .

[0135] An embodiment of the present application further provides a chip, which includes a substrate and a signal sampling circuit 20 provided in an embodiment of the present application and packaged on the substrate.

[0136] An embodiment of the present application further provides a chip, which stores computer-executable instructions. When the computer-executable instructions are executed, the method corresponding to the controller 31 described in FIG7 is executed.

[0137] It is understandable that in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0138] In this embodiment, the electronic device can be divided into functional modules according to the above-mentioned method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into a single processing module. The above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the module division in this embodiment is illustrative and is only a logical functional division. In actual implementation, other division methods may be used.

[0139] An embodiment of the present application further provides a computer storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the motor control method in the above-mentioned embodiment.

[0140] An embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the motor control method executed by the electronic device in the above-mentioned embodiment.

[0141] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the signal sampling method or motor control method executed by the electronic device in the above-mentioned method embodiments.

[0142] Among them, the signal sampling circuit, motor control circuit, electronic device, chip, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0143] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0144] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0145] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0146] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0147] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0148] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A signal sampling circuit, It is characterized in that The signal sampling circuit comprises a sampling resistor, a first operational amplifier, and a second operational amplifier, wherein the first end of the sampling resistor is coupled to the input end of the signal sampling circuit, and the second end of the sampling resistor is coupled to the ground end; wherein: The first input terminal of the first operational amplifier is coupled to the first terminal of the sampling resistor, the second input terminal of the first operational amplifier is coupled to the second terminal of the sampling resistor, and the output terminal of the first operational amplifier is coupled to the first output terminal of the signal sampling circuit; The first input terminal and the second input terminal of the second operational amplifier are both coupled to the ground terminal, and the output terminal of the second operational amplifier is coupled to the second output terminal of the signal sampling circuit.

2. The signal sampling circuit according to claim 1, It is characterized in that The first operational amplifier is used to receive the signal of the sampling resistor, amplify the signal of the sampling resistor and output it to the first output end of the signal sampling circuit; The second operational amplifier is used to receive the signal at the ground terminal, and amplify the signal at the ground terminal and then output it to the second output terminal of the signal sampling circuit.

3. The signal sampling circuit according to claim 1 or 2, It is characterized in that A first wiring between the first input terminal of the second operational amplifier and the ground terminal is parallel to a second wiring between the first input terminal of the first operational amplifier and the first terminal of the sampling resistor; A third wiring between the wiring of the second input terminal of the second operational amplifier and the ground terminal is parallel to a fourth wiring between the second input terminal of the first operational amplifier and the second terminal of the sampling resistor; A fifth wiring line between the output terminal of the second operational amplifier and the second output terminal of the signal sampling circuit is parallel to a sixth wiring line between the output terminal of the first operational amplifier and the first output terminal of the signal sampling circuit.

4. The signal sampling circuit according to any one of claims 1 to 3, It is characterized in that The distance between the first routing line and the fourth routing line is within a first threshold range; The distance between the fifth routing line and the sixth routing line is within a second threshold range.

5. The signal sampling circuit according to any one of claims 1 to 4, It is characterized in that The length difference between the first routing line and the second routing line is within a third threshold range; The length difference between the third routing line and the fourth routing line is within the third threshold range; The length difference between the fifth routing line and the sixth routing line is within the third threshold range.

6. The signal sampling circuit according to any one of claims 1 to 4, It is characterized in that The power supply terminal of the second operational amplifier and the power supply terminal of the first operational amplifier share the same power supply.

7. A motor control circuit, It is characterized in that The motor control circuit comprises a controller, a pulse width modulation control circuit and a signal sampling circuit according to any one of claims 1 to 6, wherein an output end of the pulse width modulation control circuit is coupled to the motor, an output end of a first operational amplifier and an output end of a second operational amplifier in the signal sampling circuit are coupled to an input end of the controller, and an output end of the controller is coupled to an input end of the pulse width modulation control circuit; The controller is configured to obtain a pulse width modulation signal based on a signal received from an output end of the first operational amplifier and a signal received from an output end of the second operational amplifier, and output the pulse width modulation signal to the pulse width modulation control circuit, wherein the pulse width modulation signal is used to adjust the rotation speed of the motor.

8. The motor control circuit according to claim 7, It is characterized in that The controller is used to: Performing analog-to-digital conversion on a signal received from a first output terminal of the signal sampling circuit to obtain a first digital signal, and performing analog-to-digital conversion on a signal received from a second output terminal of the signal sampling circuit to obtain a second digital signal; A signal of a sampling resistor in the signal sampling circuit is acquired according to the first digital signal and the second digital signal, and the pulse width modulation signal is obtained according to the signal of the sampling resistor.

9. An electronic device, It is characterized in that The electronic device comprises a motor and a motor control circuit as claimed in claim 7 or 8.

10. A signal sampling method, It is characterized in that The method is applied to the signal sampling circuit according to any one of claims 1 to 6, and the method comprises: The first operational amplifier receives the signal of the sampling resistor, amplifies the signal of the sampling resistor and outputs it to a first output terminal of the signal sampling circuit; The second operational amplifier receives the signal at the ground terminal, amplifies the signal at the ground terminal, and outputs the amplified signal to the second output terminal of the signal sampling circuit.

11. The method according to claim 10, It is characterized in that The signal of the sampling resistor is determined according to the signal of the first output terminal of the signal sampling circuit and the signal of the second output terminal of the signal sampling circuit.

12. A motor control method, It is characterized in that The method is applied to the motor control circuit according to claim 7 or 8, and the method comprises: The controller obtains a pulse width modulation signal according to a signal received from an output terminal of the first operational amplifier and a signal received from an output terminal of the second operational amplifier; The controller outputs the pulse width modulation signal to the pulse width modulation control circuit; The pulse width modulation control circuit adjusts the rotation speed of the motor according to the pulse width modulation signal.

13. The method according to claim 12, It is characterized in that The controller obtains a pulse width modulation signal according to a signal received from an output terminal of the first operational amplifier and a signal received from an output terminal of the second operational amplifier, comprising: Performing analog-to-digital conversion on a signal received from an output terminal of the first operational amplifier to obtain a first digital signal, and performing analog-to-digital conversion on a signal received from an output terminal of the second operational amplifier to obtain a second digital signal; A signal of a sampling resistor in the signal sampling circuit is acquired according to the first digital signal and the second digital signal, and the pulse width modulation signal is obtained according to the signal of the sampling resistor.

14. A chip, It is characterized in that The chip includes a substrate, and a signal sampling circuit according to any one of claims 1 to 6 packaged on the substrate.

15. A chip, It is characterized in that The chip stores computer-executable instructions, and when the computer-executable instructions are executed, the method corresponding to the controller described in claim 12 or 13 is executed.

16. A computer-readable storage medium, It is characterized in that It includes computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method corresponding to the controller described in claim 12 or 13.

Citation Information

Patent Citations

  • Electric circuit device

    CN106998620A

  • Arithmetic circuit, control circuit, and display orientation detecting system

    CN109557842A

  • Hall-element-free motor control device and method and storage medium

    CN110572090A

  • Passive circuit element series connection electronic circuit device

    JP2007258353A

  • Multi-stage differential amplifier of balanced input and output for amplification of small signal audio

    KR102374914B1