A dead zone compensation circuit, driving circuit, method and chip
By designing a dead-band compensation circuit in the drive device and detecting and adjusting the dead-band time of the full-bridge circuit, the problems of output current compression and distortion of the drive device are solved, and the working performance and control accuracy of the driven device are improved.
Patent Information
- Application Number
- CN202111682920.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-12-31
AI Technical Summary
The full-bridge circuit in the existing driving device has a dead zone during operation, resulting in compression and distortion of the current output by the driving device, affecting the working performance of the driven device.
A dead-band compensation circuit is designed, including a zero-crossing detection unit, a signal detection unit and a signal compensation unit. By detecting the zero-crossing signal, the signal to be compensated is determined, and the dead-band time of the circuit is adjusted according to the preset dead-band compensation signal. Realize dead-band compensation for full-bridge circuits.
By compensating the circuit dead zone, the output current of the drive circuit is smoother, preventing current compression and distortion, and improving the working performance and control accuracy of the driven equipment.
Smart Images

Figure CN114337234B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of control driving technology, and in particular to a dead zone compensation circuit, a driving circuit, a method and a chip. Background Art
[0002] In the existing driving device, since there is a dead zone in the full-bridge circuit during operation, that is, when the current is positive, the current flows from the chip through the full-bridge circuit to the load connected to the full-bridge circuit, and the high level time of the voltage on the load line is less than the target time by a dead zone time, and conversely, the low level time of the voltage on the load line is more than the target time by a dead zone time, which causes the current output by the driving device to be compressed and distorted, thereby affecting the working performance of the driven device. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a dead zone compensation circuit, a driving circuit, a method and a chip to improve the problem of compression and distortion of the output current of the driving circuit.
[0004] In a first aspect, an embodiment of the present application provides a dead zone compensation circuit, including:
[0005] A zero-crossing detection unit, used for detecting a zero-crossing signal and sending the zero-crossing signal to a signal detection unit;
[0006] a signal detection unit, connected to the zero-crossing detection unit, configured to receive the zero-crossing signal, determine a signal to be compensated according to the zero-crossing signal, and send the signal to be compensated to the signal compensation unit;
[0007] The signal compensation unit is connected to the signal detection unit and is used to receive the signal to be compensated and adjust the dead time according to the signal to be compensated.
[0008] Optionally, the zero-crossing detection unit includes:
[0009] A zero-crossing detection resistor, wherein a first end of the zero-crossing detection resistor is connected to the signal detection unit, a second end of the zero-crossing detection resistor is grounded, and the zero-crossing detection resistor is used to detect the zero-crossing signal.
[0010] Optionally, the signal detection unit includes:
[0011] A comparator, wherein a first terminal of the comparator is connected to a first terminal of the zero-crossing detection unit, a second terminal of the comparator is connected to the signal compensation unit, and a third terminal of the comparator inputs a reference signal.
[0012] Optionally, the signal compensation unit includes:
[0013] A compensation subunit, used for sending a preset dead zone compensation signal to the adjustment subunit;
[0014] The adjustment subunit is connected to the compensation subunit, and is used to receive the signal to be compensated and the preset dead zone compensation signal, and adjust the dead zone time according to the signal to be compensated and the preset dead zone compensation signal.
[0015] Optionally, the compensation subunit includes: a delay device, a first logic device and a second logic device; the adjustment subunit includes: a selector; the first end of the delay device receives the preset dead zone compensation signal, the second end of the delay device is respectively connected to the first end of the first logic device and the first end of the second logic device, the second end of the first logic device is connected to the first end of the selector, the second end of the second logic device is connected to the second end of the selector, the third end of the selector inputs the signal to be compensated, and the fourth end of the selector outputs the adjusted preset dead zone compensation signal.
[0016] In a second aspect, an embodiment of the present application provides a driving circuit, comprising: a full-bridge circuit and a dead zone compensation circuit as described in the above embodiment, wherein:
[0017] The dead time compensation circuit is connected to the full bridge circuit and is used to adjust the dead time of the full bridge circuit;
[0018] The full-bridge circuit is used to adjust the output current according to the adjusted dead time to control the driven device.
[0019] Optionally, the dead zone compensation circuit includes a first dead zone compensation circuit and a second dead zone compensation circuit; the full-bridge circuit includes a first drive unit, a second drive unit, a first switch tube, a second switch tube, a third switch tube and a fourth switch tube; the first end of the first switch tube and the first end of the second switch tube are both connected to the power supply end, the second end of the first switch tube is connected to the first end of the first drive unit, the second end of the first drive unit is connected to the first end of the first dead zone compensation circuit, and the third end of the first switch tube is respectively connected to the first end of the third switch tube and the load; the second end of the third switch tube is connected to the third end of the first drive unit, and the third end of the third switch tube is connected to the second end of the first dead zone compensation circuit; the second end of the second switch tube is connected to the first end of the second drive unit, the second end of the second drive unit is connected to the first end of the second dead zone compensation circuit, and the third end of the second switch tube is respectively connected to the first end of the fourth switch tube and the load; the second end of the fourth switch tube is connected to the third end of the second drive unit, and the third end of the fourth switch tube is connected to the second end of the second dead zone compensation circuit.
[0020] In a third aspect, an embodiment of the present application provides a dead zone compensation method, which is applicable to the dead zone compensation circuit as described in the first aspect, and the method includes:
[0021] The zero-crossing detection unit detects a zero-crossing signal and sends the zero-crossing signal to the signal detection unit; the signal detection unit receives the zero-crossing signal, determines a signal to be compensated according to the zero-crossing signal, and sends the signal to be compensated to the signal compensation unit;
[0022] The signal compensation unit receives the signal to be compensated, and adjusts the dead time according to the signal to be compensated.
[0023] In a fourth aspect, an embodiment of the present application provides a driving method, which is applicable to the driving circuit as described in the second aspect, and the method includes: the dead zone compensation circuit adjusts the dead zone time output by the full-bridge circuit through the dead zone compensation method as described in the third aspect; the full-bridge circuit adjusts the output current according to the adjusted dead zone time to control the driven device.
[0024] In a fifth aspect, an embodiment of the present application provides a dead zone compensation circuit as described in the above embodiment or a driving circuit as described in the above embodiment, wherein the dead zone compensation circuit is used to execute the dead zone compensation method as described in the above embodiment or the driving circuit is used to execute the driving method as described in the above embodiment.
[0025] In the embodiment of the present application, the dead zone compensation circuit uses a zero-crossing detection unit to detect the zero-crossing signal on the driving circuit, sends the zero-crossing signal to the signal detection unit to judge the zero-crossing signal, determines the level of the signal to be compensated, and sends the signal to be compensated to the signal compensation unit, and then the signal compensation unit adjusts the dead zone time of the signal to be compensated, thereby completing the dead zone compensation. By compensating the circuit dead zone, the output current of the driving circuit is made smoother, and compression and distortion of the output current of the driving circuit are prevented.
[0026] In an embodiment of the present application, the driving circuit controls the current output of the full-bridge circuit by using a dead zone compensation circuit, so that the current output by the full-bridge circuit is smooth, which is conducive to accurately controlling the load action and further improving the working performance of the driven device. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 A schematic diagram of an application scenario of a dead zone compensation circuit provided in an embodiment of the present application.
[0029] Figure 2This is a structural block diagram of a dead zone compensation circuit provided in an embodiment of the present application.
[0030] Figure 3 A schematic diagram of the circuit structure of a signal detection unit provided in an embodiment of the present application.
[0031] Figure 4 This is a structural block diagram of a signal compensation unit provided in an embodiment of the present application.
[0032] Figure 5 A schematic circuit diagram of the structure of a signal compensation unit provided in an embodiment of the present application.
[0033] Figure 6 This is a structural block diagram of a driving circuit provided in an embodiment of the present application.
[0034] Figure 7 A schematic circuit diagram of the structure of a driving circuit provided in an embodiment of the present application.
[0035] Figure 8 A schematic diagram of current variation when dead zone compensation is not added according to an embodiment of the present application.
[0036] Fig. 9 A schematic diagram of current changes when dead zone compensation is added according to an embodiment of the present application.
[0037] Fig.10 A flowchart of a dead zone compensation method provided in an embodiment of the present application.
[0038] Fig.11 A flowchart of a driving method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0040] It should be noted that the existing full-bridge circuits are mostly composed of two half-bridge circuits (upper half-bridge and lower half-bridge). When driving a device, a dead zone is generated due to the alternating conduction of the upper and lower half-bridges. The existence of the dead zone will cause current compression and distortion, thereby affecting the working performance of the driven device.
[0041] In order to solve the above problems, the embodiment of the present application provides a dead zone compensation circuit, which is used to compensate the input signal of the driven device. The compensation circuit is suitable for driving motors and class D amplifiers (hereinafter referred to as loads). In the embodiment of the present application, a stepper motor will be used as an example for explanation. By optimizing the driving circuit of the stepper motor, the output of the stepper motor is made smoother, and the accuracy of the motor control is higher.
[0042] like Figure 1 As shown, it is a schematic diagram of an application scenario of the dead zone compensation circuit provided in an embodiment of the present application. In this scenario, the controller 1, the drive unit 2 and the load 3 are connected in sequence, the controller 1 sends a drive instruction to the drive unit 2, the drive unit 2 receives the drive instruction, and drives the load 3 to perform corresponding actions, such as operation.
[0043] Among them, a full-bridge circuit 21 and a dead zone compensation circuit 22 are arranged in the driving unit 2, and the full-bridge circuit 21 is connected to the dead zone compensation circuit 22; in this scenario, the controller 1 sends a driving instruction to the driving unit 2, the driving unit 2 receives the driving instruction, the full-bridge circuit 21 and the dead zone compensation circuit 22 enter the working state, the dead zone compensation circuit 22 detects the zero-crossing signal in the full-bridge circuit 21, and compensates the dead zone in the full-bridge circuit 21 according to the level of the zero-crossing signal. Specifically, when the zero-crossing signal is positive, the full-bridge circuit 21 is connected to the dead zone compensation circuit 22. The dead time of the circuit 21 is added with a preset dead zone compensation time to increase the dead time of the full-bridge circuit 21, thereby realizing compensation for the dead zone in the full-bridge circuit 21; when the zero-crossing signal is reverse, the dead time of the full-bridge circuit 21 is subtracted by a preset dead zone compensation time to reduce the dead time of the full-bridge circuit 21, thereby realizing compensation for the dead zone in the full-bridge circuit 21, so as to improve the compression and distortion of the output current in the full-bridge circuit 21, further make the load action smooth and accurate, and reduce the loss of output voltage.
[0044] For details, please refer to Figure 2 , Figure 2 The dead zone compensation circuit 22 is a block diagram of the structure of the dead zone compensation circuit provided in the embodiment of the present application. The dead zone compensation circuit 22 includes: a zero-crossing detection unit 221, a signal detection unit 222 and a signal compensation unit 223, wherein the zero-crossing detection unit 221 is used to detect the zero-crossing signal and send the zero-crossing signal to the signal detection unit 222; the signal detection unit 222 is connected to the zero-crossing detection unit 221, and is used to receive the zero-crossing signal, determine the signal to be compensated according to the zero-crossing signal, and send the signal to be compensated to the signal compensation unit 223; the signal compensation unit 223 is connected to the signal detection unit 222, and is used to receive the signal to be compensated, and adjust the dead zone time according to the signal to be compensated.
[0045] In this embodiment, the zero-crossing detection unit 221 is used to detect the zero-crossing signal in the full-bridge circuit 21, and the zero-crossing signal is sent to the signal detection unit 222. The signal detection unit 222 judges the zero-crossing signal and determines the flow direction of the zero-crossing current (such as forward or reverse), that is, determines the signal to be compensated, and sends the signal to be compensated to the signal compensation unit 223. Then, the signal compensation unit 223 adjusts the dead time of the signal to be compensated, thereby completing the dead zone compensation of the full-bridge circuit 21. By compensating the dead zone of the full-bridge circuit 21, adjusting the output current of the full-bridge circuit 21, and improving the compression and distortion in the output current, the current output by the drive circuit is smoother, and the accuracy of the drive circuit to control the load is further improved.
[0046] In one embodiment, the zero-crossing detection unit 221 can be a zero-crossing detection resistor, a first end of the zero-crossing detection resistor is connected to the signal detection unit 222, a second end of the zero-crossing detection resistor is grounded, and the zero-crossing detection resistor is used to detect the zero-crossing signal. By setting the zero-crossing detection unit 221 to detect the zero-crossing moment of the drive circuit, it is helpful to quickly identify the signal flow direction of the current zero-crossing point, so that the full-bridge circuit in the drive circuit can be quickly compensated for the dead zone.
[0047] In one embodiment, if Figure 3 , which is a schematic diagram of the circuit structure of the signal detection unit provided in an embodiment of the present application, wherein the signal detection unit 222 may be a comparator COMP, a first end of the comparator COMP is connected to a first end of the zero-crossing detection unit 2221, a second end of the comparator COMP is connected to the signal compensation unit 223, and a reference signal Vref is input to the third end of the comparator 222. Optionally, the reference signal Vref is a reference voltage, which may be provided by a system or a controller.
[0048] The signal detection unit 222 can obtain the zero-crossing signal and the reference signal by setting the comparator COMP, and determine the flow direction of the current zero-crossing signal by comparing the zero-crossing signal with the reference signal, and then send the zero-crossing signal with a clear signal flow direction as a signal to be compensated to the signal compensation unit 223. By setting the signal detection unit 222, the flow direction of the zero-crossing signal can be judged, thereby determining the dead time that needs to be compensated later, and realizing rapid compensation of the dead zone of the drive unit.
[0049] Optionally, in this embodiment, the signal detection unit 222 may also be a transistor, an optical coupler, an analog / digital converter, a detection chip, etc.
[0050] In one embodiment, if Figure 4As shown, it is a structural block diagram of the signal compensation unit provided in an embodiment of the present application. The signal compensation unit 223 may include a compensation subunit 223a and an adjustment subunit 223b, wherein the compensation subunit 223a is used to send a preset dead zone compensation signal to the adjustment subunit 223b; the adjustment subunit 223b is connected to the compensation subunit 223a, and is used to receive the signal to be compensated and the preset dead zone compensation signal, and adjust the dead zone time according to the signal to be compensated and the preset dead zone compensation signal. Optionally, the preset dead zone compensation signal can be a preset clock pulse signal, and the clock pulse signal to be compensated is determined by using the signal to be compensated, and then the corresponding clock pulse signal is output, and the dead zone time of the full-bridge circuit is compensated by the clock pulse signal to reduce the distortion and compression of the output current.
[0051] Specifically, Figure 5 As shown, it is a schematic diagram of the circuit structure of the signal compensation unit provided in an embodiment of the present application. Among them, the compensation subunit 223a may include a delay device td, a first logic device M1, a second logic device M2 and a memory, wherein the preset dead zone compensation signal may be provided by a memory or a clock module / chip, and the extracted preset dead zone compensation signal is sent to the adjustment subunit 223b through the delay device td, the first logic device M1 and the second logic device M2. Among them, the delay device td, the first logic device M1 and the second logic device M2 are set to generate a compensation time according to the preset dead zone compensation signal, so as to improve the compression and distortion in the output current of the driving circuit.
[0052] Specifically, the first end of the delay device td can be a device for receiving a preset dead zone compensation signal sent by a memory or a preset dead zone compensation signal sent by other control devices, and the second end of the delay device td is respectively connected to the first end of the first logic device M1 and the first end of the second logic device M2, the second end of the first logic device M1 is connected to the first end of the selector MUX, the second end of the second logic device M2 is connected to the second end of the selector MUX, the third end of the selector MUX inputs the signal to be compensated det, and the fourth end of the selector outputs the adjusted preset dead zone compensation signal.
[0053] In this embodiment, the selector in the adjustment subunit 223b is used to obtain the signal to be compensated det sent by the signal detection unit. Since the signal to be compensated det at this time is a signal with a known level, the selector MUX only needs to output the dead zone compensation time for the electrical signal that meets the conditions. For example: when the signal to be compensated det is at a low level, the selector MUX selects a time pulse signal for reducing the preset dead zone compensation time from the memory, and sends the signal to the load to complete the compensation of the driving circuit.
[0054] In another embodiment, the signal compensation unit may include a memory and a selector, the memory is connected to the selector, the memory stores a plurality of preset dead zone compensation signals, the selector selects a target preset dead zone compensation signal from the plurality of preset dead zone compensation signals according to the signal to be compensated, and uses the target preset dead zone compensation signal to adjust the dead zone time of the signal to be compensated, thereby reducing the distortion of the output current of the driving circuit to ensure normal driving of the load. Optionally, the selector may be a multi-way selector.
[0055] The present application also provides a driving circuit, which can be used to drive a load such as a motor or a class D amplifier. In the following description of the implementation, the driving of a stepper motor will be used as an example for explanation. For details, please refer to Figures 6 to 9 , Figure 6 It is a structural block diagram of a driving circuit. Figure 7 Schematic diagram of a circuit structure of a driving circuit. Figure 8 This is a schematic diagram of current variation when dead zone compensation is not added according to an embodiment of the present application. Fig. 9 A schematic diagram of current changes when dead zone compensation is added according to an embodiment of the present application. Figure 8 It can be seen that in the full-bridge circuit, when there is no dead zone compensation circuit, the current will be distorted and compressed when it passes through zero; after adding the dead zone compensation circuit, the current distortion and compression are significantly improved when the current passes through zero, and the voltage corresponding to the zero-crossing moment is smoother than the voltage change when there is no dead zone compensation circuit. Figure 8 and Fig. 9 The horizontal axis represents time, the vertical axis represents voltage, and the waveform curve represents current change.
[0056] A driving circuit in an embodiment of the present application, such as Figure 6 As shown, the driving circuit includes a full-bridge circuit 21 and a dead zone compensation circuit 22, and the full-bridge circuit 21 is connected to the dead zone compensation circuit 22; the dead zone compensation circuit 22 is used to adjust the dead zone time output by the full-bridge circuit 21; the full-bridge circuit 21 is used to adjust the output current according to the adjusted dead zone time to control the driven device.
[0057] It should be noted that, since the full-bridge circuit 21 includes an upper half bridge and a lower half bridge, and the upper and lower half bridges perform alternating actions, and the alternating actions of the upper and lower half bridges result in the generation of dead zones, in this embodiment, in order to ensure that the driven device can run smoothly, two dead zone compensation circuits 22 are required to alternately compensate the driving circuit, that is, when the upper half bridge is working, the dead zone compensation circuit corresponding to the upper half bridge is working, and when the lower half bridge is working, the dead zone compensation circuit corresponding to the lower half bridge is working.
[0058] Specifically, Figure 7As shown, the driving circuit includes a full-bridge circuit 21 and a dead zone compensation circuit, wherein the dead zone compensation circuit further includes a first dead zone compensation circuit 22 and a second dead zone compensation circuit 23 .
[0059] Specifically, the full-bridge circuit 21 includes a first driving unit 211, a second driving unit 212, a first switch tube D1, a second switch tube D2, a third switch tube D3 and a fourth switch tube D4; the first end of the first switch tube D1 and the first end of the second switch tube D2 are both connected to the power supply end, the second end of the first switch tube D1 is connected to the first end of the first driving unit 211, the second end of the first driving unit 211 is connected to the first end of the first dead zone compensation circuit 22, the third end of the first switch tube D1 is respectively connected to the first end of the third switch tube D3 and the driven device (load 3); the second end of the third switch tube D3 is connected to the first end of the third switch tube D3. The first end of the second switch tube D2 is connected to the third end of the first driving unit 211, and the third end of the third switch tube D3 is connected to the second end of the first dead zone compensation circuit 211; the second end of the second switch tube D2 is connected to the first end of the second driving unit 212, and the second end of the second driving unit 212 is connected to the first end of the second dead zone compensation circuit 23, and the third end of the second switch tube D2 is respectively connected to the first end of the fourth switch tube D4 and the driven device (load 3); the second end of the fourth switch tube D4 is connected to the third end of the second driving unit 212, and the third end of the fourth switch tube D4 is connected to the second end of the second dead zone compensation circuit 23.
[0060] In this embodiment, the first end of the first dead zone compensation circuit 22 and the first end of the second dead zone compensation circuit 23 are output ends of the preset dead zone compensation signal, and the second end of the first dead zone compensation circuit 22 and the second end of the second dead zone compensation circuit 23 are input ends of the signal to be compensated.
[0061] The first dead zone compensation circuit 22 includes a first zero-crossing detection unit 221, a first signal detection unit 222 and a first signal compensation unit 223, wherein the first zero-crossing detection unit 221 is connected to the second end of the third open tube D3 and the first signal detection unit 221 respectively; the first signal detection unit 221 is also connected to the first signal compensation unit 222.
[0062] The second dead zone compensation circuit 23 includes a second zero-crossing detection unit 231, a second signal detection unit 232 and a second signal compensation unit 233, wherein the second zero-crossing detection unit 231 is connected to the second end of the fourth open tube _D4 and the second signal detection unit 232 respectively; the second signal detection unit 232 is also connected to the second signal compensation unit 233.
[0063] It should be noted that, in the driving circuit, the first dead zone compensation circuit 22 and the second dead zone compensation circuit 23 may be symmetrical circuits.
[0064] Specifically, the first dead zone compensation circuit 22 includes a first zero-crossing detection resistor R2, a first comparator COMP1, a first delay device tb1, a first logic device M1, a second logic device M2 and a first selector MUX1, wherein the first end of the first zero-crossing detection resistor R2 is respectively connected to the second end of the third switch tube D3 and the first end of the first comparator COMP1, the second end of the first zero-crossing detection resistor R2 is grounded, the second end of the first comparator COMP1 is connected to the third end of the first selector MUX1, the third end of the first selector MUX1 is used to receive the first to-be-compensated signal output by the first comparator COMP1, and the third end of the first comparator COMP1 is used to receive the first to-be-compensated signal output by the first comparator COMP1. The reference signal Vref is input to the first end, the first preset dead zone compensation signal T1 is input to the first end of the first delay device tb1, the second end of the first delay device tb1 is respectively connected to the first end of the first logic device M1 and the first end of the second logic device M2, the second end of the first logic device M1 is connected to the first end of the selector MUX1, the second end of the second logic device M2 is connected to the second end of the first selector MUX1, and the fourth end of the first selector MUX1 is connected to the full-bridge circuit, which is used to provide an adjusted first preset dead zone compensation signal to the driven load 3, wherein the first preset dead zone compensation signal T1 can be obtained from the memory of the first compensation sub-unit 223a.
[0065] The second dead zone compensation circuit 23 includes a second zero-crossing detection resistor R1 , a second comparator COMP2 , a second delayer tb2 , a third logic unit M3 , a fourth logic unit M4 and a second selector MUX2 . Among them, the first end of the second zero-crossing detection resistor R1 is respectively connected to the second end of the fourth switch tube D4 and the first end of the second comparator COMP2, the second end of the second zero-crossing detection resistor R1 is grounded, the second end of the second comparator COMP2 is connected to the third end of the second selector MUX2, the third end of the second selector MUX2 is used to receive the second to-be-compensated signal output by the second comparator COMP2, the third end of the second comparator MUX2 inputs the reference signal Vref, the first end of the second delay tb2 inputs the second preset dead zone compensation signal T2, the second end of the second delay tb2 is respectively connected to the first end of the third logic M3, the first end of the fourth logic M4 is connected, the second end of the third logic M3 is connected to the first end of the second selector MUX2, the second end of the third logic M3 is connected to the second end of the second selector MUX2, and the fourth end of the second selector MUX2 is connected to the full-bridge circuit, which is used to provide the adjusted second preset dead zone compensation signal to the driven load, wherein the second preset dead zone compensation signal T2 can be obtained from the memory of the second compensation subunit 233a.
[0066] Optionally, in this embodiment, the logic device can be any one of an AND gate, an OR gate, and a NOT gate. In order to obtain an ideal compensation time, in this embodiment, the delay device and the logic device are coordinated to ensure that the output compensation time is within an ideal range. For example, the first logic device M1 and the third logic device M3 can be AND gates, and the second logic device M2 and the fourth logic device M4 can be OR gates.
[0067] In this embodiment, the current direction of each half bridge in the full-bridge circuit 21 is determined by the first zero-crossing detection resistor R2, the second zero-crossing detection resistor R1, the first comparator COMP1, and the second comparator COMP2. That is, in this embodiment, the stepper motor is combined with the internal control logic to predict the conversion of the current from positive to negative, or from negative to positive, and the first delay tb1, the first logic M1, the second logic M2, the first selector MUX1, the second delay tb2, the third logic M3, the fourth logic M4 and the second selector MUX2 are set to send the corresponding first preset dead zone compensation signal or the second preset compensation time to the half-bridge driving stage, that is , lengthen or shorten the pulse width of the input control signal in the half-bridge circuit by a dead time. For example, when the first comparator determines that the logic of the signal to be compensated is high, the upper half-bridge circuit is a positive current and the lower half-bridge circuit is a negative current). Then, it is necessary to obtain a compensation time signal for lengthening from the first preset dead zone compensation signal and send it to the driving stage of the upper half bridge, and it is necessary to obtain a compensation time signal for reducing from the second preset dead zone compensation signal and send it to the driving stage of the lower half bridge, thereby completing the compensation for the dead zone. By using this circuit, the trajectory of the stepper motor can be smoother, the position can be more precise, and the mechanical vibration can be smaller during low-speed operation.
[0068] The present application embodiment provides a dead zone compensation method, such as Fig.10 As shown, the dead zone compensation method may include the following steps:
[0069] S11, the zero-crossing detection unit detects a zero-crossing signal and sends the zero-crossing signal to the signal detection unit.
[0070] In this step, the zero-crossing detection unit may be a zero-crossing detection resistor, which is used to detect a zero-crossing signal in the full-bridge circuit.
[0071] S12, the signal detection unit receives the zero-crossing signal, determines the signal to be compensated according to the zero-crossing signal, and sends the signal to be compensated to the signal compensation unit.
[0072] In this step, the signal detection unit may be a comparator, which is used to obtain a zero-crossing signal, compare the zero-crossing signal with a reference signal, and output a signal to be compensated, wherein the reference signal is provided by a controller or by a preset reference signal source.
[0073] S13, the signal compensation unit receives the signal to be compensated, and adjusts the dead time according to the signal to be compensated.
[0074] In this step, the signal compensation unit can obtain the preset dead zone compensation signal from the preset memory and obtain the signal to be compensated from the signal detection unit. The signal compensation unit selects to increase or decrease the preset dead zone compensation time pulse according to the signal to be compensated, thereby completing the compensation of the dead zone in the driving circuit. It should be noted that the size of the preset dead zone compensation time increased by increasing the preset dead zone compensation signal according to the signal to be compensated or decreasing the preset dead zone compensation signal for the signal to be compensated can be different from the size of the preset dead zone compensation time decreased.
[0075] In the embodiment of the present application, by setting a preset dead zone compensation signal, the trajectory of the driven device can be made smoother, the position more precise, and the mechanical vibration smaller.
[0076] The present application embodiment provides a driving method, such as Fig.11 As shown, the driving method may include the following steps:
[0077] S21, the dead zone compensation circuit adjusts the dead zone time of the full-bridge circuit output by the dead zone compensation method provided in steps S11 to S13;
[0078] S22, the full-bridge circuit adjusts the output current according to the adjusted dead time to control the driven device.
[0079] In this embodiment, by performing dead zone compensation, improving the working circuit of the driving circuit, and reducing or increasing the dead zone time of the half bridge, the trajectory of the driven device can be smoother, the position can be more precise, and the mechanical vibration can be smaller.
[0080] A chip in an embodiment of the present application encapsulates a dead zone compensation circuit or a driving circuit provided by the above-mentioned embodiment, and the corresponding circuit integrated in the chip is also used to execute a corresponding dead zone compensation method or a driving method.
[0081] It should be noted that a person of ordinary skill in the art can realize that in the several embodiments provided in the present application, the disclosed circuits and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, 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.
[0082] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0083] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0084] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. 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.
[0085] Although the above embodiments describe the embodiments of the present invention in conjunction with the drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A dead zone compensation circuit, characterized in that: include: A zero-crossing detection unit, used for detecting a zero-crossing signal and sending the zero-crossing signal to a signal detection unit; a signal detection unit, connected to the zero-crossing detection unit, configured to receive the zero-crossing signal, determine a signal to be compensated according to the zero-crossing signal, and send the signal to be compensated to the signal compensation unit; a signal compensation unit, connected to the signal detection unit, and configured to receive the signal to be compensated and adjust the dead time according to the signal to be compensated; The signal detection unit comprises: a comparator, a first end of the comparator is connected to a first end of the zero-crossing detection unit, a second end of the comparator is connected to the signal compensation unit, and a third end of the comparator inputs a reference signal; The signal compensation unit includes: a compensation subunit, configured to send a preset dead zone compensation signal to an adjustment subunit; an adjustment subunit, connected to the compensation subunit, configured to receive the signal to be compensated and the preset dead zone compensation signal, and adjust the dead zone time according to the signal to be compensated and the preset dead zone compensation signal; The compensation subunit includes: a delay device, a first logic device and a second logic device; the adjustment subunit includes: a selector; the first end of the delay device receives the preset dead zone compensation signal, the second end of the delay device is respectively connected to the first end of the first logic device and the first end of the second logic device, the second end of the first logic device is connected to the first end of the selector, the second end of the second logic device is connected to the second end of the selector, the third end of the selector inputs the signal to be compensated, and the fourth end of the selector outputs the adjusted preset dead zone compensation signal.
2. The dead zone compensation circuit according to claim 1, characterized in that: The zero-crossing detection unit comprises: A zero-crossing detection resistor, wherein a first end of the zero-crossing detection resistor is connected to the signal detection unit, a second end of the zero-crossing detection resistor is grounded, and the zero-crossing detection resistor is used to detect the zero-crossing signal.
3. A driving circuit, characterized in that: The invention comprises a full-bridge circuit and a dead zone compensation circuit as claimed in any one of claims 1 to 2, wherein: The dead time compensation circuit is connected to the full bridge circuit and is used to adjust the dead time output by the full bridge circuit; The full-bridge circuit is used to adjust the output current according to the adjusted dead time to control the driven device.
4. The driving circuit according to claim 3, characterized in that: The dead zone compensation circuit includes a first dead zone compensation circuit and a second dead zone compensation circuit; the full bridge circuit includes a first driving unit, a second driving unit, a first switch tube, a second switch tube, a third switch tube and a fourth switch tube; the first end of the first switch tube and the first end of the second switch tube are both connected to the power supply end, the second end of the first switch tube is connected to the first end of the first driving unit, the second end of the first driving unit is connected to the first end of the first dead zone compensation circuit, and the third end of the first switch tube is respectively connected to the first end of the third switch tube and the driven device; the second end of the third switch tube is connected to the third end of the first driving unit, and the third end of the third switch tube is connected to the second end of the first dead zone compensation circuit; the second end of the second switch tube is connected to the first end of the second driving unit, the second end of the second driving unit is connected to the first end of the second dead zone compensation circuit, and the third end of the second switch tube is respectively connected to the first end of the fourth switch tube and the driven device; the second end of the fourth switch tube is connected to the third end of the second driving unit, and the third end of the fourth switch tube is connected to the second end of the second dead zone compensation circuit.
5. A dead zone compensation method, characterized in that: Applicable to the dead zone compensation circuit as claimed in any one of claims 1 to 2, the method comprising: The zero-crossing detection unit detects a zero-crossing signal and sends the zero-crossing signal to the signal detection unit; The signal detection unit receives the zero-crossing signal, determines a signal to be compensated according to the zero-crossing signal, and sends the signal to be compensated to the signal compensation unit; The signal compensation unit receives the signal to be compensated, and adjusts the dead time according to the signal to be compensated.
6. A driving method, characterized in that: The method is applicable to the driving circuit as claimed in any one of claims 3 to 4, and the method comprises: The dead zone compensation circuit adjusts the dead zone time of the full bridge circuit output by the dead zone compensation method described in claim 5; The full-bridge circuit adjusts the output current according to the adjusted dead time to control the driven device.
7. A chip, characterized in that: It comprises the dead zone compensation circuit as described in any one of claims 1-2 or the driving circuit as described in any one of claims 3-4, wherein the dead zone compensation circuit is used to execute the dead zone compensation method as described in claim 5 or the driving circuit is used to execute the driving method as described in claim 6.
