Phase current sampling calibration method and system

By using the internal resistance and bus current of the three-phase power MOS tube in the three-phase bridge arm drive circuit for phase current sampling and calibration, the problems of high cost of sampling resistance and internal resistance temperature drift in the prior art are solved, and efficient and reliable phase Current sampling.

CN118938101APending Publication Date: 2024-11-12AMICRO SEMICONDUCTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411143379.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The phase current sampling method in the existing three-phase bridge arm drive circuit requires setting multiple sampling resistors, resulting in high cost and increased power consumption. The internal resistance of the power MOS tube is easily affected by temperature, making it difficult to accurately calculate the phase current.

Method used

A phase current sampling and calibration method is adopted. By using the three-phase bridge arm drive circuit as the current sampling resistor in a three-phase bridge arm drive circuit within one sampling period, the internal resistance of the power MOS tube is calibrated based on the bus current, and the internal resistance value is periodically updated. , to reduce sampling costs and solve the problem of internal resistance temperature drift.

Benefits of technology

The reliability and accuracy of phase current sampling is achieved, the sampling hardware cost is reduced, the need to set up additional temperature sensors is avoided, and the internal resistance calibration process of power MOS tubes is optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938101A_ABST
    Figure CN118938101A_ABST
Patent Text Reader

Abstract

The invention discloses a phase current sampling calibration method and system. The method comprises the following steps: acquiring a first phase current corresponding to an internal resistance of a first phase power MOS tube and a second phase current corresponding to an internal resistance of a second phase power MOS tube at a first sampling moment; and collecting the bus current corresponding to the bus resistor at the second sampling moment, and calibrating the internal resistance value of the first-phase power MOS tube and the internal resistance value of the second-phase power MOS tube based on the bus current. According to the invention, through switching control of the first sampling moment and the second sampling moment in a sampling period, the internal resistance of the three-phase power MOS tube in the three-phase bridge arm driving circuit is used as a current sampling resistor, and then the internal resistance of the power MOS tube is calibrated based on the bus resistor, so that the sampling cost is greatly reduced, and the sampling precision is improved. And the problem of temperature drift of the inner resistance of the power MOS tube is solved according to the bus current, and the phase current sampling and the inner resistance calibration process of the power MOS tube are effectively optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motor drive, and in particular to a phase current sampling and calibration method and system. Background Art

[0002] At present, in the application scenarios of brushless motors or other types of motors, phase current sampling is usually performed based on a three-phase bridge arm drive circuit to drive the operation of the motor according to the phase current. For example, the technical solution disclosed in Chinese patent application number "CN202311200362.0" and the patent application name "A motor control chip and a motor control circuit" is based on sampling resistors connected to the three-phase inverter circuit to sample the main current generated by the three-wire inverter circuit. At present, the three-resistor phase current sampling method of the three-phase bridge arm drive circuit mainly collects the phase current of each phase by setting a sampling resistor on each phase bridge arm. This sampling and detection method requires the setting of three sampling resistors, two of which are used to sample and detect two phase currents, and one resistor is used to sample and detect the bus current. The cost is relatively high, and the large number of resistors increases the overall power consumption of the circuit, affecting the circuit control efficiency.

[0003] In order to reduce the number of resistors required for sampling, a method for sampling phase current through the internal resistance of a power MOS tube has been proposed in the prior art. However, this sampling detection method has the problem that the internal resistance of the power MOS tube is easily affected by temperature, making it difficult to accurately calculate the phase current based on the internal resistance value. Summary of the invention

[0004] The present application provides a phase current sampling and calibration method, which is applied to a three-phase bridge arm drive circuit. The phase current sampling and calibration method specifically includes: collecting a first phase current corresponding to the internal resistance of a first phase power MOS tube and a second phase current corresponding to the internal resistance of a second phase power MOS tube at a first sampling moment; collecting a bus current corresponding to the bus resistance at a second sampling moment, and calibrating the first phase power MOS tube internal resistance and the second phase power MOS tube internal resistance based on the bus current; wherein a sampling cycle includes a first sampling moment and a second sampling moment.

[0005] Furthermore, the first sampling moment is the moment when the power MOS tubes in the upper bridge arm of each phase in the three-phase bridge arm driving circuit are all closed and the power MOS tubes in the lower bridge arm of each phase are all turned on.

[0006] Furthermore, the collecting of the first phase current corresponding to the internal resistance of the first phase power MOS tube and the second phase current corresponding to the internal resistance of the second phase power MOS tube at the first sampling moment specifically includes: triggering the first sampling moment at the moment when the power MOS tubes in the upper bridge arm of each phase in the three-phase bridge arm driving circuit are all closed and the power MOS tubes in the lower bridge arm of each phase are all turned on; acquiring the internal resistance of the power MOS tube of the lower bridge arm of the first phase and the internal resistance of the power MOS tube of the lower bridge arm of the second phase; collecting the first phase voltage across the power MOS tube of the lower bridge arm of the first phase, and calculating the first phase current corresponding to the internal resistance of the power MOS tube of the lower bridge arm of the first phase based on the internal resistance of the power MOS tube of the lower bridge arm of the first phase and the first phase voltage; collecting the second phase voltage across the power MOS tube of the lower bridge arm of the second phase, and calculating the second phase current corresponding to the internal resistance of the power MOS tube of the lower bridge arm of the second phase based on the internal resistance of the power MOS tube of the lower bridge arm of the second phase and the second phase voltage.

[0007] Furthermore, the phase current sampling and calibration method further includes: at the first sampling moment, based on the collected first phase current and second phase current, calculating the third phase current by the relationship that the three-phase current and the value are zero.

[0008] Further, the trigger entry condition for the second sampling moment in the phase current sampling calibration method is: the power MOS tube of the lower bridge arm of the first phase is turned on, the power MOS tube of the upper bridge arm of the second phase is turned on, and the power MOS tube of the upper bridge arm of the third phase is turned on; or, the power MOS tube of the lower bridge arm of the second phase is turned on, the power MOS tube of the upper bridge arm of the first phase is turned on, and the power MOS tube of the upper bridge arm of the third phase is turned on.

[0009] Furthermore, the phase current sampling and calibration method also includes, at the second sampling moment: based on the trigger entry condition at the second sampling moment, determining that the target calibration internal resistance of the bus current is the internal resistance of the first-phase power MOS tube or the internal resistance of the second-phase power MOS tube; when the trigger entry condition at the second sampling moment is that the power MOS tube of the lower bridge arm of the first phase is turned on, the power MOS tube of the upper bridge arm of the second phase is turned on, and the power MOS tube of the upper bridge arm of the third phase is turned on, then determining that the target calibration internal resistance of the bus current is the internal resistance of the first-phase power MOS tube; when the trigger entry condition at the second sampling moment is that the power MOS tube of the lower bridge arm of the second phase is turned on, the power MOS tube of the upper bridge arm of the first phase is turned on, and the power MOS tube of the upper bridge arm of the third phase is turned on, then determining that the target calibration internal resistance of the bus current is the internal resistance of the second-phase power MOS tube.

[0010] Furthermore, the phase current sampling and calibration method also includes, at the second sampling moment: calibrating the target calibration internal resistance based on the bus current; calibrating the internal resistance of the other phase power MOS tube based on the calibrated target calibration internal resistance; wherein, when the target calibration internal resistance is the internal resistance of the first phase power MOS tube, the internal resistance of the other phase power MOS tube is the internal resistance of the second phase power MOS tube; when the target calibration internal resistance is the internal resistance of the second phase power MOS tube, the internal resistance of the other phase power MOS tube is the internal resistance of the first phase power MOS tube.

[0011] Furthermore, the target calibration internal resistance value is calibrated based on the bus current, specifically including: obtaining the bus resistance value; collecting the bus voltage corresponding to the bus resistance; collecting the target calibration phase voltage corresponding to the target calibration internal resistance; calculating the product of the target calibration phase voltage corresponding to the target calibration internal resistance and the bus resistance value as the first calibration value; using the first calibration value as the dividend, the bus voltage corresponding to the bus resistance as the divisor, and calculating the quotient of the divisor and the dividend as the second calibration value; updating and calibrating the internal resistance value of the target calibration internal resistance to be equal to the second calibration value.

[0012] Furthermore, the calibrating the internal resistance of the power MOS tube of another phase based on the calibrated target calibration internal resistance specifically includes: calculating the internal resistance value difference before and after calibration of the target calibration internal resistance; calculating the internal resistance value difference of the power MOS tube of another phase that needs to be calibrated based on the temperature coefficient ratio of the target calibration internal resistance and the internal resistance of the power MOS tube of another phase; and calibrating and updating the internal resistance of the power MOS tube of another phase based on the internal resistance value difference that needs to be calibrated.

[0013] Furthermore, the phase current sampling and calibration method also includes: at a first sampling moment, collecting the corresponding first phase current according to the first phase power MOS tube internal resistance calibrated and updated at the second sampling moment of the previous sampling cycle, and collecting the corresponding second phase current according to the second phase power MOS tube internal resistance calibrated and updated at the second sampling moment of the previous sampling cycle, and calculating the third phase current through the relationship between the three-phase current and the value being zero.

[0014] The present application also discloses a phase current sampling and calibration system, which applies the phase current sampling and calibration method as described in any of the above items, and the system specifically includes: a three-phase bridge arm drive circuit, a calibration control module; wherein each phase bridge arm drive circuit in the three-phase bridge arm drive circuit is provided with a power MOS tube, and a bus resistor is provided on the bus; the sampling and calibration control module is respectively connected to the control end of each phase in the three-phase bridge arm drive circuit, and is used to output a three-phase PWM signal to control the switching of a first sampling moment and a second sampling moment, and collect the first phase current corresponding to the internal resistance of the first phase power MOS tube and the second phase current corresponding to the internal resistance of the second phase power MOS tube at the first sampling moment; collect the bus current corresponding to the bus resistor at the second sampling moment, and calibrate the first phase power MOS tube internal resistance and the second phase power MOS tube internal resistance based on the bus current.

[0015] Furthermore, each phase bridge arm driving circuit in the three-phase bridge arm driving circuit includes an upper bridge arm and a lower bridge arm, and the upper bridge arm and the lower bridge arm are respectively provided with a power MOS tube; the sampling calibration control module includes: a first gain-capable amplifier, a second gain-capable amplifier and a third gain-capable amplifier; wherein the first gain-capable amplifier is connected in parallel to the power MOS tube input end of the first phase lower bridge arm and the power MOS tube output end of the first phase lower bridge arm, and is used to collect the first phase voltage corresponding to the power MOS tube of the first phase lower bridge arm at the first sampling moment; the second gain-capable amplifier is connected in parallel to the power MOS tube input end of the second phase lower bridge arm and the power MOS tube output end of the second phase lower bridge arm, and is used to collect the second phase voltage corresponding to the power MOS tube of the second phase lower bridge arm at the second sampling moment; the third gain-capable amplifier is connected in parallel to both ends of the bus resistor, and is used to collect the bus voltage corresponding to the bus resistor.

[0016] Furthermore, the sampling and calibration control module also includes: a control unit; wherein the control unit is used to output a three-phase PWM signal; the control unit internally stores the latest updated first-phase power MOS tube internal resistance and the latest updated second-phase power MOS tube internal resistance, and is used to receive the first-phase voltage collected by the first gain amplifier and the second-phase voltage collected by the second gain amplifier, and calculate the three-phase current of the three-phase bridge arm drive circuit at the first sampling moment; the control unit internally stores the bus resistance value, and is used to receive the bus voltage collected by the third-phase gain amplifier, calculate the bus current at the second sampling moment, and update and calibrate the first-phase power MOS tube internal resistance and the second-phase power MOS tube internal resistance stored internally.

[0017] The phase current sampling calibration method and system described in the present application utilizes the internal resistance of the three-phase power MOS tube in the three-phase bridge arm driving circuit as the current sampling resistor within a sampling cycle, and then calibrates the internal resistance of the power MOS tube based on the bus resistance, so as to periodically calibrate and update the resistance value of the power MOS tube internal resistance, and ensure the reliability of phase current sampling based on the internal resistance of the power MOS tube. Compared with the solution of setting three sampling resistors in the prior art, the sampling cost is greatly reduced, and the problem of temperature drift of the internal resistance of the power MOS tube is solved according to the bus current. At the same time, through the switching control of the first sampling moment and the second sampling moment, the phase current sampling and power MOS tube internal resistance calibration process are effectively optimized. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flow chart of a phase current sampling and calibration method according to an embodiment of the present application.

[0019] Figure 2 A circuit diagram of a phase current sampling and calibration system according to an embodiment of the present application.

[0020] Figure 3 A waveform diagram of a three-phase PWM signal according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will describe the embodiments of the present application in detail in conjunction with the accompanying drawings. It should be understood that the specific embodiments described below are only used to explain the present application and are not used to limit the present application.

[0022] At present, the three-resistance phase current sampling method of the three-phase bridge arm drive circuit is mainly through: ① setting a sampling resistor on each phase bridge arm to collect the phase current of each phase; or, ② sampling the phase current through the internal resistance of the power MOS tube. Specifically, method ① requires the setting of three sampling resistors, two of which are used to sample and detect the two phase currents, and one resistor is used to sample and detect the bus current. The cost is relatively high, and the large number of resistors increases the overall power consumption of the circuit, affecting the circuit control efficiency. Method ② does not require the additional setting of three sampling resistors, but the internal resistance of the power MOS tube is easily affected by the ambient temperature, resulting in changes in the internal resistance temperature drift, and it is difficult to accurately calculate the phase current based on the internal resistance value of the power MOS tube.

[0023] In order to solve the above problems, the present application proposes a phase current sampling calibration method, which is applied to a three-phase bridge arm drive circuit, aiming to solve the shortcomings of method ① and method ②. The three-phase bridge arm drive circuit includes a first-phase bridge arm, a second-phase bridge arm, a third-phase bridge arm and a busbar, wherein the first-phase bridge arm includes a first-phase power MOS tube; the second-phase bridge arm includes a second-phase power MOS tube; the third-phase bridge arm includes a third-phase power MOS tube; and a busbar resistor is provided on the busbar.

[0024] like Figure 1 As shown, the phase current sampling and calibration method includes the following steps: collecting the first phase current corresponding to the internal resistance of the first phase power MOS tube and the second phase current corresponding to the internal resistance of the second phase power MOS tube at the first sampling moment; collecting the bus current corresponding to the bus resistance at the second sampling moment, and calibrating the first phase power MOS tube internal resistance and the second phase power MOS tube internal resistance based on the bus current; wherein a sampling cycle includes the first sampling moment and the second sampling moment.

[0025] Specifically, the first sampling moment is used to collect the corresponding first phase current based on the first phase bridge arm power MOS tube in the three-phase bridge arm drive circuit, and the second phase bridge arm power MOS tube collects the corresponding second phase current, so as to realize the collection of each phase current of the three-phase bridge arm drive circuit based on the internal resistance of the power MOS tube, without the need to additionally set up three-way phase current sampling resistors, reduce the hardware cost of phase current sampling, and simplify the phase current sampling circuit. The second sampling moment is used to collect the corresponding bus current based on the bus resistance set on the bus of the three-phase bridge arm drive circuit, and calibrate the internal resistance of each phase power MOS tube in combination with the conduction status of the three-phase bridge arm in the three-phase bridge arm drive circuit, effectively solving the problem that the internal resistance of the power MOS tube is easily affected by the circuit temperature and the resistance value is unstable, without the need to additionally set up a temperature sensor to calibrate the internal resistance of the power MOS tube according to temperature changes.

[0026] This implementation method uses the internal resistance of the three-phase power MOS tube in the three-phase bridge arm driving circuit as the current sampling resistor within a sampling cycle, and then calibrates the internal resistance of the power MOS tube based on the bus resistance, and periodically calibrates and updates the resistance value of the power MOS tube internal resistance to ensure the reliability of phase current sampling based on the internal resistance of the power MOS tube. Compared with the solution of setting three sampling resistors in the prior art, the sampling cost is greatly reduced, and the problem of temperature drift of the internal resistance of the power MOS tube is solved according to the bus current. At the same time, through the switching control of the first sampling moment and the second sampling moment, the phase current sampling and power MOS tube internal resistance calibration process are effectively optimized.

[0027] As a preferred implementation of the present application, the first sampling moment is configured as the moment when the power MOS tubes in the upper bridge arm of each phase in the three-phase bridge arm drive circuit are all closed, and the power MOS tubes in the lower bridge arm of each phase are all turned on. Specifically, the conduction status of the power MOS tubes in the upper bridge arm and the lower bridge arm of each phase in the three-phase bridge arm drive circuit is switched based on the PWM signal control transmitted by the MCU control system, so that the phase current sampling circuit of the present application can switch the conduction status of the power MOS tube based on the PWM signal to control the phase current sampling circuit to enter the first sampling moment, triggering the sampling of the phase current.

[0028] Specifically, each phase bridge arm of the three-phase bridge arm driving circuit includes an upper bridge arm and a lower bridge arm, and the upper bridge arm and the lower bridge arm are respectively provided with a power MOS tube, such as Figure 2 As shown, the three-phase bridge arm driving circuit includes: a power MOS tube Q1 of the first phase upper bridge arm, a power MOS tube Q2 of the first phase lower bridge arm, a power MOS tube Q3 of the second phase upper bridge arm, a power MOS tube Q4 of the second phase lower bridge arm, a power MOS tube Q5 of the third phase upper bridge arm, and a power MOS tube Q6 of the third phase lower bridge arm. Each phase bridge arm of the three-phase bridge arm driving circuit receives a PWM signal transmitted by the MCU control system to switch the conduction status of the power MOS tube, thereby realizing the switching between the first sampling moment and the second sampling moment. Figure 3 As shown in the waveform diagram of the PWM signal, the low level 0 of the PWM signal output by the MCU control system represents the power MOS tube of the lower bridge arm of the phase is turned on, and the high level 1 represents the power MOS tube of the upper bridge arm of the phase is turned on. When the power MOS tubes in the upper bridge arm of each phase controlled by the three-phase PWM signal are all closed, and the power MOS tubes in the lower bridge arm of each phase are all turned on, it is confirmed that the first sampling moment is triggered.

[0029] As a preferred implementation manner of the present application, the first phase current corresponding to the internal resistance of the first phase power MOS tube and the second phase current corresponding to the internal resistance of the second phase power MOS tube are collected at the first sampling moment, specifically including: at the moment when the power MOS tubes in the upper bridge arm of each phase in the three-phase bridge arm drive circuit are all closed and the power MOS tubes in the lower bridge arm of each phase are all turned on, triggering to enter the first sampling moment; obtaining the internal resistance of the power MOS tube of the lower bridge arm of the first phase and the internal resistance of the power MOS tube of the lower bridge arm of the second phase; specifically, the method for obtaining the internal resistance of the power MOS tube of the lower bridge arm of the first phase and the internal resistance of the power MOS tube of the lower bridge arm of the second phase is based on the number of times the internal resistance of the power MOS tube is obtained, if the resistance value of the internal resistance of the power MOS tube has not been calibrated and updated, then the initial resistance value pre-marked by the power MOS tube is obtained, on the contrary, if the resistance value of the internal resistance of the power MOS tube has been calibrated and updated, then the resistance value of the internal resistance of the power MOS tube updated most recently is obtained.

[0030] Collect the first phase voltage across the power MOS tube of the first phase lower bridge arm, and calculate the first phase current corresponding to the internal resistance of the power MOS tube of the first phase lower bridge arm based on the internal resistance of the power MOS tube of the first phase lower bridge arm and the first phase voltage; collect the second phase voltage across the power MOS tube of the second phase lower bridge arm, and calculate the second phase current corresponding to the internal resistance of the power MOS tube of the second phase lower bridge arm based on the internal resistance of the power MOS tube of the second phase lower bridge arm and the second phase voltage. Specifically, the first phase current corresponding to the internal resistance of the power MOS tube of the first phase lower bridge arm is equal to the product of the internal resistance of the power MOS tube of the first phase lower bridge arm and the first phase voltage. The second phase current corresponding to the internal resistance of the power MOS tube of the second phase lower bridge arm is equal to the product of the internal resistance of the power MOS tube of the second phase lower bridge arm and the second phase voltage. The collection of the first phase voltage across the power MOS tube of the first phase lower bridge arm can be, but is not limited to, such as Figure 2As shown, it is realized based on the first gain amplifier PGA1 at both ends of the power MOS tube Q2 connected in parallel to the first phase lower bridge arm. The acquisition of the second phase voltage at both ends of the power MOS tube of the second phase lower bridge arm can be but is not limited to being realized based on the second gain amplifier PGA2 at both ends of the power MOS tube Q4 connected in parallel to the second phase lower bridge arm. This embodiment realizes the acquisition of the first phase current and the second phase current in the three-phase bridge arm drive circuit based on the power MOS tube of the first phase lower bridge arm and the power MOS tube of the second phase lower bridge arm, making full use of the existing hardware resources of the three-phase bridge arm drive circuit and reducing the hardware cost required for phase current acquisition.

[0031] As a preferred embodiment of the present application, the phase current sampling and calibration method also includes: at the first sampling moment, based on the collected first phase current and second phase current, the third phase current is calculated through the relationship that the sum of the three-phase currents is zero. Specifically, according to Kirchhoff's law, for any node in the circuit, the sum of the currents flowing into the node must be equal to the sum of the currents flowing out of the node. Therefore, for the current detection of the three phases of the three-phase bridge arm drive circuit, the current value of the other phase can be calculated by collecting the currents of two phases, and there is no need to set a gain amplifier at both ends of the power MOS tube of the lower bridge arm of the third phase to collect the third phase voltage, thereby reducing the hardware cost of the three-phase current collection of the three-phase bridge arm drive circuit, and can reduce the setting of hardware sampling components based on simple calculations, thereby reducing the sampling cost.

[0032] As a preferred implementation of the present application, the second sampling moment is triggered based on the conduction condition of the power MOS tubes of each phase in the three-phase bridge arm driving circuit. Since the power MOS tube internal resistance used to collect the phase current in the present application includes the power MOS tube of the lower bridge arm of the first phase and the power MOS tube of the lower bridge arm of the second phase, based on the temperature drift characteristics of the power MOS tube internal resistance, only the bus resistance can be used to calibrate the internal resistance of one of the power MOS tubes, and the internal resistance of the other power MOS tube can be calibrated in proportion. Therefore, in order to distinguish the target calibration object of the current bus resistance, the conduction condition of the power MOS tubes of each phase in the three-phase bridge arm driving circuit is controlled by the three-phase PWM signal to be distinguished, and the trigger entry condition of the second sampling moment in the phase current sampling calibration method is configured as: the power MOS tube of the lower bridge arm of the first phase is turned on, the power MOS tube of the upper bridge arm of the second phase is turned on, and the power MOS tube of the upper bridge arm of the third phase is turned on; or, the power MOS tube of the lower bridge arm of the second phase is turned on, the power MOS tube of the upper bridge arm of the first phase is turned on, and the power MOS tube of the upper bridge arm of the third phase is turned on. This implementation method realizes accurate calibration of the internal resistance of a specified power MOS tube by the bus current without increasing the hardware cost by switching the conduction state of the power MOS tube.

[0033] As a preferred embodiment of the present application, the phase current sampling and calibration method further includes at the second sampling moment: based on the trigger entry condition at the second sampling moment, determining the target calibration internal resistance of the bus current as the first phase power MOS tube internal resistance or the second phase power MOS tube internal resistance; when the trigger entry condition at the second sampling moment is that the power MOS tube of the first phase lower bridge arm is turned on, the power MOS tube of the second phase upper bridge arm is turned on, and the power MOS tube of the third phase upper bridge arm is turned on, then determining the target calibration internal resistance of the bus current as the first phase power MOS tube internal resistance; when the trigger entry condition at the second sampling moment is that the power MOS tube of the second phase lower bridge arm is turned on, the power MOS tube of the first phase upper bridge arm is turned on, and the power MOS tube of the third phase upper bridge arm is turned on, then determining the target calibration internal resistance of the bus current as the second phase power MOS tube internal resistance. Specifically, by controlling the power MOS tube of the upper bridge arm or the power MOS tube of the lower bridge arm to be turned on in each phase of the three-phase bridge arm drive circuit, the target calibration internal resistance of the bus current is determined to be the internal resistance corresponding to the only turned-on power MOS tube of the lower bridge arm. This implementation defines how to distinguish the target calibration internal resistance of the bus current based on the trigger entry condition at the second sampling moment, and implements calibration resource reuse according to the conduction status of the power MOS tube under limited hardware resources, enriches the calibrable objects of the bus current, and ensures the calibration accuracy.

[0034] As a preferred implementation of the present application, the phase current sampling calibration method further includes: calibrating the target calibration internal resistance based on the bus current; calibrating the internal resistance of the power MOS tube of another phase based on the calibrated target calibration internal resistance. Wherein, when the target calibration internal resistance is the internal resistance of the first phase power MOS tube, the internal resistance of the power MOS tube of another phase is the internal resistance of the power MOS tube of the second phase; when the target calibration internal resistance is the internal resistance of the power MOS tube of the second phase, the internal resistance of the power MOS tube of another phase is the internal resistance of the power MOS tube of the first phase.

[0035] Specifically, based on the proportional relationship between each phase current and the bus current in the three-phase bridge arm driving circuit, the target calibration internal resistance is calibrated based on the bus current combined with the phase current corresponding to the target calibration internal resistance. For example, when the trigger condition at the second sampling moment is that the power MOS tube of the first phase lower bridge arm is turned on, the power MOS tube of the second phase upper bridge arm is turned on, and the power MOS tube of the third phase upper bridge arm is turned on, based on the current flow direction, the first phase current at both ends of the power MOS tube of the first phase lower bridge arm should be equal to the bus current. Therefore, based on the physical fact that the first phase current is equal to the bus current, the internal resistance of the power MOS tube of the first phase lower bridge arm can be calibrated in combination with the first phase voltage and the bus resistance. On the contrary, if the trigger condition at the second sampling moment is that the power MOS tube of the second phase lower bridge arm is turned on, the power MOS tube of the first phase upper bridge arm is turned on, and the power MOS tube of the third phase upper bridge arm is turned on, based on the current flow direction, the second phase current of the power MOS tube of the second phase lower bridge arm should be equal to the bus current, so the internal resistance of the power MOS tube of the second phase lower bridge arm can be calibrated based on the physical fact that the second phase current is equal to the bus current, combined with the second phase voltage and bus resistance. This embodiment solves the limitation that the bus current can only calibrate the internal resistance of the power MOS tube of one phase bridge arm in a targeted manner based on the conduction status of the three-phase bridge arm of the three-phase bridge arm driving circuit, so that the accurate calibration of the internal resistance of the power MOS tube of each phase can be achieved with low hardware cost.

[0036] As a preferred implementation of the present application, the target calibration internal resistance value is calibrated based on the bus current, specifically including: obtaining the bus resistance value; collecting the bus voltage corresponding to the bus resistance; collecting the target calibration phase voltage corresponding to the target calibration internal resistance; calculating the product of the target calibration phase voltage corresponding to the target calibration internal resistance and the bus resistance value as the first calibration value; The first calibration value is used as the dividend, the bus voltage corresponding to the bus resistance is used as the divisor, and the quotient of the divisor and the dividend is calculated as the second calibration value; the internal resistance value of the target calibration internal resistance is updated and calibrated to be equal to the second calibration value.

[0037] The bus resistance value can be obtained by, but is not limited to, using a resistor that is less affected by temperature as the bus resistance, and obtaining the initial resistance value pre-marked by the bus resistance as the bus resistance value. The bus voltage corresponding to the bus resistance can be, but is not limited to, Figure 2 As shown, the target calibration phase current corresponding to the target calibration internal resistance can be, but is not limited to, Figure 2As shown, based on the target calibrated power MOS tube internal resistance, the first gain amplifier PGA1 connected in parallel at both ends of the first phase lower bridge arm power MOS tube Q2 or the second gain amplifier PGA2 connected in parallel at both ends of the second phase lower bridge arm power MOS tube Q4 is collected. This embodiment uses the principle that the bus current is equivalent to the current at both ends of the target calibration internal resistance, and realizes the resistance value of the target calibration internal resistance at this moment based on the bus resistance value, the bus voltage and the target calibration phase voltage, so as to determine the calibration update value of the target calibration internal resistance, ensure the accurate update of the resistance value of the target calibration internal resistance, and make the phase current collected by the three-phase bridge arm drive circuit based on the power MOS tube internal resistance reliable.

[0038] As a preferred implementation of the present application, the method of calibrating the internal resistance of the power MOS tube of another phase based on the calibrated target calibration internal resistance specifically includes: calculating the internal resistance difference before and after the calibration of the target calibration internal resistance; calculating the internal resistance difference of the power MOS tube of another phase that needs to be calibrated based on the temperature coefficient ratio of the target calibration internal resistance and the internal resistance of the power MOS tube of another phase; calibrating and updating the internal resistance of the power MOS tube of another phase based on the internal resistance difference that needs to be calibrated. Specifically, the internal resistance of the power MOS tube has a corresponding temperature coefficient based on its sensitivity to temperature to feedback its temperature drift, and different power MOS tube internal resistances have corresponding temperature coefficient ratios based on the temperature coefficients. Since the ambient temperatures of the power MOS tubes of each phase in the same three-phase bridge arm drive circuit are similar, this implementation method realizes proportional calibration and update of the internal resistance of the power MOS tube according to the temperature coefficient ratio between the calibrated internal resistance of the power MOS tube and the internal resistance of the power MOS tube of other phases.

[0039] As a preferred embodiment of the present application, the phase current sampling and calibration method also includes: at the first sampling moment, collecting the corresponding first phase current according to the first phase power MOS tube internal resistance calibrated and updated at the second sampling moment of the previous sampling cycle, and collecting the corresponding second phase current according to the second phase power MOS tube internal resistance calibrated and updated at the second sampling moment of the previous sampling cycle, and calculating the third phase current through the relationship between the three-phase current and the value being zero. This embodiment collects phase currents by using the first phase power MOS tube internal resistance and the second phase power MOS tube internal resistance updated by bus current calibration at the second sampling moment of the previous sampling cycle to periodically eliminate the influence of the resistance change of the first phase power MOS tube internal resistance and the second phase power MOS tube internal resistance caused by the ambient temperature, so as to maximize the reliability of the sampled phase current.

[0040] As a preferred implementation of the present application, a phase current sampling and calibration system is provided, such as Figure 2As shown, it specifically includes: a three-phase bridge arm drive circuit and a sampling calibration control module; wherein each phase bridge arm drive circuit in the three-phase bridge arm drive circuit is provided with a power MOS tube, and a bus resistor R1 is provided on the bus; the sampling calibration control module is respectively connected to the control end of each phase in the three-phase bridge arm drive circuit, and is used to output a three-phase PWM signal to control the switching of the first sampling moment and the second sampling moment, and collect the first phase current corresponding to the internal resistance of the first phase power MOS tube and the second phase current corresponding to the internal resistance of the second phase power MOS tube at the first sampling moment; collect the bus current corresponding to the bus resistor at the second sampling moment, and calibrate the first phase power MOS tube internal resistance and the second phase power MOS tube internal resistance based on the bus current. The phase current sampling calibration system provided in this embodiment controls the switching of the first sampling moment and the second sampling moment in a sampling cycle according to the PWM signal output by the sampling calibration control module, so as to periodically complete the three-phase current collection of the three-phase bridge arm drive circuit and the calibration and updating of the power MOS tube internal resistance used to realize the phase current collection, and ensure the accuracy of the phase current based on the power MOS tube internal resistance collection.

[0041] As a preferred implementation of the present application, Figure 2 As shown, each phase bridge arm driving circuit in the three-phase bridge arm driving circuit includes an upper bridge arm and a lower bridge arm, and the upper bridge arm and the lower bridge arm are respectively provided with a power MOS tube; specifically, the upper bridge arm of the first phase is provided with a power MOS tube Q1, the lower bridge arm of the first phase is provided with a power MOS tube Q2, the upper bridge arm of the second phase is provided with a power MOS tube Q3, the lower bridge arm of the second phase is provided with a power MOS tube Q4, the upper bridge arm of the third phase is provided with a power MOS tube Q5, and the lower bridge arm of the third phase is provided with a power MOS tube Q6.

[0042] The sampling calibration control module includes: a first gain amplifier, a second gain amplifier and a third gain amplifier; wherein the first gain amplifier PGA1 is connected in parallel to the input end of the power MOS tube Q2 of the first phase lower bridge arm and the output end of the power MOS tube Q2 of the first phase lower bridge arm, and is used to collect the first phase voltage corresponding to the power MOS tube Q2 of the first phase lower bridge arm at the first sampling moment; the second gain amplifier PGA2 is connected in parallel to the input end of the power MOS tube Q4 of the second phase lower bridge arm and the output end of the power MOS tube Q4 of the second phase lower bridge arm, and is used to collect the second phase voltage corresponding to the power MOS tube Q4 of the second phase lower bridge arm at the second sampling moment; the third gain amplifier PGA0 is connected in parallel to the two ends of the bus resistor R1, and is used to collect the bus voltage corresponding to the bus resistor R1 at the second sampling moment. The sampling calibration control module of this embodiment uses three gain amplifiers to achieve indirect current sampling based on the method of sampling voltage, and only sets gain amplifiers on both sides of the power MOS tube used for sampling phase current, thereby reducing unnecessary hardware costs.

[0043] As a preferred implementation of the present application, the sampling calibration control module further includes: a control unit MCU, such as Figure 2 As shown, the control unit MCU is connected to the control end of each phase in the three-phase bridge arm drive circuit based on its three interfaces PWM1\PWM2\PWM3, and is used to output three-phase PWM signals to control the conduction status of the upper bridge arm and the lower bridge arm of each phase.

[0044] The control unit stores the latest updated first-phase power MOS tube internal resistance and the latest updated second-phase power MOS tube internal resistance, and is connected to the output end of the first gain amplifier PGA1 based on its AD1 interface, and is connected to the output end of the second gain amplifier PGA2 based on its AD2 interface, for receiving the first phase voltage collected by the first gain amplifier and receiving the second phase voltage collected by the second gain amplifier, and calculating the three-phase current of the three-phase bridge arm drive circuit at the first sampling time. Wherein, the latest updated first-phase power MOS tube internal resistance and the latest updated second-phase power MOS tube internal resistance refer to the resistance value after the latest update and calibration of the first-phase power MOS tube internal resistance / second-phase power MOS tube internal resistance, which can be but not limited to the first-phase power MOS tube internal resistance and the second-phase power MOS tube internal resistance updated and calibrated at the second sampling time of the previous sampling cycle, or, the second sampling time is first performed in the current sampling cycle and then switched to the first sampling time, and the first-phase power MOS tube internal resistance and the second-phase power MOS tube internal resistance are updated and calibrated based on the second sampling time of the current sampling cycle.

[0045] The control unit stores the bus resistance value internally, and is connected to the output terminal of the third gain amplifier PGA0 based on its AD3 interface, so as to receive the bus voltage collected by the third phase gain amplifier, calculate the bus current at the second sampling time, and update and calibrate the internally stored first phase power MOS tube internal resistance and second phase power MOS tube internal resistance. This embodiment implements the process of calculating the phase current sampling results and calibrating the power MOS tube internal resistance of the phase current sampling and calibration system based on the control unit, and independently adjusts the resistance calibration update of each phase power MOS tube internal resistance.

[0046] Preferably, each phase in the three-phase bridge arm drive circuit is provided with a pre-drive circuit Pre Drv, and the three-phase PWM signal output by the control unit MCU corresponds to the pre-drive circuit Pre Drv of each phase, and the pre-drive circuit Pre Drv drives and controls the conduction of the upper bridge arm power MOS tube and the lower bridge arm power MOS tube of the phase based on the received PWM signal.

[0047] As a preferred embodiment of the present application, the control unit MCU internally stores the initial internal resistance value of the first phase lower bridge arm power MOS tube and the initial internal resistance value of the second phase lower bridge arm power MOS tube; wherein, when the control unit MCU calculates the first phase voltage based on the first phase current for the first time, the first phase voltage is calculated by using the stored initial internal resistance value of the first phase lower bridge arm power MOS tube combined with the first phase current; when the second phase voltage is calculated based on the second phase current for the first time, the second phase voltage is calculated by using the stored initial internal resistance value of the second phase lower bridge arm power MOS tube combined with the second phase current. Specifically, when the phase current sampling and calibration system is calculating the first phase voltage or the second phase voltage for the first time, the ambient temperature change caused by the system operation is small at this time, so the calibration control module is used to calculate the first phase voltage or the second phase voltage with the stored initial internal resistance value of the first phase lower bridge arm power MOS tube or the initial internal resistance value of the second phase lower bridge arm power MOS tube. At the same time, the initial internal resistance value of the first-phase lower bridge arm power MOS tube and the initial internal resistance value of the second-phase lower bridge arm power MOS tube are used as calibration update reference values ​​for the internal resistance of the first-phase lower bridge arm power MOS tube and the internal resistance of the second-phase lower bridge arm power MOS tube to ensure that the calibration control module can reliably update the calibration of the power MOS tube internal resistance.

[0048] As a preferred implementation manner of the present application, the initial internal resistance value of the first-phase lower bridge arm power MOS tube and the initial internal resistance value of the second-phase lower bridge arm power MOS tube stored inside the control unit MCU are erased and re-stored after each completion of the internal resistance calibration update of the first-phase lower bridge arm power MOS tube and / or the internal resistance calibration update of the second-phase lower bridge arm power MOS tube, so that the power MOS tube internal resistance value stored in the control unit is always the closest actual power MOS tube internal resistance value.

[0049] Obviously, the above-mentioned embodiments are only a part of the embodiments of the present invention, rather than all the embodiments, and the technical solutions between the various embodiments can be combined with each other. If the terms "first", "second", "third" and the like appear in the embodiments, it is to facilitate the distinction of related features and cannot be understood as indicating or implying their relative importance, order or the number of technical features. Although the embodiments of the present invention have been shown and described, it is understood by those of ordinary skill in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present invention, and the scope of the present invention is limited by the attached claims and their equivalents. The above is only the preferred embodiment of the present invention and is not intended to limit the present invention. For those of ordinary skill in the art, the present invention may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A phase current sampling calibration method, It is characterized in that The phase current sampling and calibration method is applied to a three-phase bridge arm driving circuit, and the phase current sampling and calibration method specifically includes: At a first sampling moment, a first phase current corresponding to the internal resistance of the first phase power MOS tube and a second phase current corresponding to the internal resistance of the second phase power MOS tube are collected; At the second sampling moment, a bus current corresponding to the bus resistance is collected, and the internal resistance of the first-phase power MOS tube and the internal resistance of the second-phase power MOS tube are calibrated based on the bus current; Among them, one sampling period includes a first sampling time and a second sampling time.

2. The phase current sampling and calibration method according to claim 1, It is characterized in that The first sampling moment is the moment when the power MOS tubes in the upper bridge arm of each phase in the three-phase bridge arm driving circuit are all closed and the power MOS tubes in the lower bridge arm of each phase are all turned on.

3. The phase current sampling and calibration method according to claim 2, It is characterized in that The collecting, at the first sampling moment, the first phase current corresponding to the internal resistance of the first phase power MOS tube and the second phase current corresponding to the internal resistance of the second phase power MOS tube specifically includes: When the power MOS tubes in the upper bridge arm of each phase in the three-phase bridge arm driving circuit are all closed and the power MOS tubes in the lower bridge arm of each phase are all turned on, the first sampling moment is triggered; Obtain the internal resistance of the power MOS tube of the lower bridge arm of the first phase and the internal resistance of the power MOS tube of the lower bridge arm of the second phase; Collecting a first phase voltage across two ends of a power MOS tube of a first phase lower bridge arm, and calculating a first phase current corresponding to the internal resistance of the power MOS tube of the first phase lower bridge arm based on the internal resistance of the power MOS tube of the first phase lower bridge arm and the first phase voltage; The second phase voltage at both ends of the power MOS tube of the second phase lower bridge arm is collected, and the second phase current corresponding to the internal resistance of the power MOS tube of the second phase lower bridge arm is calculated based on the internal resistance of the power MOS tube of the second phase lower bridge arm and the second phase voltage.

4. The phase current sampling and calibration method according to claim 1, It is characterized in that The phase current sampling and calibration method also includes: calculating the third phase current based on the collected first phase current and second phase current at the first sampling moment through the relationship between the three-phase current and the value being zero.

5. The phase current sampling and calibration method according to claim 1, It is characterized in that The trigger entry condition for the second sampling moment in the phase current sampling calibration method is: The power MOS tube of the lower bridge arm of the first phase is turned on, the power MOS tube of the upper bridge arm of the second phase is turned on, and the power MOS tube of the upper bridge arm of the third phase is turned on; Alternatively, the power MOS tube of the lower bridge arm of the second phase is turned on, the power MOS tube of the upper bridge arm of the first phase is turned on, and the power MOS tube of the upper bridge arm of the third phase is turned on.

6. The phase current sampling and calibration method according to claim 5, It is characterized in that The phase current sampling and calibration method further comprises, at the second sampling moment: Based on the trigger entry condition at the second sampling moment, determining the target calibration internal resistance of the bus current to be the internal resistance of the first-phase power MOS tube or the internal resistance of the second-phase power MOS tube; When the trigger entry condition at the second sampling moment is that the power MOS tube of the lower bridge arm of the first phase is turned on, the power MOS tube of the upper bridge arm of the second phase is turned on, and the power MOS tube of the upper bridge arm of the third phase is turned on, the target calibration internal resistance of the bus current is determined to be the internal resistance of the power MOS tube of the first phase; When the trigger entry condition at the second sampling moment is that the power MOS tube of the lower bridge arm of the second phase is turned on, the power MOS tube of the upper bridge arm of the first phase is turned on, and the power MOS tube of the upper bridge arm of the third phase is turned on, the target calibration internal resistance of the bus current is determined to be the internal resistance of the power MOS tube of the second phase.

7. The phase current sampling and calibration method according to claim 6, It is characterized in that The phase current sampling and calibration method further comprises, at the second sampling moment: Calibrate the target calibration internal resistance based on the bus current; Calibrate the internal resistance of the power MOS tube of another phase based on the calibrated target calibration internal resistance; Among them, when the target calibration internal resistance is the internal resistance of the first phase power MOS tube, the internal resistance of the other phase power MOS tube is the internal resistance of the second phase power MOS tube; when the target calibration internal resistance is the internal resistance of the second phase power MOS tube, the internal resistance of the other phase power MOS tube is the internal resistance of the first phase power MOS tube.

8. The phase current sampling and calibration method according to claim 7, It is characterized in that The calibrating the target calibration internal resistance value based on the bus current specifically includes: Get the resistance value of the busbar; Collect the bus voltage corresponding to the bus resistance; Collect the target calibration phase voltage corresponding to the target calibration internal resistance; Calculate the product of the target calibration phase voltage corresponding to the target calibration internal resistance and the bus resistance value as the first calibration value; The first calibration value is used as the dividend, the bus voltage corresponding to the bus resistance is used as the divisor, and the quotient of the divisor and the dividend is calculated as the second calibration value; The internal resistance value of the target calibration internal resistance is updated and calibrated to be equal to the second calibration value.

9. The phase current sampling and calibration method according to claim 8, It is characterized in that The step of calibrating the internal resistance of the power MOS tube of another phase based on the calibrated target calibration internal resistance specifically includes: Calculate the internal resistance value difference before and after the target calibration internal resistance calibration; Based on the temperature coefficient ratio of the target calibration internal resistance and the internal resistance of the power MOS tube of another phase, the difference of the internal resistance value that needs to be calibrated of the internal resistance of the power MOS tube of another phase is calculated; The internal resistance of the power MOS tube of another phase is calibrated and updated based on the difference of the internal resistance value to be calibrated.

10. The phase current sampling and calibration method according to claim 9, It is characterized in that The phase current sampling and calibration method further includes: At the first sampling moment, the corresponding first phase current is collected according to the first phase power MOS tube internal resistance calibrated and updated at the second sampling moment of the previous sampling cycle, and the corresponding second phase current is collected according to the second phase power MOS tube internal resistance calibrated and updated at the second sampling moment of the previous sampling cycle, and the third phase current is calculated through the relationship between the three-phase current and the value being zero.

11. A phase current sampling and calibration system, It is characterized in that The phase current sampling and calibration system applies the phase current sampling and calibration method according to any one of claims 1 to 10, and the system specifically comprises: a three-phase bridge arm drive circuit and a sampling and calibration control module; wherein, Each phase of the three-phase bridge arm driving circuit is provided with a power MOS tube, and a bus resistor is provided on the bus; The sampling and calibration control module is respectively connected to the control end of each phase in the three-phase bridge arm drive circuit, and is used to output a three-phase PWM signal to control the switching of the first sampling moment and the second sampling moment, and collect the first phase current corresponding to the internal resistance of the first phase power MOS tube and the second phase current corresponding to the internal resistance of the second phase power MOS tube at the first sampling moment; collect the bus current corresponding to the bus resistance at the second sampling moment, and calibrate the first phase power MOS tube internal resistance and the second phase power MOS tube internal resistance based on the bus current.

12. The phase current sampling and calibration system according to claim 11, It is characterized in that Each phase bridge arm driving circuit in the three-phase bridge arm driving circuit includes an upper bridge arm and a lower bridge arm, and the upper bridge arm and the lower bridge arm are respectively provided with a power MOS tube; the sampling calibration control module includes: a first gain amplifier, a second gain amplifier and a third gain amplifier; wherein, The first gain amplifier is connected in parallel to the power MOS tube input end of the first phase lower bridge arm and the power MOS tube output end of the first phase lower bridge arm, and is used to collect the first phase voltage corresponding to the power MOS tube of the first phase lower bridge arm at the first sampling moment; The second gain amplifier is connected in parallel to the power MOS tube input end of the second phase lower bridge arm and the power MOS tube output end of the second phase lower bridge arm, and is used to collect the second phase voltage corresponding to the power MOS tube of the second phase lower bridge arm at the second sampling moment; The third gain-adjustable amplifier is connected in parallel at both ends of the bus resistor and is used for collecting the bus voltage corresponding to the bus resistor.

13. The phase current sampling and calibration system according to claim 12, It is characterized in that The sampling and calibration control module also includes: a control unit; wherein, The control unit is used to output a three-phase PWM signal; The control unit stores the latest updated first-phase power MOS tube internal resistance and the latest updated second-phase power MOS tube internal resistance, and is used to receive the first-phase voltage collected by the first gain amplifier and the second-phase voltage collected by the second gain amplifier, and calculate the three-phase current of the three-phase bridge arm drive circuit at the first sampling time; The control unit stores the bus resistance value internally, which is used to receive the bus voltage collected by the third-phase gain amplifier, calculate the bus current at the second sampling moment, and update and calibrate the internally stored first-phase power MOS tube internal resistance and second-phase power MOS tube internal resistance.