A PWM generation circuit and a motor control chip

By introducing a pause period into the PWM generation circuit, the spread spectrum of the PWM period is achieved, and the problems of electromagnetic interference and motor control stability are solved, the electromagnetic radiation amplitude is reduced and the high-level duration is maintained.

CN117240263BActive Publication Date: 2024-11-05CHENGDU LIPPXIN MICROELECTRONIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311277562.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2024-11-05
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

In high-speed brushless motor control systems, the electromagnetic interference of the PWM signal seriously affects the surrounding electromagnetic environment, and traditional spread spectrum clock technology will affect the stability of motor control.

Method used

A PWM generation circuit is designed to realize the spread spectrum of the PWM cycle by introducing a pause period in the counting cycle, so that the spectrum is extended to a frequency band of a certain width, reducing the electromagnetic radiation amplitude, and maintaining the stability of the high-level duration.

Benefits of technology

It effectively reduces the electromagnetic radiation amplitude, reduces electromagnetic interference, and does not affect the stability of motor control, avoiding the impact of traditional spread spectrum clock technology on high-level duration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117240263B_ABST
    Figure CN117240263B_ABST
Patent Text Reader

Abstract

The present application provides a PWM generation circuit and a motor control chip, which relate to the field of pulse width modulation technology. The PWM generation circuit includes: a first storage module, a second storage module, a first counting module, a PWM generation module and a first control module; the first counting module counts according to the first counting cycle data, and outputs a counting completion signal after completing a full cycle of counting; the PWM generation module is used to flip the output signal when the count value of the first counting module is equal to the waveform count value; the first control module is used to output a trigger signal after receiving the counting completion signal and after a dynamic delay time, and the trigger signal is used to trigger the first counting module to start counting the next cycle. Through the PWM generation circuit of the present application, the electromagnetic radiation amplitude is reduced without affecting the pulse high level duration, thereby ensuring the stability of motor control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of pulse width modulation, and in particular to a PWM generation circuit and a motor control chip. Background Art

[0002] In a high-speed brushless motor control system, multiple sets of switch tubes are used to drive the motor to rotate, and pulse width modulation (PWM) technology is usually used to control the on and off of the switch tubes. When controlling the motor, the PWM cycle frequency is generally fixed, and the power spectrum peak of the PWM signal is mainly concentrated at multiples of the PWM switching frequency, forming a discrete spectrum with the switching frequency as the fundamental wave. These harmonic components will radiate outward through transmission lines and spatial electromagnetic fields, and cause problems of conducted and radiated interference. This interference not only seriously affects the surrounding electromagnetic environment, but also causes electromagnetic interference to nearby electrical equipment.

[0003] In order to solve the problem of electromagnetic interference, a spread spectrum clock generator is usually introduced to reduce electromagnetic interference. Spread spectrum is a technology that spreads the frequency of a signal when it is transmitted, so that the signal occupies a larger bandwidth on the broadband spectrum to improve the signal's anti-interference and confidentiality. The spread spectrum clock generator spreads the clock spectrum, similar to frequency modulation. The spread spectrum clock technology slightly jitters the system's clock frequency to expand the spectrum to a certain width of the frequency band. In fact, the spread spectrum clock does not reduce the total energy of each harmonic. It just evenly distributes the originally very concentrated energy to a certain width of the frequency band, making the power at a single frequency point smaller, thereby reducing the amplitude of electromagnetic radiation.

[0004] In the existing spread spectrum clock scheme, directly modulating the clock will make the duration of each clock cycle inconsistent. When performing pulse modulation, the high level of the output PWM will last for several clock cycles. The spread spectrum clock will cause the duration of the pulse high level to change with the spread spectrum clock, and the high level duration will be inconsistent. In the motor control scenario, the change in the high level duration will affect the control of the motor, thereby affecting the stability of the motor control.

[0005] The above problems have become issues that need to be solved urgently. Summary of the invention

[0006] The purpose of this application is to provide a PWM generation circuit and a motor control chip to address the deficiencies in the above-mentioned prior art, so as to solve the problems existing in the prior art.

[0007] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0008] In a first aspect, an embodiment of the present application provides a PWM generation circuit, comprising:

[0009] A first storage module, a second storage module, a first counting module, a PWM generating module and a first control module;

[0010] The first storage module stores first counting cycle data;

[0011] The first counting module counts according to the first counting cycle data and outputs a counting completion signal after completing a full cycle of counting;

[0012] The second storage module stores waveform count values;

[0013] The PWM generation module is used to flip the output signal when the count value of the first counting module is equal to the waveform count value;

[0014] The first control module is used to output a trigger signal after a dynamic delay time after receiving the counting completion signal, and the trigger signal is used to trigger the first counting module to start counting in the next cycle.

[0015] Optionally, the first control module includes:

[0016] A second counting module and a second counting information module;

[0017] The second counting information module is used to configure the second counting information of the current counting period of the second counting module;

[0018] The second counting module is used to generate a dynamic delay time according to the second counting information.

[0019] Optionally, the second counting module starts counting when receiving the counting completion signal, and outputs the trigger signal to the first counting module after counting is completed according to the second counting information.

[0020] Optionally, the second counting information module is configured to obtain the second counting information based on discrete data of a waveform or a combination of multiple waveforms among a sine wave, a cosine wave, a triangle wave, a sawtooth wave, a square wave, a damped oscillation wave, and a pulse wave; wherein the second counting information of the next counting cycle of the second counting module is the discrete point amplitude after the discrete point corresponding to the second counting information of the current counting cycle.

[0021] Optionally, the second counting information module includes: a third storage module, a second control module, and a fourth storage module;

[0022] The third storage module is used to store the second counting information of the current counting period of the second counting module;

[0023] The fourth storage module is used to store the second counting information threshold;

[0024] The second control module is electrically connected to the third storage module and the fourth storage module, and is used to obtain the second counting information of the current counting cycle of the second counting module, and output it to the third storage module;

[0025] Among them, the second control module increases the second counting information of the second counting module in the previous counting cycle by a preset amount to obtain the second counting information of the current counting cycle, and after the second counting information of the current counting cycle reaches the second counting information threshold, reduces the second counting information of the current counting cycle by a preset amount to obtain the second counting information of the next counting cycle.

[0026] Optionally, the second counting information module includes a fifth storage module and a second counting information acquisition module;

[0027] The fifth storage module is used to store the second counting information corresponding to all counting cycles of the second counting module;

[0028] The second counting information acquisition module is used to search for the second counting information of the current counting cycle of the second counting module according to the preset corresponding relationship between each counting cycle of the second counting module and the second counting information.

[0029] Optionally, the preset counting value of each counting cycle of the second counting module is random discrete data.

[0030] Optionally, the second storage module stores the first waveform count value and the second waveform count value;

[0031] The PWM generation module is used to flip the output signal when the count value of the first counting module is equal to the first waveform count value and the second waveform count value respectively.

[0032] Optionally, the second storage module stores the first waveform count value;

[0033] A PWM generation module, used for flipping the output signal when the count value of the first counting module is equal to the first waveform count value, and flipping the output signal when the first counting module starts counting;

[0034] or,

[0035] A PWM generation module, used for flipping the output signal when the count value of the first counting module is equal to the first waveform count value, and flipping the output signal when the first counting module finishes counting;

[0036] or,

[0037] The PWM generation module is used to flip the output signal when the count value of the first counting module is equal to the first waveform count value, and flip the output signal when the count value of the first counting module is equal to the first waveform count value again.

[0038] In a second aspect, an embodiment of the present application further provides a motor control chip, comprising a PWM generation circuit as described in the first aspect.

[0039] The beneficial effects of this application are:

[0040] Through the PWM generation circuit provided in the first aspect of the present application, a pause period is introduced in the first counting module, thereby introducing a certain jitter in the PWM period, and realizing spectrum spread in the counting period dimension, so that the frequency of the output PWM is no longer concentrated at a single point, and the spectrum is expanded to a frequency band of a certain width, thereby reducing the amplitude of electromagnetic radiation. In addition, the circuit proposed in the present application will not affect the duration of the high level, which is different from the traditional spread spectrum clock technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A schematic diagram of a PWM generation circuit provided in an embodiment of the present application;

[0043] Figure 2 A schematic diagram of a first control module provided in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of a second counting information module provided in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of waveforms of various modules of the PWM generation circuit provided in an embodiment of the present application;

[0046] Figure 5 A schematic diagram of a second counting information module provided in another embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0048] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0049] In the description of the present application, it should be noted that if the terms "upper", "lower", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the application is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.

[0050] In addition, the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0051] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.

[0052] The PWM generation circuit and the motor control chip provided in the present application are specifically described below through multiple examples in combination with the accompanying drawings.

[0053] Figure 1 Schematic diagram of a PWM generation circuit 100 provided in an embodiment of the present application; Figure 1 As shown, the PWM generation circuit 100 includes: a first storage module 10, a second storage module 20, a first counting module 30, a PWM generation module 50 and a first control module 40;

[0054] The first storage module 10 stores the first counting cycle data; the first storage module 10 is electrically connected to the first counting module 30 to provide the first counting cycle data to the first counting module 30;

[0055] The second storage module 20 stores waveform count values ​​(one or more) and is electrically connected to the PWM generation module 50 to provide the waveform count values ​​to the PWM generation module 50;

[0056] The first counting module 30 counts according to the first counting cycle data, and outputs a counting completion signal after completing a full cycle of counting (through the second output terminal; at this time, the count value of the first counting module 30 will be reset, and according to the counting rule, it will be reset to 0 or a non-zero positive integer); at the same time, during the counting process, the first counting module 30 also sends the count value to the PWM generation module 50 through the first output terminal;

[0057] The PWM generation module 50 is used to flip the output signal (output level) when the count value of the first counting module 30 is equal to the waveform count value;

[0058] The first control module 40 is electrically connected to the first counting module 30, and is used to output a trigger signal after receiving the aforementioned counting completion signal and after a dynamic delay time. That is, after receiving the counting completion signal, the first control module 40 starts timing, and when the timing reaches the dynamic delay time, the trigger signal is output.

[0059] The trigger signal is used to trigger the first counting module 30 to start counting in the next counting cycle.

[0060] The first counting cycle data stored in the first storage module 10 and the waveform counting value stored in the second storage module 20 can be preset.

[0061] The first counting module 30 updates the count value under the drive of the clock. The first counting module 30 updates the count value (increases or decreases) once each time it receives a clock signal. The first counting module 30 counts according to the first counting cycle data, and the first counting cycle data can represent the information of the counting cycle of the first counting module 30 (note that it is not necessarily equal to the counting cycle), that is, the counting time of a complete cycle of the first counting module 30. The following takes the first storage module 10 storing the first counting cycle data as T0 as an example to illustrate various working modes of the first counting module 30.

[0062] Mode 1:

[0063] The first counting module 30 starts to add 1 continuously from 0 until the count value is equal to T0, which is regarded as a complete counting cycle of the first counting module 30. It is considered that the first counting module 30 completes a complete counting cycle. At this time, T0 is equal to the counting cycle.

[0064] Mode 2:

[0065] The first counting module 30 starts to add 1 from 0 until the count value is equal to T0, and then starts to subtract 1 until the count value is equal to 0, as a complete counting cycle, and it is considered that the first counting module 30 completes a complete counting cycle. At this time, T0 is not equal to the counting cycle.

[0066] Mode 3:

[0067] T0 is set as the initial value, and the first counting module 30 starts to continuously subtract 1 until it is equal to 0, which is regarded as a counting cycle, and it is considered that the first counting module 30 completes a full cycle of counting. At this time, T0 is equal to the counting cycle.

[0068] The above are three counting modes of the first counting module 30 provided in the present application. Of course, the working mode of the first counting module 30 is not limited to this, and the present application does not limit this. However, it should be understood that according to the above description, the first storage module 40 stores the first counting cycle data, and the first counting module 30 counts according to its own counting rules (such as the above three modes), and the actual count of the first counting module 30 is related to the first counting cycle data T0 stored in the first storage module 40.

[0069] In the present application, the first counting module 30 is also electrically connected to the PWM generation module 50 to generate a PWM signal according to the count value, that is, to generate a high level of a certain width for use in different driving scenarios. The second storage module 20 stores the waveform count value related to the high level width (which can be 1 value, 2 values, or multiple values). The PWM generation method of the present application adopts a method of comparing the count value of the first counting module 30 with the waveform count value. When the count value of the first counting module 30 is equal to the waveform count value, the level signal output by the output end of the PWM generation module 50 will be flipped. By configuring the waveform count value, the PWM high level width can be flexibly adjusted. How to achieve it specifically will be described in detail in the following application, and will not be described in detail here.

[0070] After the first counting module 30 completes the counting (i.e., after completing the counting of a counting cycle according to the predetermined counting rule and the first counting cycle data stored in the first storage module 10, for example, counting to T0 according to mode 1), the counting will stop (the counting value will be reset thereafter) and output a counting completion signal to the first control module 40. After receiving the counting completion signal, the first control module 40 will trigger the first counting module 30 to start counting the next counting cycle after a preset dynamic delay time (several clock cycles), for example, counting from 0 to T0 again in mode 1. At this time, as the counting proceeds, the PWM generation module 50 will generate a high level of a certain width again (the PWM width can be changed by the waveform count value), and this cycle will be repeated. It should be noted here that the dynamic delay time refers to the delay time of each output trigger signal of the first control module 40 (which can be relative to the first control module 40 receiving the counting completion signal) is not fixed, but dynamic. At this time, the previous delay time and the next delay time may be the same or different.

[0071] Since the first counting module 30 starts to count again after a certain delay, it is equivalent to generating a pause counting time of several clock cycles (an integer, which can be 0 or more than 0). After the pause counting time, the first counting module 30 starts counting again, changing the original fixed PWM cycle. The first control module 40 inserts the pause counting time after each counting cycle of the first counting module 30 to achieve the spread spectrum of the output PWM, so that the PWM cycle jitters within a certain range, thereby achieving the effect of reducing electromagnetic interference. The PWM high level width, that is, the working time, is related to the waveform count value, and therefore, it will not be affected, and the stability of the motor or other controlled devices will not be affected.

[0072] Figure 2 A schematic diagram of a first control module 40 provided in some embodiments of the present application, the first control module 40 includes: a second counting module 41, a second counting information module 42;

[0073] A second counting module 41, used to generate a dynamic delay time according to second counting information (second counting information of a current counting cycle of the second counting module 41);

[0074] The second counting information module 42 is used to configure the second counting information of the current counting cycle of the second counting module 41 .

[0075] That is, the size of each dynamic delay time is determined by the second counting information configured by the second counting information module 42 and the counting rule of the second counting module 41; if the counting rule is determined, it is determined by the second counting information.

[0076] In some embodiments, the second counting module 41 starts counting when it receives a counting completion signal from the first counting module 30, and after the counting is completed according to the second counting information (indicating that a preset dynamic delay time has elapsed after receiving the counting completion signal sent by the first counting module 30), it outputs the aforementioned trigger signal to the first counting module 30.

[0077] After the first counting module 30 completes counting, it is necessary to wait for the dynamic delay time before starting to count again. The dynamic delay time is achieved by counting the second counting module 41 (more specifically, by changing the second counting information of each counting cycle). The second counting information module 42 configures the second counting information of the current counting cycle of the second counting module 41. The second counting information, such as the aforementioned first counting cycle data T0, represents the counting cycle of the corresponding counting module. When the second counting module 41 completes counting according to the second counting information, it is considered that the preset dynamic delay time has been reached, and the first counting module 30 is triggered to start the next round of counting.

[0078] It can be understood that the counting method of the second counting module 41 can be the same as the counting method of the first counting module 30, that is, the above three modes, or other counting methods. The second counting information of the present application is similar to the aforementioned first counting cycle data T0, and how the second counting module 41 counts is not elaborated here.

[0079] In some embodiments, the second counting information module 42 is configured to obtain the second counting information according to discrete data of a waveform or a combination of multiple waveforms among sine wave, cosine wave, triangle wave, sawtooth wave, square wave, damped oscillation wave, and pulse wave; wherein the second counting information of the next counting cycle of the second counting module 41 is the discrete point amplitude after the discrete point corresponding to the second counting information of the current counting cycle of the second counting module 41. Optionally, the discrete point amplitudes of the above various waveforms or their combinations are all integers.

[0080] At this time, if the above-mentioned mode 1 is adopted for counting, when the second counting module 41 counts to the second counting information T1, it is considered that the second counting module 41 has completed the counting of a counting cycle, and it is also determined that the delay reaches the preset time.

[0081] The following is an example of a sine wave. Each time the first control module 40 receives a count completion signal from the first counting module 30, the amplitude of a point (point A) on the discrete sine wave is selected as the second counting information (the counting information represents the size of the preset dynamic delay time), and a pause time signal lasting for several clock cycles is generated. When the count completion signal is received again (when the next count cycle of the first counting module 30 is completed), the amplitude of the next point (point B) on the discrete sine wave adjacent to point A is taken as the second counting information, and so on. The discrete sine wave is used to modulate the pause time of the first counting module 30.

[0082] In some implementations, taking a triangle wave as an example, Figure 3 The second counting information module 42 includes: a third storage module 421, a second control module 422, and a fourth storage module 423;

[0083] The third storage module 421 is used to store the second counting information T1 (hereinafter referred to as CNT_TH) of the current counting cycle of the second counting module 41;

[0084] The fourth storage module 423 is used to store the second counting information threshold (the maximum second counting information T1max or the minimum second counting information threshold T1min);

[0085] The second control module 422 is electrically connected to the third storage module 421 and the fourth storage module 423, and is used to obtain the second counting information of the current counting cycle of the second counting module 41, and output it to the third storage module 421;

[0086] Among them, the second control module 422 increases the second counting information of the previous counting cycle of the second counting module 41 by a preset amount to obtain the second counting information of the current counting cycle, and after the second counting information of the current counting cycle reaches the second counting information threshold, the second counting information of the current counting cycle is reduced by a preset amount to obtain the second counting information of the next counting cycle. That is, the second counting information T1 of the current counting cycle of the second counting module 41 can change. It should be noted that the above-mentioned preset amount of increase and the above-mentioned preset amount of reduction can be the same or different. It should also be noted that the second counting information of the next counting cycle mentioned above, for the next counting cycle, belongs to the "second counting information of the current counting cycle".

[0087] Optionally, the second control module 422 is a third counting module, which performs counting in mode 2 or other modes.

[0088] Specifically, the second counting information threshold may be the maximum second counting information T1max or the minimum second counting information threshold T1min. When it is the maximum second counting information T1max, the aforementioned preset amount of increase and the aforementioned preset amount of decrease are 0 or a positive integer, for example, 1 (positive triangle wave). When it is the minimum second counting information threshold T1min, the aforementioned preset amount of increase and the aforementioned preset amount of decrease are 0 or a negative integer, for example, -1 (inverted triangle wave). At this time, the counting mode of the second control module 422 is other modes, that is, first decreasing to T1min and then increasing, for example, decreasing from 5 to 0 and then increasing from 0 to 1 (with a step size of 1). Preferably, T1min is equal to 0.

[0089] Preferably, the second counting module 41 counts according to the second counting information of the current counting cycle in mode 1. Of course, in practice, the second counting module 41 can also count according to the second counting information of the current counting cycle in mode 1, mode 3 or other ways.

[0090] Figure 4 The waveform diagram of each module of the PWM generation circuit is illustrated (taking the second counting information threshold as the maximum second counting information T1max as an example). The first counting module 30 performs periodic counting in mode 2, and sets two waveform counting values, the first waveform counting value and the second waveform counting value. When the counting value of the first counting module 30 is equal to a certain waveform counting value, the output signal of the PWM generation module is flipped.

[0091] In addition, the second counting module 41 starts counting after the first counting module 30 completes one cycle counting (counting from 0 to T1, and then counting from T1 to 0).

[0092] When the first counting module 30 completes cycle counting for the first time, the upper limit value CNT_TH of the second counting module 41 is 0, so the counting time of the second counting module 41 is 0 (dynamic delay time is 0), and the pause counting time of the first counting module 30 is 0.

[0093] When the first counting module 30 completes cycle counting for the second time, the second counting module 41 counts the upper limit value CNT_TH is 1, so the second counting module 41 counts for 1 clock cycle (1clk), and the first counting module 30 pauses counting for 1 clock cycle (1clk).

[0094] When the upper limit value CNT_TH of the second counting module 41 is equal to the maximum second counting information T1max (for example, 3), after the second counting module 41 completes one counting end behavior (completes one cycle counting), (the second control module 422) will count down by 1. The upper limit value CNT_TH of the second counting module 41 will become T1max-1. And so on.

[0095] The first control module 40 inserts a pause counting time during each counting period of the first counting module 30 to achieve the spread spectrum of the output PWM, so that the PWM period jitters within the second counting period range, thereby achieving the effect of reducing electromagnetic interference.

[0096] In some implementations, the second counting information module 42 includes a fifth storage module 424 and a second counting information acquisition module 425;

[0097] A fifth storage module 424, configured to store second counting information corresponding to all counting cycles of the second counting module 41;

[0098] The second counting information acquisition module 425 is used to search for the second counting information of the current counting cycle of the second counting module 41 according to the preset correspondence between each counting cycle of the second counting module 41 and the second counting information. Preferably, the second counting information is an integer greater than or equal to 0.

[0099] For example, a lookup table is set, and the second counting information related to the number of pause clock cycles of each counting cycle of the second counting module 41 is sequentially written into the lookup table. When the first control module 40 receives a signal generation instruction each time (for example, after the first counting module completes a cycle counting), the corresponding second counting information is read from the lookup table, and counting is performed according to the counting rule. It can be understood that if counting is performed according to mode 1, see Figure 4 , then the second counting information is equal to the number of pause clock cycles.

[0100] In some embodiments, the second counting information of each counting cycle of the second counting module 41 is random discrete data. That is, each time the first control module 40 receives a signal generation instruction (for example, after the first counting module completes a cycle counting), the number of pause clock cycles (the time when the first counting module 30 pauses counting) is a random number. The random number can be constrained or obey a certain probability distribution (normal distribution, uniform distribution, etc.). Preferably, the second counting information is an integer greater than or equal to 0.

[0101] That is to say, in the present application, the first control module 40 will directly affect the time when the first counting module 30 pauses counting. Moreover, the time when the counting pauses will change (randomly or periodically) according to the rules set by the first control module 40.

[0102] Due to the insertion of the pause counting time, the counting cycle of the first counting module 30 is jittered within a certain range, which changes the cycle of the output PWM, thereby making the output PWM more dispersed in the spectrum, reducing the generation of electromagnetic interference radiation, and does not change the duration of the high level.

[0103] It should be emphasized that the pause signal does not have to be inserted in every counting cycle of the first counting module, and can be inserted at fixed intervals (every several counting cycles) or at regular intervals.

[0104] In some embodiments, the second storage module 20 stores a first waveform count value and a second waveform count value;

[0105] The PWM generating module 50 is used to flip the output signal when the count value of the first counting module 30 is equal to the first waveform count value and the second waveform count value respectively.

[0106] When the first waveform count value and the second waveform count value are different, for example, when the count value is equal to the first waveform count value, the output signal flips from a low level to a high level, and when the count value is equal to the second waveform count value, the output signal flips from a high level to a low level. Taking the first waveform count value and the second waveform count value as an example, when the first counting module 30 counts to 3, the output of the PWM generation module 50 will flip from a low level to a high level, and when the first counting module 30 counts to 8, the output of the PWM generation module 50 will flip from a high level to a low level, thereby generating a PWM signal with a certain high level width.

[0107] Of course, in the present application, whether the PWM generation module 50 flips from low to high or from high to low can be set as needed (for example, the low level can be used as a valid PWM signal. At this time, it is necessary to control the low level width of the PWM signal. At this time, it can also be understood that the signal (high level) after passing through the inverter is used as a valid PWM signal). Of course, the first waveform count value and the second waveform count value can be the same.

[0108] In some implementations, the second storage module 20 may store only one waveform count value.

[0109] The PWM generation module 50 is used to flip the output signal (e.g., from high to low) when the count value of the first counting module 30 is equal to the first waveform count value, and flip the output signal (e.g., from low to high) when the first counting module 30 starts counting. At this time, when the first counting module 30 starts counting, it will trigger the PWM generation module 50 to output flipping, so only one waveform count value needs to be stored.

[0110] Alternatively, the PWM generation module 50 is used to flip the output signal (e.g., from low to high) when the count value of the first counting module 30 is equal to the first waveform count value, and to flip the output signal (e.g., from high to low) when the first counting module 30 ends counting.

[0111] Alternatively, the PWM generation module 50 is used to flip the output signal (e.g., from low to high) when the count value of the first counting module 30 is equal to the first waveform count value, and flip the output signal (e.g., from high to low) when the count value of the first counting module 30 is equal to the first waveform count value again. In this case, the first counting module 30 usually adopts mode 2 for counting.

[0112] A second aspect of the present application provides a motor control chip, which includes the aforementioned PWM generation circuit.

[0113] A third aspect of the present application provides a motor, which includes the motor control chip provided by the second aspect.

[0114] Through the PWM generation circuit designed by the present application, a pause period is introduced in the PWM counting module, thereby introducing a certain jitter in the PWM cycle, realizing spectrum spread in the counting cycle dimension, so that the frequency of the output PWM is no longer concentrated on a single point, and the spectrum is expanded to a frequency band of a certain width, thereby reducing the amplitude of electromagnetic radiation. In addition, the circuit proposed in the present application will not affect the duration of the high level, which is different from the traditional spread spectrum clock technology. The above is only a specific implementation method of the present application, but the protection scope of the present application is not limited to this. Any changes or replacements that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A PWM generation circuit, It is characterized in that include: A first storage module, a second storage module, a first counting module, a PWM generating module and a first control module; The first storage module stores first counting cycle data; The first counting module counts according to the first counting cycle data and outputs a counting completion signal after completing a full cycle of counting, wherein the first counting cycle data is used to represent information of the counting cycle of the first counting module; The second storage module stores waveform count values; The PWM generation module is used to flip the output signal when the count value of the first counting module is equal to the waveform count value; The first control module is used to output a trigger signal after a dynamic delay time after receiving the counting completion signal, and the trigger signal is used to trigger the first counting module to start counting in the next cycle.

2. A PWM generation circuit according to claim 1, It is characterized in that The first control module comprises: A second counting module and a second counting information module; The second counting information module is used to configure the second counting information of the current counting period of the second counting module; The second counting module is used to generate the dynamic delay time according to the second counting information.

3. A PWM generation circuit according to claim 2, It is characterized in that The second counting module starts counting when receiving the counting completion signal, and outputs the trigger signal to the first counting module after completing the counting according to the second counting information.

4. A PWM generation circuit according to claim 2, It is characterized in that The second counting information module acquires the second counting information according to discrete data of a waveform or a combination of multiple waveforms among a sine wave, a cosine wave, a triangle wave, a sawtooth wave, a square wave, a damped oscillation wave, and a pulse wave; The second counting information of the next counting cycle of the second counting module is the discrete point amplitude after the discrete point corresponding to the second counting information of the current counting cycle.

5. A PWM generation circuit according to claim 4, It is characterized in that The second counting information module includes: a third storage module, a second control module, and a fourth storage module; The third storage module is used to store the second counting information of the current counting period of the second counting module; The fourth storage module is used to store the second counting information threshold; The second control module is electrically connected to the third storage module and the fourth storage module, and is used to obtain the second counting information of the current counting cycle of the second counting module, and output it to the third storage module; Among them, the second control module increases the second counting information of the previous counting cycle of the second counting module by a preset amount to obtain the second counting information of the current counting cycle, and after the second counting information of the current counting cycle reaches the second counting information threshold, reduces the second counting information of the current counting cycle by a preset amount to obtain the second counting information of the next counting cycle.

6. A PWM generation circuit according to claim 2, It is characterized in that The second counting information module includes a fifth storage module and a second counting information acquisition module; The fifth storage module is used to store the second counting information corresponding to all counting cycles of the second counting module; The second counting information acquisition module is used to search for the second counting information of the current counting period of the second counting module according to a preset correspondence between each counting period of the second counting module and the second counting information.

7. A PWM generation circuit according to claim 2, It is characterized in that The second counting information of each counting cycle of the second counting module is random discrete data.

8. A PWM generation circuit according to any one of claims 1 to 7, It is characterized in that The second storage module stores a first waveform count value and a second waveform count value; The PWM generation module is used to flip the output signal when the count value of the first counting module is equal to the first waveform count value and the second waveform count value respectively.

9. A PWM generation circuit according to any one of claims 1 to 7, It is characterized in that The second storage module stores a first waveform count value; The PWM generation module is used to flip the output signal when the count value of the first counting module is equal to the first waveform count value, and flip the output signal when the first counting module starts counting; or, The PWM generation module is used to flip the output signal when the count value of the first counting module is equal to the first waveform count value, and flip the output signal when the first counting module finishes counting; or, The PWM generation module is used to flip the output signal when the count value of the first counting module is equal to the first waveform count value, and flip the output signal when the count value of the first counting module is equal to the first waveform count value again.

10. A motor control chip, It is characterized in that Comprising the PWM generating circuit as described in any one of claims 1-9.