PWM waveform generation device and method thereof

11356085 · 2022-06-07

Assignee

Inventors

Cpc classification

International classification

Abstract

The PWM waveform generation device comprises a time-division multiplexing module, wherein the time-division multiplexing module is configured for receiving a first preprocessing signal and a second preprocessing signal output by two system clock sources, performing a first time-division processing on the first preprocessing signal to obtain a first time-division signal, and performing a second time-division processing on the second preprocessing signal to obtain a second time-division signal according to a preset strategy, performing multiplexing processing on the first time-division signal and the second time-division signal to obtain a PWM output signal, wherein an output frequency of the PWM output signal is a default standard clock frequency. The present invention has the advantages that the cycle length of one cycle of a PWM waveform depends on cycles of two preprocessing waveforms and the number of the cycles, such that the output waveform frequency may be calibrated to a desired frequency.

Claims

1. A PWM waveform generation device, comprising: a time-division multiplexing module for receiving a first preprocessing signal and a second preprocessing signal, performing a first time-division processing on the first preprocessing signal to obtain a first time-division signal, and performing a second time-division processing on the second preprocessing signal to obtain a second time-division signal according to a preset strategy, performing multiplexing processing on the first time-division signal and the second time-division signal to obtain a PWM output signal, wherein an output frequency of the PWM output signal is a default standard clock frequency; the time-division multiplexing module performs the first time-division processing, the second time-division processing and the multiplexing processing by using the following formula: f = x * f 1 + y * f 2 x + y , wherein f represents a cycle length of a waveform corresponding to the PWM output signal; f.sub.1 represents a cycle length of a waveform corresponding to the first time-division signal; f.sub.2 represents a cycle length of a waveform corresponding to the second time-division signal; x represents a cycle number of a waveform corresponding to the first time-division signal; and y represents a cycle number of a waveform corresponding to the second time-division signal.

2. The PWM waveform generation device as claimed in claim 1, wherein the time-division multiplexing module is configured to receive the first preprocessing signal output by a first system clock source, and the second preprocessing signal output by a second system clock source.

3. The PWM waveform generation device as claimed in claim 1, wherein the preset strategy is to obtain the PWM output signal by adjusting the cycle length and the cycle number of the waveform corresponding to the first time-division signal, and the cycle length and the cycle number of the waveform corresponding to the second time-division signal, respectively.

4. A method for generation of a PWM waveform, comprising: a time-division multiplexing module receiving a first preprocessing signal and a second preprocessing signal output by two system clock sources, performing a first time-division processing on the first preprocessing signal to obtain a first time-division signal, and performing a second time-division processing on the second preprocessing signal to obtain a second time-division signal according to a preset strategy, performing multiplexing processing on the first time-division signal and the second time-division signal to obtain a PWM output signal, wherein an output frequency of the PWM output signal is a default standard clock frequency; wherein the time-division multiplexing module performs the first time-division processing, the second time-division processing and the multiplexing processing by using the following formula: f = x * f 1 + y * f 2 x + y , wherein f represents a cycle length of a waveform corresponding to the PWM output signal; f.sub.1 represents a cycle length of a waveform corresponding to the first time-division signal; f.sub.2 represents a cycle length of a waveform corresponding to the second time-division signal; x represents a cycle number of a waveform corresponding to the first time-division signal; and y represents a cycle number of a waveform corresponding to the second time-division signal.

5. The PWM waveform generation device as claimed in claim 4, wherein the time-division multiplexing module is configured to receive the first preprocessing signal output by a first system clock source, and the second preprocessing signal output by a second system clock source.

6. The PWM waveform generation device as claimed in claim 4, wherein the preset strategy is to obtain the PWM output signal by adjusting the cycle length and the cycle number of the waveform corresponding to the first time-division signal, and the cycle length and the cycle number of the waveform corresponding to the second time-division signal, respectively.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The accompanying drawings, together with the specification, illustrate exemplary embodiments of the present disclosure, and, together with the description, serve to explain the principles of the present invention.

(2) FIG. 1 is a schematic diagram of functional blocks of a PWM waveform generation device in a preferred embodiment according to the present invention;

(3) FIG. 2 is a schematic diagram of a PWM waveform output by a double-channel waveform in a preferred embodiment according to the present invention; and

(4) FIG. 3 is a schematic diagram of a PWM waveform output by a double-channel variable cycle in a preferred embodiment according to the present invention.

DETAILED DESCRIPTION

(5) The present invention will now be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Like reference numerals refer to like elements throughout.

(6) The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” or “includes” and/or “including” or “has” and/or “having” when used herein, specify the presence of stated features, regions, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, regions, integers, steps, operations, elements, components, and/or groups thereof.

(7) Unless otherwise defined, all terms (including technical and scientific ter used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

(8) As used herein, the term “plurality” means a number greater than one.

(9) Hereinafter, certain exemplary embodiments according to the present disclosure will be described with reference to the accompanying drawings.

(10) As shown in FIG. 1, a PWM waveform generation device comprises:

(11) a time-division multiplexing module 1 for receiving a first preprocessing signal and a second preprocessing signal output by two system clock sources, performing a first time-division processing on the first preprocessing signal to obtain a first time-division signal, and per forming a second time-division processing on the second preprocessing signal to obtain a second time-division signal according to a preset strategy, performing multiplexing processing on the first time-division signal and the second time-division signal to obtain a PWM output signal, wherein an output frequency of the PWM output signal is a default standard clock frequency.

(12) In this embodiment, period of a cycle of the PWM waveform depends on cycles of two preprocessing waveforms and the number of the cycles, such that the output waveform frequency can be calibrated to a desired frequency.

(13) A method for generation of a PWM waveform comprises:

(14) a time-division multiplexing module 1 receiving a first preprocessing signal and a second preprocessing signal output by two system clock sources, performing a first time-division processing on the first preprocessing signal to obtain a first time-division signal, and performing a second time-division processing on the second preprocessing signal to obtain a second time-division signal according to a preset strategy, performing multiplexing processing on the first time-division signal and the second tune-division signal to obtain a PWM output signal, wherein an output frequency of the PWM output signal is a default standard clock frequency.

(15) In a preferred embodiment, the above-mentioned time-division multiplexing module 1 performs the multiplexing processing by using the following formula:

(16) f out = f 1 + f 2 2 ,

(17) wherein f.sub.out represents a cycle length of a waveform corresponding to the output signal;

(18) f.sub.1 represents a cycle length of a waveform corresponding to the first time-division signal; and

(19) f.sub.2 represents a cycle length of a waveform corresponding to the second time-division signal.

(20) In a preferred embodiment, the above-mentioned time-division multiplexing module 1 performs the first time-division processing, the second time-division processing and the multiplexing processing by using the following formula:

(21) f = x * f 1 + y * f 2 x + y ,

(22) wherein f represents a cycle length of a waveform corresponding to the output signal;

(23) f.sub.1 represents a cycle length of a waveform corresponding to the first time-division signal; and

(24) f.sub.2 represents a cycle length of a waveform corresponding to the second time-division signal; and

(25) x represents the cycle number of a waveform corresponding to the first time-division signal;

(26) y represents the cycle number of a waveform corresponding to the second time-division signal.

(27) In a preferred embodiment, the preset strategy is to obtain the PWM output signal by adjusting the cycle length and the cycle number of the waveform corresponding to the first time-division signal, and the cycle length and the cycle number of the waveform corresponding to the second time-division signal, respectively.

(28) As shown in FIG. 2, in a specific embodiment, the first method is a time-division multiplexing method. In this method, a waveform is synthesized after time-division output of two different waveforms, wherein ab, cd, and ef are one cycle of the waveform f.sub.1; bc, de, and hi are one cycle of the waveform f.sub.2, and ac is one cycle of the output waveform, and the final output frequency is:

(29) f o u t = f 1 + f 2 2 ,
wherein the output frequency depends on f.sub.1 and f.sub.2, such that f.sub.1 and f.sub.2 can be separately adjusted to output the waveform in precise frequency.

(30) As shown in FIG. 3, in a specific embodiment, the second method is improved based on the first method, and a parameter, the cycle number of the waveform, is added, wherein ab, cd, and ed are waveform f.sub.1; bc, de, and fg are waveform f.sub.2. As shown in FIG. 2, f.sub.1 has three cycles, and f.sub.2 has two cycles, and the number of cycles of the two waveforms is set to a variable parameter, and the cycle of the synthesized waveform varies depending on the two cycles. The output frequency can be given by:

(31) f = x * f 1 + y * f 2 x + y ;
and ac is one cycle of the PWM waveform, and the cycle size depends on the cycles of the two waveforms and the number of cycles, such that the output waveform frequency can be calibrated to a desired frequency.

(32) The above descriptions are only the preferred embodiments of the invention, not thus limiting the embodiments and scope of the invention. Those skilled in the art should be able to realize that the schemes obtained from the content of specification and drawings of the invention are within the scope of the invention