A motor sine wave drive circuit

By using sinusoidal modulation and periodic reset circuits in the motor sine wave driving circuit, combined with duty cycle calculation, a PWM driver tends to be sinusoidal according to the sinusoidal comparison table, solving the problem of motor drive instability and noise, achieving higher Accurate motor control.

CN118523757BActive Publication Date: 2024-12-06禹创半导体(深圳)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410991057.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-12-06
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

The existing motor PWM modulation method is difficult to accurately match the change pattern of the back electromotive force, resulting in unstable motor driving, especially in the case of large load changes, which cannot meet the performance requirements of high-precision control.

Method used

A motor sine wave driving circuit is designed, and the driving period is divided into 32 slope periods through a sine modulation circuit. Combined with the period reset circuit and duty cycle calculation circuit, the length of each slope period is calculated based on the preset sine comparison table. , generate PWM drives that tend to be sinusoidal wave type to effectively compensate for the back electromotive force.

Benefits of technology

It realizes that the motor drive is more stable and low noise, adapts to different motor characteristics and working conditions, and meets the needs of high-precision control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118523757B_ABST
    Figure CN118523757B_ABST
Patent Text Reader

Abstract

The present invention discloses a motor sinusoidal wave drive circuit, wherein the drive cycle of the motor is 180 degrees, and comprises: a sinusoidal modulation circuit, a cycle reset circuit and a duty cycle calculation circuit; the sinusoidal modulation circuit is used to divide the drive cycle into 32 slope periods; in chronological order, the first 16 slope periods and the last 16 slope periods are respectively recorded as rising segments and falling segments; the length of each slope period is calculated according to a sinusoidal comparison table; the cycle reset circuit is used to count when the motor Hall passes through zero, and reset and re-count every 180 degrees; the sinusoidal modulation circuit is reset synchronously with the cycle reset circuit; the duty cycle calculation circuit is used to calculate the PWM output duty cycle of each slope period according to the length of each slope period. The present invention is based on PWM modulation, and according to the motor state, a PWM drive tending to a sine wave type is generated through a preset sinusoidal comparison table, which effectively compensates for the back electromotive force suppression effect of the motor, making the overall drive of the motor more stable and low-noise.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of motor equipment control, and in particular to a motor sine wave drive circuit. Background Art

[0002] Brushless DC motors usually use PWM (Pulse Width Modulation) to modulate the duty cycle of the drive current to achieve drive control. However, during the operation of the motor, back electromotive force is inevitably generated, which will have an adverse effect on the waveform of the drive current, causing waveform distortion. This distortion makes it difficult for the motor to output uniform torque, which often manifests as noise and abnormal sound during operation.

[0003] In order to solve this problem, the Chinese invention patent with application number 2024109658068 proposes a motor PWM modulation circuit. The circuit divides the 180-degree drive cycle into 32 slope periods and sets the slope ratio of the rising and falling sections respectively, so as to achieve asymmetric adjustment of the PWM duty cycle at different cycle stages. This method improves the stability of the motor drive and reduces noise to a certain extent. However, this PWM modulation method still has some limitations: although asymmetric modulation is achieved, its waveform is still far from the ideal sine wave, and it cannot accurately match the changing law of the back electromotive force. The setting of the modulation parameters is relatively rough, and it is difficult to make fine adjustments according to the characteristics of different types of motors. In the case of large changes in motor load, the fixed modulation parameters may not always maintain the best driving effect. For application scenarios requiring high-precision control, this method may not meet higher performance requirements. Therefore, there is still a need for a drive circuit that can more accurately simulate a sine waveform, more effectively compensate for the back electromotive force, and adapt to different motor characteristics and working conditions. Summary of the invention

[0004] The present invention provides a motor sine wave drive circuit, wherein the drive period of the motor is 180 degrees, and the motor sine wave drive circuit comprises: a sine modulation circuit, a period reset circuit and a duty cycle calculation circuit;

[0005] The sinusoidal modulation circuit is used to divide the driving period into 32 slope periods;

[0006] In chronological order, the first 16 slope periods and the last 16 slope periods were recorded as the ascending segment and the descending segment, respectively;

[0007] Calculate the length of each slope period according to the sine comparison table;

[0008] The periodic reset circuit is used to count when the motor Hall passes through zero, and reset and re-count every 180 degrees;

[0009] The sinusoidal modulation circuit is reset synchronously with the periodic reset circuit;

[0010] The duty cycle calculation circuit is used to calculate the PWM output duty cycle of each slope period according to the length of each slope period.

[0011] Optionally, in a first implementation of the first aspect of the present invention, the sinusoidal modulation circuit includes: a clock register, a first selection register, a division register, a second selection register and a reset register;

[0012] The clock register is used to automatically update the ramp period sequence number;

[0013] The first selection register is used to set the ratio of the rising segment to the falling segment;

[0014] The division register is used to divide the driving cycle into 32 equal parts;

[0015] The second selection register is used to select the first calculation formula and the second calculation formula in the rising section and the falling section respectively according to the current slope period number; the first calculation formula is the current slope period number plus one; the first calculation formula is 32 minus the current slope period number;

[0016] The reset register is used to reset the sinusoidal modulation circuit and the periodic reset circuit synchronously.

[0017] Optionally, in a second implementation of the first aspect of the present invention, the sinusoidal modulation circuit further includes: a first adder, a first multiplier, a second multiplier, a second selection register and a first subtractor;

[0018] The first adder is used to add one to the ramp period sequence number after each ramp period ends;

[0019] The first multiplier is used to calculate the slope period number plus one multiplied by the first output parameter;

[0020] The second selection register is used to select the first calculation formula and the second calculation formula in the rising section and the falling section respectively according to the current slope period number;

[0021] The first subtractor is used to perform a subtraction term of the second calculation formula;

[0022] The clock register is connected to an input terminal of the first multiplier via the first adder;

[0023] The first selection register is connected to the other input terminal of the first multiplier and the duty cycle calculation circuit respectively via the table lookup device;

[0024] An output terminal of the first multiplier is connected to an input terminal of the second multiplier;

[0025] The other input terminal of the second multiplier is connected to the period reset circuit;

[0026] The output terminal of the second multiplier is connected to the second selection register;

[0027] The second selection register is connected to the period reset circuit via the first subtractor;

[0028] The second selection register is connected to the first comparator;

[0029] The second selection register is also connected to the duty cycle calculation circuit.

[0030] Optionally, in a third implementation of the first aspect of the present invention, the periodic reset circuit includes: a pulse counter, a second comparator, and a second adder;

[0031] The pulse counter is used to count the 180-degree drive cycle and reset when the motor Hall passes through zero;

[0032] The second comparator is used to compare whether the current value of the reset register is equal to the current count of the pulse counter. If they are equal, the current slope period number is increased by one through the second adder. If they are not equal, the current slope period number is reset to zero.

[0033] The pulse counter and the reset register are both connected to the input end of the second comparator;

[0034] The output terminal of the second comparator is connected to the first selection register;

[0035] The second adder is connected to the first selection register.

[0036] Optionally, in a fourth implementation of the first aspect of the present invention, the duty cycle calculation circuit includes: a third multiplier, a maximum duty cycle register, and a modulation duty cycle register;

[0037] The maximum duty cycle register is used to output the maximum PWM output duty cycle;

[0038] The first selection register is connected to an input terminal of the third multiplier via the table lookup device;

[0039] The maximum duty cycle register is connected to another input terminal of the third multiplier;

[0040] An output terminal of the third multiplier is connected to the modulation duty cycle register.

[0041] Optionally, in a fifth implementation of the first aspect of the present invention, the sine lookup table specifically includes:

[0042] The calculated values ​​for the slope period numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 are 11, 21, 31, 42, 52, 63, 74, 86, 98, 111, 124, 139, 155, 174, 199, 256, 199, 174, 155, 139, 124, 111, 98, 86, 74, 63, 52, 42, 31, 21, 11, 0 respectively.

[0043] In the technical solution provided by the present invention, the beneficial effect is: a motor sinusoidal wave drive circuit provided by the present invention is based on PWM modulation, and according to the motor state, a PWM drive tending to a sinusoidal wave type is generated through a preset sinusoidal comparison table, which effectively compensates for the back electromotive force suppression effect of the motor, making the overall drive of the motor more stable and low-noise. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic diagram of a first embodiment of a sine wave drive circuit for a motor in an embodiment of the present invention;

[0045] Figure 2 Schematic diagram of a second embodiment of a sinusoidal wave drive circuit for a motor according to an embodiment of the present invention;

[0046] Figure 3 Schematic diagram of a third embodiment of a motor sinusoidal wave drive circuit according to an embodiment of the present invention;

[0047] Figure 4 Schematic diagram of an embodiment of a sinusoidal modulation circuit of a motor sinusoidal wave drive circuit in an embodiment of the present invention;

[0048] Figure 5 A schematic diagram of an embodiment of a periodic reset circuit of a motor sinusoidal wave drive circuit in an embodiment of the present invention.

[0049] Figure 6 The figure is a schematic diagram of an embodiment of a duty cycle calculation circuit of a motor sinusoidal wave drive circuit in an embodiment of the present invention.

[0050] In the figure, 101-clock register, 102-first selection register, 103-first comparator, 104-table lookup, 105-reset register;

[0051] 106 - a first adder, 107 - a first multiplier, 108 - a second multiplier, 109 - a second selection register, 110 - a first subtractor;

[0052] 111 - pulse counter, 112 - second comparator, 113 - second adder;

[0053] 114-third multiplier, 115-maximum duty cycle register, 116-modulation duty cycle register DETAILED DESCRIPTION

[0054] An embodiment of the present invention provides a sine wave drive circuit for a motor. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0055] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figures 1 to 4 , an embodiment of the motor sine wave driving circuit in the embodiment of the present invention, the driving cycle of the motor is 180 degrees, and the motor sine wave driving circuit includes: a sine modulation circuit, a cycle reset circuit and a duty cycle calculation circuit;

[0056] The sinusoidal modulation circuit is used to divide the driving period into 32 slope periods;

[0057] In chronological order, the first 16 slope periods and the last 16 slope periods were recorded as the ascending segment and the descending segment, respectively;

[0058] Calculate the length of each slope period according to the sine comparison table;

[0059] The periodic reset circuit is used to count when the motor Hall passes through zero, and reset and re-count every 180 degrees;

[0060] The sinusoidal modulation circuit is reset synchronously with the periodic reset circuit;

[0061] The duty cycle calculation circuit is used to calculate the PWM output duty cycle of each slope period according to the length of each slope period.

[0062] Specifically, the sinusoidal modulation circuit includes: a clock register, a first selection register, a division register, a second selection register and a reset register;

[0063] The clock register is used to automatically update the ramp period sequence number;

[0064] The first selection register is used to set the ratio of the rising segment to the falling segment;

[0065] The division register is used to divide the driving cycle into 32 equal parts;

[0066] The second selection register is used to select the first calculation formula and the second calculation formula in the rising section and the falling section respectively according to the current slope period number; the first calculation formula is the current slope period number plus one; the first calculation formula is 32 minus the current slope period number;

[0067] The reset register is used to reset the sinusoidal modulation circuit and the periodic reset circuit synchronously.

[0068] Specifically, the sinusoidal modulation circuit further includes: a first adder, a first multiplier, a second multiplier, a second selection register and a first subtractor;

[0069] The first adder is used to add one to the ramp period sequence number after each ramp period ends;

[0070] The first multiplier is used to calculate the slope period number plus one multiplied by the first output parameter;

[0071] The second selection register is used to select the first calculation formula and the second calculation formula in the rising section and the falling section respectively according to the current slope period number;

[0072] The first subtractor is used to perform a subtraction term of the second calculation formula;

[0073] The clock register is connected to an input terminal of the first multiplier via the first adder;

[0074] The first selection register is connected to the other input terminal of the first multiplier and the duty cycle calculation circuit respectively via the table lookup device;

[0075] An output terminal of the first multiplier is connected to an input terminal of the second multiplier;

[0076] The other input terminal of the second multiplier is connected to the period reset circuit;

[0077] The output terminal of the second multiplier is connected to the second selection register;

[0078] The second selection register is connected to the period reset circuit via the first subtractor;

[0079] The second selection register is connected to the first comparator;

[0080] The second selection register is also connected to the duty cycle calculation circuit.

[0081] Specifically, the periodic reset circuit includes: a pulse counter, a second comparator and a second adder;

[0082] The pulse counter is used to count the 180-degree drive cycle and reset when the motor Hall passes through zero;

[0083] The second comparator is used to compare whether the current value of the reset register is equal to the current count of the pulse counter. If they are equal, the current slope period number is increased by one through the second adder. If they are not equal, the current slope period number is reset to zero.

[0084] The pulse counter and the reset register are both connected to the input end of the second comparator;

[0085] The output terminal of the second comparator is connected to the first selection register;

[0086] The second adder is connected to the first selection register.

[0087] Specifically, the duty cycle calculation circuit includes: a third multiplier, a maximum duty cycle register and a modulation duty cycle register;

[0088] The maximum duty cycle register is used to output the maximum PWM output duty cycle;

[0089] The first selection register is connected to an input terminal of the third multiplier via the table lookup device;

[0090] The maximum duty cycle register is connected to another input terminal of the third multiplier;

[0091] An output terminal of the third multiplier is connected to the modulation duty cycle register.

[0092] Specifically, the sine comparison table specifically includes:

[0093] The calculated values ​​for the slope period numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 are 11, 21, 31, 42, 52, 63, 74, 86, 98, 111, 124, 139, 155, 174, 199, 256, 199, 174, 155, 139, 124, 111, 98, 86, 74, 63, 52, 42, 31, 21, 11, 0 respectively.

[0094] See also Figure 4 , Figure 4 Schematic diagram of an embodiment of a sinusoidal modulation circuit of a motor sinusoidal wave drive circuit in an embodiment of the present invention;

[0095] Specifically, SSW is a clock register 100 composed of a D-type flip-flop (DFF), which is used to input the current ramp period number, SSW[4:0], [4:0] means: the bit width of the SSW bus. [4:0] represents a 5-bit bus, 4 represents the most significant bit, and 0 represents the least significant bit. SSW[4:0] can obtain values ​​ranging from 0 (5 bits 0) to 31 (5 bits 1).

[0096] SSWCNT is the second selection register 109 composed of the DFF soft switch counter. It is a counter that is cleared every 180 degrees (according to the edge of the Hall sensor signal). When PCNT=UDTMG is satisfied, 1 is added. The value of this counter divides 180 degrees into 33 parts to show the current position of the IC. SSWCNT[5:0], [5:0] is the bit width of the SSWCNT bus, [5:0] represents a 6-bit bus, 5 represents the most significant bit, and 0 represents the least significant bit. SSWCNT[5:0] can obtain values ​​ranging from 0 (6-bit 0) to 32 (6-bit 100000).

[0097] SSWCNT<16 is a comparator (first comparator 103). If the value of SSWCNT is less than 16, it outputs 1 to the second selection register 109. If SSWCNT is 16 or more, it outputs 0 to the second selection register 109. When (SSWCNT<16) is true, it indicates that the current process is the slope period of the rising segment. When (SSWCNT<16) is false, it indicates that the current process is the slope period of the falling segment.

[0098] LUT is a lookup table 104 that stores a sine lookup table for outputting the values ​​corresponding to SSWCNT. These numbers represent the percentage of time when SSWCNT<16 from the first Hall edge. In the range SSWCNT>=16, it represents the time ratio based on the expected time of the next Hall edge.

[0099] PCNTLT is the locked value of the previous 180-degree cycle counter composed of DFF. This is the value obtained by counting 180 degrees with a 2MHz (500ns) pulse, generating a trapezoid with a period of 180 degrees to accommodate this count value; PCNTLT[17:0], [17:0] is the bit width of the PCNTLT bus, [17:0] represents an 18-bit bus, 17 represents the highest bit, and 0 represents the last bit. PCNTLT[17:0] can take values ​​ranging from 0 (18-bit 0) to 262,143 (18-bit 1).

[0100] ">>9" means shift right by 9 bits, and a 10-bit right shift is equivalent to dividing the input by the first selection register 512.

[0101] UDTMG is a reset register 105 composed of DFF, which is used to calculate when to increase SSWCNT from PCNTLT. UDTMG is a register that stores the result of this calculation. This value only contains the integer part of the result of the calculation; UDTMG[17:0], [17:0] is the bit width of the UDTMG bus, [17:0] represents an 18-bit bus, 17 represents the highest bit, and 0 represents the last bit. UDTMG[17:0] can take values ​​in the range of 0 (18-bit 0) to 262,143 (18-bit 1).

[0102] Next, we will take the case where the slope number is 15, that is, SSWCNT=15, as an example to explain the calculation process step by step:

[0103] from Figure 4 Starting from the upper left of the circuit,

[0104] The clock register 101 inputs the current slope period number (SSW), which is added by one by the first adder 106 (SSW+1);

[0105] from Figure 4 At the upper right of the circuit, the first selection register 102 selects SSWFSEL=15 and outputs 15; the table lookup 104 outputs the calculated value of the slope period 15 as 256 according to the sine lookup table; the first multiplier 107 calculates: (SSW+1)×256;

[0106] The second multiplier 108 operates: (SSW+1)×256×PCNTLT;

[0107] It can be understood as: PCNTLT is equivalent to the initial unit slope period length multiplied by the adjustment coefficient.

[0108] See also Figure 5 , Figure 5 Schematic diagram of an embodiment of a periodic reset circuit of a motor sinusoidal wave drive circuit in an embodiment of the present invention;

[0109] PCNT[17:0] is the bit width of the PCNT bus. [17:0] indicates an 18-bit bus, 17 indicates the most significant bit, and 0 indicates the last bit. PCNT[17:0] can take values ​​in the range of 0 (18-bit 0) to 262,143 (18-bit 1).

[0110] The second comparator 112 "==" is a comparator, which outputs a high pulse 1 when the two inputs are equal, and outputs a 0 when they are not equal.

[0111] The pulse counter 111 is a counter that increases the 2MHz (500ns) pulse. The counter consists of DFF and PCNT, which counts 180-degree electrical cycles. PCNTLT holds this count value at the edge signal of the 180-degree Hall cycle, and PCNT is cleared and reset at the edge of the Hall signal. Figure 5 In the process, the PCNT of the pulse counter 111 is compared with the UDTMG of the reset register 105 through the second comparator 112. If these values ​​are equal, the SSWCNT is increased by 1 through the second adder 113, and the next UDTMG calculation is started. The SSWCNT is also cleared and reset at the edge of the 180-degree Hall cycle signal.

[0112] See also Figure 6 , Figure 6 Schematic diagram of a duty cycle calculation circuit of a motor sinusoidal wave drive circuit in an embodiment of the present invention;

[0113] PWMDUTYMAX is the maximum duty cycle register 115. This register has the maximum PWM output duty cycle. The maximum duty cycle register 115 consists of DFF. For example, assuming the maximum power is 500, it means the output duty cycle is 100% of the clock register. If PWMDUTYMAX is 0, it means the output duty cycle is 0%. This percentage value is preset by the system through register settings or PWM inputs.

[0114] PWMDUTYMAX[8:0] is the bit width of the PWMDUTYMAX bus. [8:0] represents a 9-bit bus, 8 represents the highest bit, and 0 represents the lowest bit. PWMDUTYMAX[8:0] can range from 0 (9-bit 0) to 511 (9-bit 1).

[0115] The PWM DUTY of the modulation duty cycle register 116 is the final trapezoidal PWM output duty cycle, which is calculated by multiplying the PWMDUTYMAX (maximum duty cycle register 115) by the calculated value (lookup table 104) corresponding to each SSWCNT through the third multiplier 114.

[0116] PWM DUTY[8:0] is the bit width of the PWM DUTY bus. [8:0] indicates a 9-bit bus, 8 indicates the highest bit, and 0 indicates the last bit. PWMDUTY[8:0] can take values ​​in the range of 0 (9-bit 0) to 511 (9-bit 1).

[0117] ">>4" means right shift by 4 bits. That is, divide by 16;

[0118] The calculated value corresponds to the following sine comparison table:

[0119]

[0120] The time of each ramp period SSWCNT increase is calculated by multiplying the unit ramp up by the ratio obtained by the lookup table (LUT), and the duty cycle of the PWM output increases sinusoidally. In the case of (SSWCNT < 16), the ramp period length t (1, 16) is calculated as t (SSWCNT corresponding) = (SSW + 1) x LUT (SSWCNT) x PCNTLT / 512. The ramp period length when falling is calculated by subtracting it from the end of the cycle, expressed by the formula t (17, 32) = PCNTLT-(SSW + 1) × LUT "SSWCNT corresponding" × PCNTLT / 512. The second Hall edge varies according to the fluctuation of the load, so it may not always be at the expected time (180°).

[0121] In the embodiments of the present invention, the beneficial effects are as follows: a motor sinusoidal wave drive circuit is provided, which is based on PWM modulation and generates a PWM drive that tends to a sinusoidal wave type according to the motor state through a preset sinusoidal comparison table, effectively compensating for the back electromotive force suppression effect of the motor, making the overall drive of the motor more stable and low-noise.

[0122] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A motor sinusoidal wave drive circuit, wherein the drive period of the motor is 180 degrees, characterized in that: The motor sinusoidal wave drive circuit comprises: a sinusoidal modulation circuit, a cycle reset circuit and a duty cycle calculation circuit; The sinusoidal modulation circuit is used to divide the driving period into 32 slope periods; In chronological order, the first 16 slope periods and the last 16 slope periods were recorded as the ascending segment and the descending segment, respectively; Calculate the length of each slope period according to the sine comparison table; The periodic reset circuit is used to count when the motor Hall passes through zero, and reset and re-count every 180 degrees; The sinusoidal modulation circuit is reset synchronously with the periodic reset circuit; The duty cycle calculation circuit is used to calculate the PWM output duty cycle of each slope period according to the length of each slope period; The sine comparison table specifically includes: the calculated values ​​corresponding to the slope period numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 are 11, 21, 31, 42, 52, 63, 74, 86, 98, 111, 124, 139, 155, 174, 199, 256, 199, 174, 155, 139, 124, 111, 98, 86, 74, 63, 52, 42, 31, 21, 11, 0 respectively; The sinusoidal modulation circuit includes: a clock register, a first selection register, a first comparator, a table lookup device and a reset register; the clock register is used to automatically update the slope period sequence number; the table lookup device stores the sinusoidal comparison table, which is used to match the corresponding first output parameter according to the slope period sequence number; the first selection register is used to output the first output parameter according to the table lookup device; the first comparator is used to determine whether the current slope period is in the rising section or the falling section; the reset register is used to reset the sinusoidal modulation circuit synchronously with the period reset circuit; Wherein, the duty cycle calculation circuit includes: a third multiplier, a maximum duty cycle register and a modulation duty cycle register; the maximum duty cycle register is used to output the maximum PWM output duty cycle; the first selection register is connected to an input end of the third multiplier via the lookup table; the maximum duty cycle register is connected to another input end of the third multiplier; and the output end of the third multiplier is connected to the modulation duty cycle register.

2. The motor sinusoidal wave drive circuit according to claim 1, characterized in that: The sinusoidal modulation circuit further comprises: a first adder, a first multiplier, a second multiplier, a second selection register and a first subtractor; The first adder is used to add one to the ramp period sequence number after each ramp period ends; The first multiplier is used to calculate the slope period number plus one multiplied by the first output parameter; The second selection register is used to select the first calculation formula and the second calculation formula according to the current slope period number in the rising section and the falling section respectively, wherein the first calculation formula is selected when the current slope period number is in the rising section, and the second calculation formula is selected when the current slope period number is in the falling section, and the first calculation formula is the current slope period number plus one; the second calculation formula is 32 minus the current slope period number; The first subtractor is used to perform a subtraction term of the second calculation formula; The clock register is connected to an input terminal of the first multiplier via the first adder; The first selection register is connected to the other input terminal of the first multiplier and the duty cycle calculation circuit respectively via the table lookup device; An output terminal of the first multiplier is connected to an input terminal of the second multiplier; The other input terminal of the second multiplier is connected to the period reset circuit; The output terminal of the second multiplier is connected to the second selection register; The second selection register is connected to the period reset circuit via the first subtractor; The second selection register is connected to the first comparator; The second selection register is also connected to the duty cycle calculation circuit.

3. The motor sinusoidal wave drive circuit according to claim 2, characterized in that: The periodic reset circuit comprises: a pulse counter, a second comparator and a second adder; The pulse counter is used to count the 180-degree drive cycle and reset when the motor Hall passes through zero; The second comparator is used to compare whether the current value of the reset register is equal to the current count of the pulse counter. If they are equal, the current slope period number is increased by one through the second adder. If they are not equal, the current slope period number is reset to zero. The pulse counter and the reset register are both connected to the input end of the second comparator; The output terminal of the second comparator is connected to the first selection register; The second adder is connected to the first selection register, and is used to add 1 to the data stored in the first selection register.