CN103607185B - Produce the device and method of pulse-width signal - Google Patents
Produce the device and method of pulse-width signal Download PDFInfo
- Publication number
- CN103607185B CN103607185B CN201310627463.6A CN201310627463A CN103607185B CN 103607185 B CN103607185 B CN 103607185B CN 201310627463 A CN201310627463 A CN 201310627463A CN 103607185 B CN103607185 B CN 103607185B
- Authority
- CN
- China
- Prior art keywords
- signal
- digital signal
- pulse
- digital
- period
- 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
Links
Abstract
The invention provides a kind of device and method producing pulse-width signal, the device of described generation pulse-width signal comprises carrier wave generation module and modulating wave generation module, and the modulating wave that the carrier wave generated by more described carrier wave generation module and described modulating wave generation module are generated is to produce described pulse-width signal.In the device and method of generation pulse-width signal provided by the invention; characterize the digital signal of duty cycle signals and characterize the digital signal adopting angle signal to obtain as index search; these two signals no longer make digital multiplication; but change sawtooth wave period by duty cycle signals; so just make modulating wave not by the impact of change in duty cycle, even if at N2+N3 & gt; N1, and when duty ratio is very little, also can produce the modulating wave that resolution is higher, waveform is level and smooth.
Description
Technical field
The present invention relates to circuit design field, particularly relate to a kind of device and method producing pulse-width signal.
Background technology
Compared by carrier wave and modulating wave and can obtain PWM (PulseWidthModulation, pulse-width modulation) signal, general carrier wave adopts sawtooth waveforms, and modulating wave arranges according to actual needs.When practical application, first sawtooth waveforms and modulating wave are become digital signal by analog-to-digital conversion, then compare both corresponding digital signal to produce pwm signal.Fig. 1 gives the circuit diagram of the pwm signal generation device representing traditional, as shown in Figure 1, pwm signal is compared by carrier wave and modulating wave to obtain, the production process of carrier wave is: the cycle is the sawtooth waveforms of T1 is an analog signal, is converted thereof into that one-period is still T1, level number is 2 by N1 amount register
n1the digital signal of-1, this digital signal is carrier wave, the production process of modulating wave is: duty cycle signals is an analog voltage signal, by the digital signal of the N2 amount register N2 that converts thereof into that to be a units be, angle signal is also an analog signal, this angle signal as an index by N3 figure place look-up table search one actual arrange time waveform, this actual setting is for half sine wave in FIG, namely angle signal searches half sine wave as an index by N3 figure place look-up table, the digital signal that a units is N3 can be obtained, then the digital signal of this units to be the digital signal of N2 and this units be N3 does digital multiplication, this digital multiplication result is stored by a N1 amount register again, namely the digital signal that a units is N1 is obtained, this digital signal is modulating wave (as can be seen from Figure 1, modulating wave be exactly in fact original be the analog signal of half sine wave, be converted to a staircase waveform being similar to half sine-wave shape and be digital signal.Exactly each point on sine wave is infinitely subdivided into often a bit of level signal).Said process goes round and begins again, and just can obtain carrier wave and the modulating wave of the one-period shown in Fig. 1.Because modulating wave is obtained by the digital signal and the actual product arranging the digital signal of waveform signal of sign that characterize duty cycle signals, work as N2+N3>N1, if when duty cycle signals gets maximum, the number of significant digit of modulating wave is N1; If duty cycle signals gets a half of maximum, the number of significant digit of modulating wave is N1-1; If when duty cycle signals gets minimum value, the number of significant digit of modulating wave can be very little, then the resolution of modulating wave is very little, and waveform is unsmooth, causes pwm signal inaccuracy.
Summary of the invention
The invention provides a kind of device and method producing pulse-width signal, work as N2+N3>N1 to solve, and when duty cycle signals gets smaller value, the resolution of modulating wave is very little, and waveform is unsmooth, causes the coarse problem of pwm signal.
In order to solve the problems of the technologies described above, the invention provides a kind of device producing pulse-width signal, comprise carrier wave generation module and modulating wave generation module, the modulating wave that the carrier wave generated by more described carrier wave generation module and described modulating wave generation module are generated is to produce described pulse-width signal, described carrier wave generation module comprises first the first amount register, second number register, digital multiplier and carrier generator
First the first amount register, its input receiving cycle is the sawtooth waveforms of period 1, and by its output, the first digital signal obtained after conversion is sent to described carrier generator;
Second number register, its input receives duty cycle signals, and by its output, the second digital signal obtained after conversion is sent to described digital multiplier;
Digital multiplier, the period 1 signal that its input receives described second digital signal and produced by the described period 1, obtain signal second round after digital multiplication is done to described second digital signal and described period 1 signal, and by its output, signal described second round is sent to described carrier generator;
Carrier generator, its input receive described first digital signal, period 1 signal and second round signal, and the carrier wave by obtaining after its output output processing;
Described modulating wave generation module comprises the 3rd figure place look-up table and second the first amount register,
3rd figure place look-up table, its input receiving angle signal, using described angle signal as index, searched by described 3rd figure place look-up table and obtain an actual waveform, and by its output, described actual waveform is converted to three digital signal and sends to described second the first amount register;
Second the first amount register, its input receives described three digital signal, and the modulating wave obtained after exporting conversion by its output.
Further, described first digital signal is a cycle is T1, level number is 2
n1the digital signal of-1, wherein, T1 is the described period 1, first figure place of N1 set by described first the first amount register.
Further, the digital signal of described second digital signal to be one digit number be N2, wherein, second figure place of N2 set by described second number register.
Further, described carrier wave is a cycle is T1, level number is 2
n1the digital signal of-1, wherein, 2
n1the time that-1 level is corresponding is T2, T1 is the described period 1, and T2 is the second round that described second round, signal characterized, first figure place of N1 set by described first the first amount register.
Further, described actual waveform is half sine wave.
Further, the digital signal of described three digital signal to be one digit number be N3, wherein, three figure place of N3 set by described 3rd figure place look-up table.
Further, the digital signal of described modulating wave to be one digit number be N1, wherein, first figure place of N1 set by described second the first amount register.
Further, the device of described generation pulse-width signal also comprises comparator, and its in-phase input end accesses described carrier wave, and its inverting input accesses described modulating wave, and its output exports described pulse-width signal.
The present invention also provides a kind of method producing pulse-width signal, and by comparing carrier wave and modulating wave to produce described pulse-width signal, the production method of described carrier wave comprises:
Step 1-1: duty cycle signals is converted to the second digital signal by second number register;
Step 1-2: by digital multiplier, with the period 1 signal produced by the period 1, digital multiplication is done to described second digital signal and obtain signal second round;
Step 1-3: be simultaneously that the sawtooth waveforms of described period 1 is converted to the first digital signal by the cycle by the first amount register;
Step 1-4: by carrier generator receive simultaneously described period 1 signal, second round signal and the first digital signal generate described carrier wave;
The production method of described modulating wave comprises:
Step 2-1: using angle signal as index, is searched by the 3rd figure place look-up table and obtains an actual waveform;
Step 2-2: described actual waveform is converted to described modulating wave by the first amount register.
Compared with prior art, the present invention has following beneficial effect:
In the device and method of generation pulse-width signal provided by the invention, characterize the digital signal of duty cycle signals and characterize the digital signal adopting angle signal to obtain as index search, these two signals no longer make digital multiplication, but change sawtooth wave period by duty cycle signals, so just make modulating wave not by the impact of change in duty cycle, even if at N2+N3>N1, and when duty ratio is very little, the modulating wave that resolution is higher, waveform is level and smooth also can be produced; Meanwhile, because signal second round can change, namely carrier wave is frequency conversion, and in prior art, carrier wave determines frequency, and the fixed pulse-width signal produced that frequently makes has 2 at most
n1-1 value, and after frequency conversion, the value of the pulse-width modulation of generation is greater than 2
n1-1 value.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the invention will be further described:
Fig. 1 is the structural representation of the device producing pulse-width signal in prior art;
The structural representation of the device of the generation pulse-width signal that Fig. 2 provides for the embodiment of the present invention;
The oscillogram of device when the period 1 equals second round of the generation pulse-width signal that Fig. 3 provides for the embodiment of the present invention;
The oscillogram of device when second round is less than the period 1 of the generation pulse-width signal that Fig. 4 provides for the embodiment of the present invention;
The flow chart of the method for the generation pulse-width signal that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Be described in further detail below in conjunction with the device and method of the drawings and specific embodiments to the generation pulse-width signal that the present invention proposes.According to the following describes and claims, advantages and features of the invention will be clearer.It should be noted that, accompanying drawing all adopts the form that simplifies very much and all uses non-ratio accurately, only in order to object that is convenient, the aid illustration embodiment of the present invention lucidly.
Core concept of the present invention is, a kind of device and method producing pulse-width signal is provided, the device of described generation pulse-width signal comprises carrier wave generation module and modulating wave generation module, and the modulating wave that the carrier wave generated by more described carrier wave generation module and described modulating wave generation module are generated is to produce described pulse-width signal; Described carrier wave generation module comprises first the first amount register, second number register, digital multiplier and carrier generator; Described modulating wave generation module comprises the 3rd figure place look-up table and second the first amount register.In the device and method of generation pulse-width signal provided by the invention, characterize the digital signal of duty cycle signals and characterize the digital signal adopting angle signal to obtain as index search, these two signals no longer make digital multiplication, but change sawtooth wave period by duty cycle signals, so just make modulating wave not by the impact of change in duty cycle, even if at N2+N3>N1, and when duty ratio is very little, the modulating wave that resolution is higher, waveform is level and smooth also can be produced; Meanwhile, because signal second round can change, namely carrier wave is frequency conversion, and in prior art, carrier wave determines frequency, and the fixed pulse-width signal produced that frequently makes has 2 at most
n1-1 value, and after frequency conversion, the value of the pulse-width modulation of generation is greater than 2
n1-1 value.
Please refer to Fig. 2 to Fig. 5, the structural representation of the device of the generation pulse-width signal that Fig. 2 provides for the embodiment of the present invention; The oscillogram of device when the period 1 equals second round of the generation pulse-width signal that Fig. 3 provides for the embodiment of the present invention; The oscillogram of device when second round is less than the period 1 of the generation pulse-width signal that Fig. 4 provides for the embodiment of the present invention; The flow chart of the method for the generation pulse-width signal that Fig. 5 provides for the embodiment of the present invention.
As shown in Figure 2, the embodiment of the present invention provides a kind of device producing pulse-width signal, comprise carrier wave generation module and modulating wave generation module, the modulating wave that the carrier wave generated by more described carrier wave generation module and described modulating wave generation module are generated is to produce described pulse-width signal, described carrier wave generation module comprises first the first amount register, second number register, digital multiplier and carrier generator
First the first amount register, its input receiving cycle is the sawtooth waveforms of period 1, and by its output, the first digital signal obtained after conversion is sent to described carrier generator;
Second number register, its input receives duty cycle signals, and by its output, the second digital signal obtained after conversion is sent to described digital multiplier;
Digital multiplier, the period 1 signal that its input receives described second digital signal and produced by described period 1 T1, obtain signal second round after digital multiplication is done to described second digital signal and described period 1 signal, and by its output, signal described second round is sent to described carrier generator;
Carrier generator, its input receive described first digital signal, period 1 signal and second round signal, and the carrier wave by obtaining after its output output processing;
Described modulating wave generation module comprises the 3rd figure place look-up table and second the first amount register,
3rd figure place look-up table, its input receiving angle signal, using described angle signal as index, searched by described 3rd figure place look-up table and obtain an actual waveform, and by its output, described actual waveform is converted to three digital signal and sends to described second the first amount register;
Second the first amount register, its input receives described three digital signal, and the modulating wave obtained after exporting conversion by its output.
Further, described first digital signal is a cycle is T1, level number is 2
n1the digital signal of-1, wherein, T1 is the described period 1, first figure place of N1 set by described first the first amount register.
Further, the digital signal of described second digital signal to be one digit number be N2, wherein, second figure place of N2 set by described second number register.
Further, described carrier wave is a cycle is T1, level number is 2
n1the digital signal of-1, wherein, 2
n1the time that-1 level is corresponding is T2, T1 is the described period 1, and T2 is the second round that described second round, signal characterized, first figure place of N1 set by described first the first amount register.
Further, described actual waveform is half sine wave.
Further, the digital signal of described three digital signal to be one digit number be N3, wherein, three figure place of N3 set by described 3rd figure place look-up table.
Further, the digital signal of described modulating wave to be one digit number be N1, wherein, first figure place of N1 set by described second the first amount register.
Further, the device of described generation pulse-width signal also comprises comparator, and its in-phase input end accesses described carrier wave, and its inverting input accesses described modulating wave, and its output exports described pulse-width modulation (PWM) signal.
Fig. 3 gives and works as N2+N3>N1 in the present embodiment, and the waveform of carrier wave, modulating wave and pulse-width signal when period 1 T1 equals T2 second round.When period 1 T1 equals T2 second round, carry a wave period be T1, level number is 2
n1-1, modulation wave period is T1, and the cycle of pulse-width signal is T1, and equals T2/T1 due to duty ratio, so duty ratio equals 1 and is maximum, the pulse-width signal now drawn is the most accurate.
Fig. 4 gives and works as N2+N3>N1 in the present embodiment, and the waveform of carrier wave, modulating wave and pulse-width signal when T2 second round is less than period 1 T1.When second round, T2 was less than period 1 T1, carry a wave period be T1, level number is 2
n1-1 and time corresponding to level be T2, modulation wave period is T1, and the cycle of pulse-width signal is T1, and duty ratio is close to minimum value, and now pwm signal is also very accurate.
As shown in Figure 5, the embodiment of the present invention also provides a kind of method producing pulse-width signal, and by comparing carrier wave and modulating wave to produce described pulse-width signal, the production method of described carrier wave comprises:
Step 1-1: duty cycle signals is converted to the second digital signal by second number register;
Step 1-2: by digital multiplier, with the period 1 signal produced by period 1 T1, digital multiplication is done to described second digital signal and obtain signal second round;
Step 1-3: the sawtooth waveforms being simultaneously described period 1 T1 by the cycle by the first amount register is converted to the first digital signal;
Step 1-4: by carrier generator receive simultaneously described period 1 signal, second round signal and the first digital signal generate described carrier wave;
The production method of described modulating wave comprises:
Step 2-1: using angle signal as index, is searched by the 3rd figure place look-up table and obtains an actual waveform;
Step 2-2: described actual waveform is converted to described modulating wave by the first amount register.
In sum, in the device and method of the generation pulse-width signal that the embodiment of the present invention provides, characterize the digital signal of duty cycle signals and characterize the digital signal adopting angle signal to obtain as index search, these two signals no longer make digital multiplication, but change sawtooth wave period by duty cycle signals, so just make modulating wave not by the impact of change in duty cycle, even if at N2+N3>N1, and duty ratio very little when, also resolution can be produced higher, the modulating wave that waveform is level and smooth, namely N1 need not be considered, relation between N2 and N3, and when any duty ratio, the pulse-width signal of gained is all very accurate, meanwhile, because signal second round can change, namely carrier wave is frequency conversion, and in prior art, carrier wave determines frequency, and the fixed pulse-width signal produced that frequently makes has 2 at most
n1-1 value, and after frequency conversion, the value of the pulse-width modulation of generation is greater than 2
n1-1 value.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if of the present invention these change and modification belongs within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (9)
1. one kind produces the device of pulse-width signal, comprise carrier wave generation module and modulating wave generation module, the modulating wave that the carrier wave generated by more described carrier wave generation module and described modulating wave generation module are generated is to produce described pulse-width signal, it is characterized in that, described carrier wave generation module comprises first the first amount register, second number register, digital multiplier and carrier generator
First the first amount register, its input receiving cycle is the sawtooth waveforms of period 1, and by its output, the first digital signal obtained after conversion is sent to described carrier generator;
Second number register, its input receives duty cycle signals, and by its output, the second digital signal obtained after conversion is sent to described digital multiplier;
Digital multiplier, the period 1 signal that its input receives described second digital signal and produced by the described period 1, obtain signal second round after digital multiplication is done to described second digital signal and described period 1 signal, and by its output, signal described second round is sent to described carrier generator;
Carrier generator, its input receive described first digital signal, period 1 signal and second round signal, and the carrier wave by obtaining after its output output processing;
Described modulating wave generation module comprises the 3rd figure place look-up table and second the first amount register,
3rd figure place look-up table, its input receiving angle signal, using described angle signal as index, searched by described 3rd figure place look-up table and obtain an actual waveform, and by its output, described actual waveform is converted to three digital signal and sends to described second the first amount register;
Second the first amount register, its input receives described three digital signal, and the modulating wave obtained after exporting conversion by its output.
2. the device of generation pulse-width signal according to claim 1, is characterized in that, described first digital signal is a cycle is T1, level number is 2
n1the digital signal of-1, wherein, T1 is the described period 1, first figure place of N1 set by described first the first amount register.
3. the device of generation pulse-width signal according to claim 1, is characterized in that, the digital signal of described second digital signal to be one digit number be N2, wherein, and second figure place of N2 set by described second number register.
4. the device of generation pulse-width signal according to claim 1, is characterized in that, described carrier wave is a cycle is T1, level number is 2
n1the digital signal of-1, wherein, 2
n1the time that-1 level is corresponding is T2, T1 is the described period 1, and T2 is the second round that described second round, signal characterized, first figure place of N1 set by described first the first amount register.
5. the device of generation pulse-width signal according to claim 1, is characterized in that, described actual waveform is half sine wave.
6. the device of generation pulse-width signal according to claim 1, is characterized in that, the digital signal of described three digital signal to be one digit number be N3, wherein, and three figure place of N3 set by described 3rd figure place look-up table.
7. the device of generation pulse-width signal according to claim 1, is characterized in that, the digital signal of described modulating wave to be one digit number be N1, wherein, and first figure place of N1 set by described second the first amount register.
8. the device of the generation pulse-width signal according to any one of claim 1-7, it is characterized in that, also comprise comparator, its in-phase input end accesses described carrier wave, its inverting input accesses described modulating wave, and its output exports described pulse-width signal.
9. produce a method for pulse-width signal, by comparing carrier wave and modulating wave to produce described pulse-width signal, it is characterized in that, the production method of described carrier wave comprises:
Step 1-1: duty cycle signals is converted to the second digital signal by second number register;
Step 1-2: by digital multiplier, with the period 1 signal produced by the period 1, digital multiplication is done to described second digital signal and obtain signal second round;
Step 1-3: be simultaneously that the sawtooth waveforms of described period 1 is converted to the first digital signal by the cycle by the first amount register;
Step 1-4: by carrier generator receive simultaneously described period 1 signal, second round signal and the first digital signal generate described carrier wave;
The production method of described modulating wave comprises:
Step 2-1: using angle signal as index, is searched by the 3rd figure place look-up table and obtains an actual waveform;
Step 2-2: described actual waveform is converted to described modulating wave by the first amount register.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310627463.6A CN103607185B (en) | 2013-11-27 | 2013-11-27 | Produce the device and method of pulse-width signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310627463.6A CN103607185B (en) | 2013-11-27 | 2013-11-27 | Produce the device and method of pulse-width signal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103607185A CN103607185A (en) | 2014-02-26 |
CN103607185B true CN103607185B (en) | 2016-03-30 |
Family
ID=50125389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310627463.6A Active CN103607185B (en) | 2013-11-27 | 2013-11-27 | Produce the device and method of pulse-width signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103607185B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107528570A (en) * | 2017-10-17 | 2017-12-29 | 国网江苏省电力公司南通供电公司 | A kind of digital PWM modulator approach of frequency converted carrier |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499791A (en) * | 2008-01-29 | 2009-08-05 | 力博特公司 | PWM control method |
CN101527548A (en) * | 2008-03-05 | 2009-09-09 | 立锜科技股份有限公司 | Circuit and method for generating PWM control signals by class D amplifier |
WO2012132221A1 (en) * | 2011-03-28 | 2012-10-04 | ルネサスエレクトロニクス株式会社 | Pwm signal generating circuit and processor system |
-
2013
- 2013-11-27 CN CN201310627463.6A patent/CN103607185B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499791A (en) * | 2008-01-29 | 2009-08-05 | 力博特公司 | PWM control method |
CN101527548A (en) * | 2008-03-05 | 2009-09-09 | 立锜科技股份有限公司 | Circuit and method for generating PWM control signals by class D amplifier |
WO2012132221A1 (en) * | 2011-03-28 | 2012-10-04 | ルネサスエレクトロニクス株式会社 | Pwm signal generating circuit and processor system |
Also Published As
Publication number | Publication date |
---|---|
CN103607185A (en) | 2014-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104734370B (en) | Power supply module of induction type power supply and voltage measuring method thereof | |
CN100568153C (en) | But a kind of synchronous DDS device of binary channels phase-modulation and amplitude-modulation | |
CN105790738B (en) | Pulse Width Modulation Signal Generating Circuit and Method | |
CN102723931B (en) | The pulse wave generation method that a kind of wide dynamic high precision edge time is adjustable | |
CN203519678U (en) | High-precision three-phrase AC simulation source having zero passage synchronization PPS output | |
CN103944537A (en) | Variable clock DDS arbitrary waveform signal source output frequency control method and realization device | |
CN103607185B (en) | Produce the device and method of pulse-width signal | |
CN102055438A (en) | High-speed square wave generating device and method | |
CN101729071B (en) | High speed sine and cosine subdividing device | |
CN103368538A (en) | Switching frequency range-adjustable digital PWM (pulse-width modulation) device and method | |
CN109901382A (en) | A kind of rule sampling PWM optimization method of numerical control system | |
CN109104171A (en) | A kind of PWM waveform generator | |
CN102707106B (en) | Electric power subharmonic digital signal source | |
CN104502688A (en) | DC (direct current) variable low-frequency envelope digital detector | |
RU101291U1 (en) | FUNCTIONAL GENERATOR | |
CN103888105A (en) | Method and system for generating pulse width wave digits with continuously-adjusted wide frequency | |
CN103916143B (en) | The non-contour step signal processing method of very low frequency long-wave transmitter and device | |
CN103873025A (en) | Triangle wave signal generation method and triangle wave generator | |
CN106130512B (en) | Sawtooth wave generating circuit | |
CN102723857B (en) | An electric circuit for outputting multipath high precision driving signal | |
CN201772887U (en) | High-speed sine and cosine subdivision device | |
CN103457584B (en) | Sinusoidal pulse width modulation normalization address generator | |
CN104753530A (en) | Phase correction and nonuniform phase amplitude conversion method and device in DDS | |
CN103940462A (en) | Sensor linear correction circuit outputting in electric signal mode | |
CN103746707A (en) | Parallel and serial data converting circuit based on FPGA |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |