CN110719089B - Method for controlling digital pulse width modulation resolution - Google Patents

Method for controlling digital pulse width modulation resolution Download PDF

Info

Publication number
CN110719089B
CN110719089B CN201911078828.8A CN201911078828A CN110719089B CN 110719089 B CN110719089 B CN 110719089B CN 201911078828 A CN201911078828 A CN 201911078828A CN 110719089 B CN110719089 B CN 110719089B
Authority
CN
China
Prior art keywords
pulse width
resolution
clock
value
width modulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911078828.8A
Other languages
Chinese (zh)
Other versions
CN110719089A (en
Inventor
姚宇桐
洪宗良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yaruiyuan Technology Shenzhen Co ltd
Original Assignee
Yaruiyuan Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaruiyuan Technology Shenzhen Co ltd filed Critical Yaruiyuan Technology Shenzhen Co ltd
Priority to CN201911078828.8A priority Critical patent/CN110719089B/en
Publication of CN110719089A publication Critical patent/CN110719089A/en
Application granted granted Critical
Publication of CN110719089B publication Critical patent/CN110719089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/01Shaping pulses
    • H03K5/04Shaping pulses by increasing duration; by decreasing duration
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K7/00Modulating pulses with a continuously-variable modulating signal
    • H03K7/08Duration or width modulation ; Duty cycle modulation

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Analogue/Digital Conversion (AREA)
  • Dc-Dc Converters (AREA)

Abstract

A method for controlling digital pulse width modulation resolution is applied to a digital pulse width modulation generator. The method divides the first counter pulse width clock by the first pulse width modulation period clock to generate a first resolution, and then generates a second resolution if the modulation command is confirmed to be received, and generates a third resolution if the modulation command is not confirmed to be received. Wherein the second resolution is greater than the first resolution, and the second resolution is less than the third resolution. The invention can improve the accuracy of controllable resolution without increasing the maximum operating frequency of the electronic element, so that the user can obtain the required output resolution more easily and avoid the limit ring oscillation phenomenon of the output voltage and the ripple phenomenon of the output current, thereby achieving the purposes of convenient operation, power consumption cost saving and output signal quality improvement.

Description

Method for controlling digital pulse width modulation resolution
The technical field is as follows:
the present invention relates to a method for controlling resolution, and more particularly, to a method for controlling resolution of digital pulse width modulation applied to a digital pulse width modulation generator.
Background
In an analog circuit, the value of an analog signal can be changed continuously, almost any value can be extracted in time and the amplitude of the value, and the input and the output are changed linearly. Analog circuits have a number of problems, such as the control signals being prone to drift over time, difficult to adjust, power consumption, susceptibility to noise and environmental interference, etc. Unlike analog circuits, digital circuits take values within a predetermined range, and the output at any time can only be ON or OFF (or referred to as high or low), so that the voltage or current is transmitted to the load according to the ON and OFF of the repetitive pulse sequence. The control method for the repetitive pulse sequence is a Digital Pulse Width Modulation (DPWM) technique, which is a method for digitally encoding an analog signal by modulating a duty ratio (duty ratio) of a square wave using a resolution-adjustable counter, thereby implementing the digital encoding of the analog signal.
However, in order to achieve the required output resolution and avoid limit cycles (limit cycles) of the output voltage, the conventional DPWM usually requires the electronic devices (e.g., CPU, DSP, etc.) to operate at a very high frequency, but the price of the electronic devices suitable for high frequency is high, and the electronic devices consume much power when operating at a high frequency. There is another conventional method, called a dither method, which uses averaging of fast jitter of a plurality of duty cycles within a specific period to achieve equivalent improvement of the resolution of the DPWM, but the dither method is prone to generate higher output voltage and current ripple (ripple).
Therefore, how to design a method for controlling the resolution of digital pulse width modulation, especially under the condition of not increasing the maximum operating frequency of the electronic device, the accuracy of controllable resolution is increased, so that the user can obtain the required output resolution more easily, which is an important subject of research.
The invention content is as follows:
the present invention provides a method for controlling digital pulse width modulation resolution, which can improve the accuracy of controllable resolution without increasing the maximum operating frequency of electronic components, so that the user can obtain the required output resolution more easily, and simultaneously avoid the limit ring oscillation phenomenon of the output voltage and the ripple phenomenon of the output current, thereby achieving the purposes of convenient operation, saving power consumption cost and improving the quality of the output signal.
The technical scheme adopted by the invention is as follows: a method for controlling digital pwm resolution, applied to a digital pwm generator, the method comprising: generating a first counter pulse width clock and a first pulse width modulation period clock, and dividing the value of the first counter pulse width clock by the value of the first pulse width modulation period clock to generate a first resolution; when the modulation instruction is confirmed to be received, the first counter pulse width clock pulse is kept unchanged, a second pulse width modulation periodic clock pulse is generated after the value of the first pulse width modulation periodic clock pulse subtracts a first specific value, and the value of the first counter pulse width clock pulse is divided by the value of the second pulse width modulation periodic clock pulse to generate a second resolution; and when the modulation command is confirmed not to be received, the first pulse width modulation period clock pulse is kept unchanged, the value of the first counter pulse width clock pulse is increased by a second specific value to generate a second counter pulse width clock pulse, and the value of the second counter pulse width clock pulse is divided by the value of the first pulse width modulation period clock pulse to generate a third resolution; the second resolution is greater than the first resolution, and the second resolution is less than the third resolution.
Further, in the method for digital pulse width modulation resolution, a control quantity comprising a plurality of bits is received; and cutting the last bit in the control quantity, and using the last bit in the control quantity as the modulation command.
Further, in the method for digital pulse width modulation resolution, the first specific value is the least significant bit of the duty cycle of the first pulse width modulation periodic clock, and the second specific value is the least significant bit of the duty cycle of the first counter pulse width clock.
Compared with the prior art, the invention has the following beneficial effects:
in the method for controlling the digital PWM resolution according to the present invention, for the digital PWM generator, the first resolution is generated by dividing a value of a first counter pulse width clock (duty clock) by a value of a first pulse width modulation period clock (PWM period). Basically, the pulse width modulation period clock in the conventional method is fixed, so the resolution is completely determined by the counter pulse width clock, and the conventional method can only change the resolution by adjusting the counter pulse width clock. However, the conventional method is limited to the maximum operation frequency of the pulse width modulation periodic clock, and thus the accuracy of the controllable resolution cannot be improved.
The present invention controls the first counter pulse width clock and the first pulse width modulation period clock by the modulation command, and can create the second resolution with a value range between the first resolution and the third resolution in a Pulse Frequency Modulation (PFM) manner with a required minimum amplitude without changing the adjustable maximum value of the first pulse width modulation period clock (i.e. the maximum operating frequency of the electronic element).
Therefore, the invention can improve the accuracy of the controllable resolution (namely the digital pulse width modulation resolution) by properly configuring the modulation command, the first specific value and the second specific value, can enable the smaller adjustment amplitude to approach or match the required output resolution, and enables a user to avoid the limit ring oscillation phenomenon of the output voltage and the ripple phenomenon of the output current while more easily obtaining the required output resolution, thereby achieving the purposes of convenient operation, power consumption cost saving and output signal quality improvement. Furthermore, the control of the small-amplitude Pulse Frequency Modulation (PFM) also helps to disperse electromagnetic interference (EMI) in the frequency spectrum, which helps to mitigate the effect of EMI.
Drawings
FIG. 1 is a flow chart of a method for controlling digital pulse width modulation resolution according to the present invention;
FIG. 2 is a diagram illustrating a first embodiment of a method for controlling digital pulse width modulation resolution according to the present invention;
FIG. 3A is a diagram illustrating a second embodiment of a method for controlling digital pulse width modulation resolution according to the present invention;
FIG. 3B is a diagram illustrating a third embodiment of a method for controlling digital pulse width modulation resolution according to the present invention;
FIG. 4A is a diagram illustrating a fourth embodiment of a method for controlling digital pulse width modulation resolution according to the present invention;
FIG. 4B is a diagram illustrating a fifth embodiment of the method for controlling resolution of digital pulse width modulation according to the present invention.
The specific implementation mode is as follows:
the following description is given of embodiments of the present invention with reference to specific embodiments, and other advantages and effects of the present invention will be apparent to those skilled in the art from the disclosure of the present invention. The invention is capable of other and different embodiments and its several details are capable of modification and various changes in form and detail can be made without departing from the spirit and scope of the invention.
It should be understood that the structures, ratios, sizes, and numbers of elements shown in the drawings and described in the specification are only used for understanding and reading the present disclosure, and are not used to limit the conditions of the present disclosure, so they have no technical significance, and any structural modifications, ratio changes or size adjustments should fall within the scope of the present disclosure without affecting the function and the achievable purpose of the present disclosure.
The first embodiment is as follows: FIG. 1 is a flowchart illustrating a method for controlling digital pulse width modulation resolution according to the present invention. The method for controlling the resolution of Digital Pulse Width Modulation (DPWM) is mainly applied to a DPWM generator, and comprises the following steps: generating a first counter pulse width clock (duty clock) and a first pulse width modulation period clock (PWM period clock), and dividing the value of the first counter pulse width clock by the value of the first pulse width modulation period clock to generate a first resolution (step S01);
then, a control variable including a plurality of bits is received (step S02). Then, the first to last bit in the control quantity is cut (step S03), and the second to last bit in the control quantity is used as the modulation command (step S04). Then, whether a modulation command is received is confirmed (step S05);
when it is determined that the modulation command is received (step 05, yes), the first counter pulse width clock remains unchanged, and the value of the first pulse width modulation period clock is subtracted by the first specific value to generate a second pulse width modulation period clock (step S06). At this time, the value of the first counter pulse width clock is divided by the value of the second pulse width modulation period clock to generate a second resolution (step S07). Wherein the second resolution is greater than the first resolution;
when it is determined that the modulation command is not received (i.e., no in step 05), the first pwm period clock remains unchanged, and the value of the first counter pulse width clock is incremented by a second specific value to generate a second counter pulse width clock (step S08). At this time, the value of the second counter pulse width clock is divided by the value of the first pulse width modulation period clock to generate the third resolution (step S09). Wherein the second resolution is less than the third resolution. After confirming that the modulation command is not received and the third resolution is generated (step S09), if an abort command (not shown) is not explicitly received or the operation is stopped, the method for controlling the digital pwm resolution according to the present invention re-determines whether the modulation command is received (step S05). In an embodiment of the present invention, the Digital Pulse Width Modulation (DPWM) generator allows 9-bit input, the control amount can be 11-bit, and the prior art processing method directly cuts two bits of the reciprocal to generate the DPWM generator compatible with 9-bit input. The present invention cuts off only the last bit in the control quantity, and the last bit in the control quantity can be used as the modulation command. For example, when the last bit in the control amount is 0, it is determined that the modulation command has not been received, and when the last bit in the control amount is 1, it is determined that the modulation command has been received.
In the method for controlling the digital pulse width modulation resolution according to the present invention, for the digital pulse width modulation generator, the first resolution is generated by dividing the value of the first counter pulse width clock (duty clock) by the value of the first pulse width modulation period clock (PWM period). Basically, the pulse width modulation period clock in the conventional method is fixed, so the resolution is completely determined by the counter pulse width clock, and the conventional method can only change the resolution by adjusting the counter pulse width clock. However, the conventional method is limited to the maximum operation frequency of the pulse width modulation periodic clock, and thus the accuracy of the controllable resolution cannot be improved. The invention controls the first counter pulse width clock and the first pulse width modulation period clock through the modulation instruction, and can create the second resolution with the value range between the first resolution and the third resolution in the way of Pulse Frequency Modulation (PFM) with the required minimum amplitude under the condition of not changing the adjustable maximum value of the first pulse width modulation period clock (namely the maximum operating frequency of the electronic element). In the first embodiment of the present invention, the first specific value may be a Least Significant Bit (LSB) of a duty cycle (duty cycle) of the first pwm period clock, and the second specific value may be a LSB of a duty cycle of the first counter pulse width clock. That is, when the last bit in the controlled variable is 1, the modulation command is considered to have been received, and the last bit in the controlled variable is the least significant bit while the last bit in the controlled variable is being truncated.
Fig. 2 is a schematic diagram illustrating a method for controlling digital pwm resolution according to a first embodiment of the present invention. In the first embodiment of the present invention, the first counter pulse width clock is 20clocks, the first pwm cycle clock is 100clocks, and both the first specific value and the second specific value are 1 clock. As in fig. 2 (a), the first resolution is 20% at this time.
When it is determined that no modulation command is received, the first PWM cycle clock (i.e., 100clocks) remains unchanged (i.e., the maximum operating frequency of the DPWM generator is maintained), and the value of the first counter pulse width clock (i.e., 20clocks) is increased by a second specific value (i.e., 1clock) to generate a second counter pulse width clock (i.e., 21 clocks). Then, as shown in fig. 2 (c), the value of the second counter pulse width clock (i.e., 21clocks) is divided by the value of the first pwm cycle clock (i.e., 100clocks) to generate the third resolution (i.e., 21/100-21%). After confirming that the modulation command is not received and generating the third resolution, if no pause command is explicitly received or the operation is stopped, whether the modulation command is received or not is confirmed again.
When a modulation command is received, the first counter pulse width clock (i.e., 20clocks) remains unchanged, and the first specific value (i.e., 1clock) is subtracted from the first pulse width modulation cycle clock (i.e., 100clocks) to generate a second pulse width modulation cycle clock (i.e., 99 clocks). Then, as shown in fig. 2 (b), the value of the first counter pulse width clock (i.e., 20clocks) is divided by the value of the second pwm cycle clock (i.e., 99clocks) to generate the second resolution (i.e., 20/99 ═ 20.2%).
By analogy, a resolution of 21.2% of (d) in fig. 2 and 22% of (e) in fig. 2 at the next stage can be obtained on the basis of (c) in fig. 2. The first embodiment of the present invention creates 20.2% and 21.2% more resolution than the conventional method without increasing the maximum operating frequency of the DPWM generator, which only provides 20%, 21%, and 22% resolution.
The second embodiment is as follows:
referring to FIG. 3A and FIG. 3B,
as shown in fig. 3A, the second embodiment of the present invention is substantially the same as the first embodiment, except that the first counter pulse width clock is 50 clocks.
When it is determined that no modulation command is received, the first PWM cycle clock (i.e., 100clocks) remains unchanged (i.e., the maximum operating frequency of the DPWM generator is maintained), and the value of the first counter pulse width clock (i.e., 50clocks) is increased by a second specific value (i.e., 1clock) to generate a second counter pulse width clock (i.e., 51 clocks). Then, as shown in fig. 3A (c), the value of the second counter pulse width clock (i.e., 51clocks) is divided by the value of the first pwm cycle clock (i.e., 100clocks) to generate the third resolution (i.e., 51/100-51%). After confirming that the modulation command is not received and generating the third resolution, if no pause command is explicitly received or the operation is stopped, whether the modulation command is received or not is confirmed again.
When the modulation command is confirmed, the first counter pulse width clock (i.e., 50clocks) remains unchanged, and the first specific value (i.e., 1clock) is subtracted from the first pulse width modulation cycle clock (i.e., 100clocks) to generate a second pulse width modulation cycle clock (i.e., 99 clocks). Then, as shown in fig. 3A (b), the value of the first counter pulse width clock (i.e., 50clocks) is divided by the value of the second pwm cycle clock (i.e., 99clocks) to generate the second resolution (i.e., 50/99-50.9%).
By analogy, the resolution at the next stage can be obtained on the basis of (c) in fig. 3A as 51.5% of (d) in fig. 3A and 52% of (e) in fig. 3A. The second embodiment of the present invention creates 50.9% and 51.5% more resolution than the conventional method without increasing the maximum operating frequency of the DPWM generator, which only provides 50%, 51%, and 52% resolution.
The third concrete implementation mode:
as shown in fig. 3B, the third embodiment of the present invention is substantially the same as the second embodiment described above, except that the first specific value and the second specific value are both 2 clocks.
When it is determined that no modulation command is received, the first PWM cycle clock (i.e., 100clocks) remains unchanged (i.e., the maximum operating frequency of the DPWM generator is maintained), and the value of the first counter pulse width clock (i.e., 50clocks) is incremented by a second specific value (i.e., 2clocks) to generate a second counter pulse width clock (i.e., 52 clocks). Then, as shown in fig. 3B (c), the value of the second counter pulse width clock (i.e., 52clocks) is divided by the value of the first pwm cycle clock (i.e., 100clocks) to generate the third resolution (i.e., 52/100-52%). After confirming that the modulation command is not received and generating the third resolution, if no pause command is explicitly received or the operation is stopped, whether the modulation command is received or not is confirmed again.
When a modulation command is received, the first counter pulse width clock (i.e., 50clocks) remains unchanged, and the first counter pulse width clock (i.e., 100clocks) is subtracted from the first counter pulse width clock (i.e., 2clocks) to generate a second counter pulse width modulation cycle clock (i.e., 98 clocks). Then, as shown in fig. 3B (B), the value of the first counter pulse width clock (i.e., 50clocks) is divided by the value of the second pwm cycle clock (i.e., 98clocks) to generate the second resolution (i.e., 50/98-51.02%).
By analogy, the resolution at the next stage can be obtained on the basis of (c) in fig. 3B to be 53.06% of (d) in fig. 3B and 54% of (e) in fig. 3B. The third embodiment of the present invention creates 51.02% and 53.06% better resolution than the conventional method without increasing the maximum operating frequency of the DPWM generator, which only provides 50%, 52%, and 54% resolution.
The fourth concrete implementation mode: please refer to fig. 4A and fig. 4B.
As shown in FIG. 4A, the fourth embodiment of the present invention is substantially the same as the first embodiment, except that the first counter pulse width clock is 80 clocks.
When it is determined that no modulation command is received, the first PWM cycle clock (i.e., 100clocks) remains unchanged (i.e., the maximum operating frequency of the DPWM generator is maintained), and the value of the first counter pulse width clock (i.e., 80clocks) is increased by a second specific value (i.e., 1clock) to generate a second counter pulse width clock (i.e., 81 clocks). Then, as shown in fig. 4A (c), the value of the second counter pulse width clock (i.e., 81clocks) is divided by the value of the first pwm cycle clock (i.e., 100clocks) to generate the third resolution (i.e., 81/100-81%). After confirming that the modulation command is not received and generating the third resolution, if no pause command is explicitly received or the operation is stopped, whether the modulation command is received or not is confirmed again.
When the modulation command is confirmed to be received, the first counter pulse width clock (i.e. 80clocks) is maintained, and the value of the first pulse width modulation cycle clock (i.e. 100clocks) minus the first specific value (i.e. 1clock) generates the second pulse width modulation cycle clock (i.e. 99 clocks). Then, as shown in fig. 4A (b), the value of the first counter pulse width clock (i.e., 80clocks) is divided by the value of the second pwm cycle clock (i.e., 99clocks) to generate the second resolution (i.e., 80/99-80.8%).
By analogy, the resolution at the next stage is 81.8% of (d) in fig. 4A and 82% of (e) in fig. 4A can be obtained on the basis of (c) in fig. 4A. The fourth embodiment of the present invention creates 80.8% and 81.8% more resolution than the conventional method without increasing the maximum operating frequency of the DPWM generator, which only provides 80%, 81% and 82% resolution.
The fifth concrete implementation mode:
as shown in fig. 4B, the fifth embodiment of the present invention is substantially the same as the fourth embodiment, except that the first specific value and the second specific value are both 2 clocks.
When it is determined that no modulation command is received, the first PWM cycle clock (i.e., 100clocks) remains unchanged (i.e., the maximum operating frequency of the DPWM generator is maintained), and the value of the first counter pulse width clock (i.e., 80clocks) is increased by a second specific value (i.e., 2clocks) to generate a second counter pulse width clock (i.e., 82 clocks). Then, as shown in fig. 4B (c), the value of the second counter pulse width clock (i.e., 82clocks) is divided by the value of the first pwm cycle clock (i.e., 100clocks) to generate the third resolution (i.e., 82/100-82%). After confirming that the modulation command is not received and generating the third resolution, if the pause command is not explicitly received or the operation is stopped, whether the modulation command is received is confirmed again.
When the modulation command is confirmed, the first counter pulse width clock (i.e., 80clocks) remains unchanged, and the first specific value (i.e., 2clocks) is subtracted from the first pulse width modulation cycle clock (i.e., 100clocks) to generate the second pulse width modulation cycle clock (i.e., 98 clocks). Then, as shown in fig. 4B (B), the value of the first counter pulse width clock (i.e., 80clocks) is divided by the value of the second pwm cycle clock (i.e., 98clocks) to generate the second resolution (i.e., 80/98-81.63%).
By analogy, the resolution at the next stage can be obtained on the basis of (c) in fig. 4B as 83.67% of (d) in fig. 4B and 84% of (e) in fig. 4B. The fifth embodiment of the present invention creates 81.63% and 83.67% more resolution than the conventional method without increasing the maximum operating frequency of the DPWM generator, which only provides 80%, 82%, and 84% resolution.
The sixth specific implementation mode:
in addition, if the first specific value and the second specific value are not properly configured (e.g., the first specific value is half of the value of the first pwm period clock, and the second specific value is half of the value of the first counter pulse width clock), the resolution adjustment may be out of order, and even the limit ring oscillation phenomenon of the output voltage and the ripple phenomenon of the output current may be caused. For example, in a sixth embodiment (not shown), the first counter pulse width clock is 20clocks and the first PWM cycle clock is 100 clocks. The first specified value is half the value of the first pwm period clock (i.e., 10clocks) and the second specified value is half the value of the first counter pulse width clock (i.e., 50 clocks). At this time, the first resolution is 20%, and the second resolution is 13.33%. The first resolution of the second step (i.e., the next step) is 30% and the second resolution of the next step is 20%. The first resolution of the third step (i.e., the next step) is 40%, and the second resolution of the next step is 26.67%. Only 20%, 30% and 40% resolution can be provided in the conventional manner. However, after receiving the modulation command, the adjustment sequence may be 20% → 13.33% → 30% → 20% → 40% → 26.67%. It can be seen from the above values that, during such modulation, the values show a phenomenon of sudden change (sudden change of high and low oscillations in the waveform diagram), and the modulated values are more and more divergent (13.33% differs from 20% by 6.67%, 20% differs from 30% by 10%, and 26.67% differs from 40% by 13.33%) than the values obtained in the conventional manner, which may cause a limit cycle oscillation phenomenon of the output voltage and a ripple phenomenon of the output current. For this purpose, the first specific value should be less than half the value of the first pulse width modulation period clock, and the second specific value should be less than half the value of the first counter pulse width clock.
Therefore, the invention can improve the accuracy of the controllable resolution (namely the digital pulse width modulation resolution) by properly configuring the modulation command, the first specific value and the second specific value, can enable the smaller adjustment amplitude to approach or match the required output resolution, and enables a user to avoid the limit ring oscillation phenomenon of the output voltage and the ripple phenomenon of the output current while more easily obtaining the required output resolution, thereby achieving the purposes of convenient operation, power consumption cost saving and output signal quality improvement. Further, the control of the small-amplitude Pulse Frequency Modulation (PFM) also helps to disperse electromagnetic interference (EMI) in the frequency spectrum, which helps to mitigate the effects of electromagnetic interference (EMI).
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (5)

1. A method for controlling digital pulse width modulation resolution is applied to a digital pulse width modulation generator, and is characterized in that: the method comprises the following steps:
generating a first counter pulse width clock and a first pulse width modulation period clock, and dividing the value of the first counter pulse width clock by the value of the first pulse width modulation period clock to generate a first resolution;
when the modulation instruction is confirmed to be received, the first counter pulse width clock pulse is kept unchanged, a second pulse width modulation periodic clock pulse is generated after the value of the first pulse width modulation periodic clock pulse subtracts a first specific value, and the value of the first counter pulse width clock pulse is divided by the value of the second pulse width modulation periodic clock pulse to generate a second resolution; and when the modulation command is not received, the first pulse width modulation period clock pulse is kept unchanged, the value of the first counter pulse width clock pulse is increased by a second specific value to generate a second counter pulse width clock pulse, and the value of the second counter pulse width clock pulse is divided by the value of the first pulse width modulation period clock pulse to generate a third resolution;
wherein the second resolution is greater than the first resolution, and the second resolution is less than the third resolution.
2. The method of claim 1, wherein the step of controlling the digital pulse width modulation resolution comprises:
receiving a control quantity comprising a plurality of bits; and cutting the last bit in the control quantity, and using the last bit in the control quantity as the modulation command.
3. The method of claim 1, wherein the step of controlling the digital pulse width modulation resolution comprises:
the first specific value is the least significant bit of the duty cycle of the first PWM periodic clock, and the second specific value is the least significant bit of the duty cycle of the first counter PWM periodic clock.
4. The method of claim 1, wherein the step of controlling the digital pulse width modulation resolution comprises: the first specific value is equal to the second specific value.
5. The method of claim 1, wherein the step of controlling the digital pulse width modulation resolution comprises: the first specific value is less than half of the value of the first pulse width modulation period clock, and the second specific value is less than half of the value of the first counter pulse width clock.
CN201911078828.8A 2019-11-07 2019-11-07 Method for controlling digital pulse width modulation resolution Active CN110719089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911078828.8A CN110719089B (en) 2019-11-07 2019-11-07 Method for controlling digital pulse width modulation resolution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911078828.8A CN110719089B (en) 2019-11-07 2019-11-07 Method for controlling digital pulse width modulation resolution

Publications (2)

Publication Number Publication Date
CN110719089A CN110719089A (en) 2020-01-21
CN110719089B true CN110719089B (en) 2022-07-01

Family

ID=69213806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911078828.8A Active CN110719089B (en) 2019-11-07 2019-11-07 Method for controlling digital pulse width modulation resolution

Country Status (1)

Country Link
CN (1) CN110719089B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689852A (en) * 2007-06-28 2010-03-31 密克罗奇普技术公司 System, method and apparatus having improved pulse width modulation frequency resolution
TW201104382A (en) * 2009-07-27 2011-02-01 Univ Nat Taiwan Spread spectrum clock generator with programmable spread spectrum
CN103956996A (en) * 2014-04-29 2014-07-30 西北工业大学 High-resolution digital pulse width modulator based on double-frequency and multi-phase clock

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7239116B2 (en) * 2004-12-21 2007-07-03 Primarion, Inc. Fine resolution pulse width modulation pulse generator for use in a multiphase pulse width modulated voltage regulator
JP5292770B2 (en) * 2007-11-07 2013-09-18 セイコーエプソン株式会社 PWM control circuit, electric motor including the PWM control circuit, apparatus including the electric motor, and method for generating a PWM signal
US8427212B2 (en) * 2010-12-20 2013-04-23 Intel Corporation Pulse width modulated signal generation method and apparatus
KR20190067879A (en) * 2016-10-20 2019-06-17 후아웨이 테크놀러지 컴퍼니 리미티드 Digitally Controllable Oscillator with High Accuracy

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689852A (en) * 2007-06-28 2010-03-31 密克罗奇普技术公司 System, method and apparatus having improved pulse width modulation frequency resolution
TW201104382A (en) * 2009-07-27 2011-02-01 Univ Nat Taiwan Spread spectrum clock generator with programmable spread spectrum
CN103956996A (en) * 2014-04-29 2014-07-30 西北工业大学 High-resolution digital pulse width modulator based on double-frequency and multi-phase clock

Also Published As

Publication number Publication date
CN110719089A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
US7684462B2 (en) System and method for controlling variations of switching frequency
Corradini et al. Digital hysteretic voltage-mode control for DC–DC converters based on asynchronous sampling
US10291124B2 (en) Spread spectrum control apparatus and method
JP6360386B2 (en) Spread spectrum clock generation circuit
JP2009528015A (en) Self-correcting digital pulse width modulator (DPWM)
US20100117699A1 (en) PWM Controller with Frequency Jitter Functionality and Related Method
US10153777B2 (en) Fractional frequency clock divider with direct division
US7429940B2 (en) Delta-sigma modulator circuit with limiter and method therefor
JP7189646B2 (en) WIRELESS POWER TRANSMISSION DEVICE USING FINE TIMING RESOLUTION
US10148312B2 (en) Circuit and method to reduce fundamental and modulation spurs with spread spectrum
de Castro et al. High resolution FPGA DPWM based on variable clock phase shifting
De Martino et al. A standard-cell-based all-digital PWM modulator with high resolution and spread-spectrum capability
JPWO2008149981A1 (en) Modulator and pulse wave generator
EP1929629A2 (en) Generating a pulse signal with a modulated duty cycle
Fang et al. An optimal digital pulse-width-modulated dither technique to enhance the resolution of high-frequency power converters
CN110719089B (en) Method for controlling digital pulse width modulation resolution
US8963527B2 (en) EMI mitigation of power converters by modulation of switch control signals
TWI726460B (en) Method of controlling resolution of digital pulse width modulation
JP6888023B2 (en) Modulator for digital amplifier
Sabarinath et al. Design and implementation of FPGA based high resolution digital pulse width modulator
US8134420B2 (en) Communication apparatus and signal processing method thereof
US11881767B2 (en) Reduction of low frequency noise in a discrete spread spectrum timebase
JP4874020B2 (en) Spread spectrum clock generation circuit
Carlosena et al. Randomized carrier PWM with exponential frequency mapping
US20090033374A1 (en) Clock generator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant