CN101551691A - PWM arithmetic and device for arbitrary function waveform generation - Google Patents
PWM arithmetic and device for arbitrary function waveform generation Download PDFInfo
- Publication number
- CN101551691A CN101551691A CNA2008100354161A CN200810035416A CN101551691A CN 101551691 A CN101551691 A CN 101551691A CN A2008100354161 A CNA2008100354161 A CN A2008100354161A CN 200810035416 A CN200810035416 A CN 200810035416A CN 101551691 A CN101551691 A CN 101551691A
- Authority
- CN
- China
- Prior art keywords
- function
- centerdot
- delta
- pwm
- arbitrary function
- 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.)
- Pending
Links
Images
Abstract
The invention discloses a PWM arithmetic and a device for arbitrary function waveform generation, which are used for fitting waveforms by a DSP platform. The PWM arithmetic comprises the following steps of setting the function, converting the function, calculating the function value and obtaining a PWM fitting result; and the device comprises a function setting device, a function conversion device, a function value calculating device and an output device which are connected in sequence. The invention satisfies the waveform requirements of high precision and low noise and can fit the waveforms well by the DSP platform.
Description
Technical field
The present invention relates to a kind of method for generation and device thereof of arbitrary function waveform, relate in particular to PWM algorithm and device thereof that a kind of arbitrary function waveform takes place.
Technical background
Existing function waveform generating means often can not reach high precision, low noise waveform requirement at some to the demanding occasion of accuracy of waveform, how to satisfy high precision, low noise waveform requirement is a problem demanding prompt solution of the present invention.
Summary of the invention
The objective of the invention is to overcome the defective of prior art, and PWM (width modulation) algorithm and the device thereof that provide a kind of arbitrary function waveform to take place, it has satisfied high precision, and low noise waveform requirement can utilize DSP platform match waveform well.
The technical scheme that realizes above-mentioned purpose is:
The PWM algorithm that a kind of arbitrary function waveform of one of the present invention takes place comes the match waveform by a DSP platform, and wherein, it may further comprise the steps:
Step S1 is provided with function, is T to the cycle that will produce promptly, and amplitude is that the arbitrary function of Vm is set to Vmf (t-kT);
Step S2 transforms function, and the function that is about to be provided with among the step S1 carries out amplitude mark 1, and establishing maximum amplitude is V
M, arbitrary function is converted into KV
MF (t-kT), wherein,
Step S3, the computing function value is promptly calculated functional value f (n Δ t-kT)=g (n) of 125 according to the exponent number formula, and wherein, described exponent number formula launches for the exponent number that function f (t-kT) is carried out in 256 dot cycles, for:
Wherein, i=0,1,2 ... 128;
Step S4 draws the PWM fitting result, promptly according to the described KV of step S2
MF (t-kT) can obtain
Dutycycle, promptly obtained the PWM fitting result of arbitrary function, wherein, g (n) is a feedback signal.
The PWM device that the present invention's two a kind of arbitrary function waveform takes place comes the match waveform by a DSP platform, and wherein, it comprises functional unit is set, transforms functional unit, computing function value device and output unit of linking to each other successively, wherein:
The described functional unit that is provided with, be used for to the cycle that will produce be T, amplitude is that the arbitrary function of Vm is set to Vmf (t-kT);
Described conversion functional unit is used for carrying out amplitude mark 1 with the function that functional unit is provided with is set, and establishing maximum amplitude is V
M, arbitrary function is converted into KV
MF (t-kT), wherein,
Described computing function value device is used for functional value f (n Δ the t-kT)=g (n) according to 125 of exponent number formula calculating, and wherein, described exponent number formula launches for the exponent number that function f (t-kT) is carried out in 256 dot cycles, for:
Wherein, i=0,1,2 ... 128;
Output unit is used to export the PWM fitting result, promptly according to transforming the KV described in the functional unit
MF (t-kT) can obtain
Dutycycle, promptly obtained the PWM fitting result of arbitrary function, wherein, g (n) is a feedback signal.
The invention has the beneficial effects as follows: the present invention utilizes DSP (digital signal processor) platform simulation waveform, by function being set, transforming function, computing function value, draw the PWM fitting result of arbitrary function at last, the waveform of generation has high precision, low noise advantage.
Description of drawings
Fig. 1 is a process flow diagram of the present invention;
Fig. 2 is a structural representation of the present invention.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
See also Fig. 1, there is shown PWM (width modulation) algorithm of a kind of arbitrary function waveform generation of one of the present invention, come the match waveform by a DSP (digital signal processor) platform, it may further comprise the steps:
Step S1 is provided with function, is T to the cycle that will produce promptly, and amplitude is that the arbitrary function of Vm is set to Vmf (t-kT);
Step S2 transforms function, and the function that is about to be provided with among the step S1 carries out amplitude mark 1, and establishing maximum amplitude is V
M, arbitrary function is converted into KV
MF (t-kT), wherein,
Step S3, the computing function value is promptly calculated functional value f (n Δ t-kT)=g (n) of 125 according to the exponent number formula, and wherein, described exponent number formula launches for the exponent number that function f (t-kT) is carried out in 256 dot cycles, for:
Wherein, i=0,1,2 ... 128;
Step S4 draws the PWM fitting result, promptly according to the described KV of step S2
MF (t-kT) can obtain
Dutycycle, promptly obtained the PWM fitting result of arbitrary function, wherein, g (n) is a feedback signal.
See also Fig. 2, there is shown the PWM device that the present invention's two a kind of arbitrary function waveform takes place, come the match waveform by a DSP platform, it comprises successively functional unit 1 is set, transforms functional unit 2, computing function value device 3 and output unit 4 of linking to each other, wherein:
Transform functional unit 2, be used for carrying out amplitude mark 1 with the function that functional unit is provided with is set, establishing maximum amplitude is V
M, arbitrary function is converted into KV
MF (t-kT), wherein,
Computing function value device 3 is used for functional value f (n Δ the t-kT)=g (n) according to 125 of exponent number formula calculating, and wherein, the exponent number formula launches for the exponent number that function f (t-kT) is carried out in 256 dot cycles, for:
Wherein, i=0,1,2 ... 128;
Below embodiment has been described in detail the present invention in conjunction with the accompanying drawings, and those skilled in the art can make the many variations example to the present invention according to the above description.Thereby some details among the embodiment should not constitute limitation of the invention, and the scope that the present invention will define with appended claims is as protection scope of the present invention.
Claims (2)
1. the PWM algorithm that arbitrary function waveform takes place comes the match waveform by a DSP platform, it is characterized in that it may further comprise the steps:
Step S1 is provided with function, is T to the cycle that will produce promptly, and amplitude is that the arbitrary function of Vm is set to Vmf (t-kT);
Step S2 transforms function, and the function that is about to be provided with among the step S1 carries out amplitude mark 1, and establishing maximum amplitude is V
M, arbitrary function is converted into KV
MF (t-kT), wherein,
Step S3, the computing function value is promptly calculated functional value f (n Δ t-kT)=g (n) of 125 according to the exponent number formula, and wherein, described exponent number formula launches for the exponent number that function f (t-kT) is carried out in 256 dot cycles, for:
Wherein, i=0,1,2 ... 128;
Step S4 draws the PWM fitting result, promptly according to the described KV of step S2
MF (t-kT) can obtain
Dutycycle, promptly obtained the PWM fitting result of arbitrary function, wherein, g (n) is a feedback signal.
2. the PWM device that takes place of an arbitrary function waveform comes the match waveform by a DSP platform, it is characterized in that, it comprises functional unit is set, transforms functional unit, computing function value device and output unit of linking to each other successively, wherein:
The described functional unit that is provided with, be used for to the cycle that will produce be T, amplitude is that the arbitrary function of Vm is set to Vmf (t-kT);
Described conversion functional unit is used for carrying out amplitude mark 1 with the function that functional unit is provided with is set, and establishing maximum amplitude is V
M, arbitrary function is converted into KV
MF (t-kT), wherein,
Described computing function value device is used for functional value f (n Δ the t-kT)=g (n) according to 125 of exponent number formula calculating, and wherein, described exponent number formula launches for the exponent number that function f (t-kT) is carried out in 256 dot cycles, for:
Wherein, i=0,1,2 ... 128;
Output unit is used to export the PWM fitting result, promptly according to transforming the KV described in the functional unit
MF (t-kT) can obtain
Dutycycle, promptly obtained the PWM fitting result of arbitrary function, wherein, g (n) is a feedback signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100354161A CN101551691A (en) | 2008-03-31 | 2008-03-31 | PWM arithmetic and device for arbitrary function waveform generation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100354161A CN101551691A (en) | 2008-03-31 | 2008-03-31 | PWM arithmetic and device for arbitrary function waveform generation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101551691A true CN101551691A (en) | 2009-10-07 |
Family
ID=41155959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008100354161A Pending CN101551691A (en) | 2008-03-31 | 2008-03-31 | PWM arithmetic and device for arbitrary function waveform generation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101551691A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103257270A (en) * | 2013-04-28 | 2013-08-21 | 北京交通大学 | Fourier-series-based method for analyzing sawtooth carrier wave chaos SPWM spectrums |
CN105913809A (en) * | 2016-05-30 | 2016-08-31 | 武汉精测电子技术股份有限公司 | Device and method for adjusting backlight brightness of liquid crystal display module |
-
2008
- 2008-03-31 CN CNA2008100354161A patent/CN101551691A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103257270A (en) * | 2013-04-28 | 2013-08-21 | 北京交通大学 | Fourier-series-based method for analyzing sawtooth carrier wave chaos SPWM spectrums |
CN103257270B (en) * | 2013-04-28 | 2016-02-17 | 北京交通大学 | Based on the sawtooth carrier wave chaos SPWM frequency spectrum analysis method of Fourier series |
CN105913809A (en) * | 2016-05-30 | 2016-08-31 | 武汉精测电子技术股份有限公司 | Device and method for adjusting backlight brightness of liquid crystal display module |
CN105913809B (en) * | 2016-05-30 | 2018-08-28 | 武汉精测电子集团股份有限公司 | A kind of device and method of adjustment liquid crystal module group backlight brightness |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102841251B (en) | Electric car charging station harmonic wave detection method in microgrid | |
CN102401857B (en) | Frequency measuring equipment and electronic equipment | |
CN106014857A (en) | Individual pitch control method and device for inhibiting loading of wind generation set | |
CN104022782A (en) | Digital type multichannel analog signal generating method | |
CN103909912B (en) | Hydraulic braking wheel cylinder pressure method of estimation based on the dynamo-electric theory of similarity and device | |
CN101551691A (en) | PWM arithmetic and device for arbitrary function waveform generation | |
CN110429590B (en) | Harmonic simulation control method suitable for power grid simulation power supply | |
CN107317321A (en) | The method for analyzing stability of DC DC converter parallel systems | |
CN202710718U (en) | Circulation transmission point measurement parameter output device based on PWM | |
CN102231809A (en) | Electronic multiplying charge coupled device (CCD) sine wave driving method | |
CN112255457B (en) | Phase angle difference measuring method suitable for automatic quasi-synchronization device | |
CN101393699B (en) | Wind turbine simulator of doubly salient motor and controlling method thereof | |
CN111162705B (en) | Permanent magnet synchronous motor control system, method, controller and application thereof | |
CN105633964A (en) | APF current control method and system | |
CN109901382B (en) | Regular sampling PWM (pulse-Width modulation) optimization method of digital control system | |
CN103257270A (en) | Fourier-series-based method for analyzing sawtooth carrier wave chaos SPWM spectrums | |
CN103873018A (en) | Method for generating harmonic signal and harmonic signal generator | |
CN106324342A (en) | Harmonic wave detecting method based on table look-up | |
CN112508333B (en) | Estimation system and method for biomass energy utilization greenhouse effect | |
CN104718704A (en) | Converter | |
CN102545549A (en) | Space voltage vector pulse width modulation method | |
CN101482890A (en) | Circuit simulation apparatus and method | |
CN102609576A (en) | Power system transient stability simulating method based on estimation-correction numerical integration | |
CN110763914A (en) | PWM harmonic effective value calculation method | |
CN102739200B (en) | Signal generator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20091007 |