CN104202023A - Unipolarity sinusoidal pulse width modulation (SPWM) pulse signal achieving method based on field programmable gate array (FPGA) - Google Patents

Unipolarity sinusoidal pulse width modulation (SPWM) pulse signal achieving method based on field programmable gate array (FPGA) Download PDF

Info

Publication number
CN104202023A
CN104202023A CN201410413772.8A CN201410413772A CN104202023A CN 104202023 A CN104202023 A CN 104202023A CN 201410413772 A CN201410413772 A CN 201410413772A CN 104202023 A CN104202023 A CN 104202023A
Authority
CN
China
Prior art keywords
signal
signals
triangular
control module
carrier
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.)
Granted
Application number
CN201410413772.8A
Other languages
Chinese (zh)
Other versions
CN104202023B (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.)
Shanghai University of Electric Power
University of Shanghai for Science and Technology
Original Assignee
Shanghai University of Electric Power
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 Shanghai University of Electric Power filed Critical Shanghai University of Electric Power
Priority to CN201410413772.8A priority Critical patent/CN104202023B/en
Publication of CN104202023A publication Critical patent/CN104202023A/en
Application granted granted Critical
Publication of CN104202023B publication Critical patent/CN104202023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Inverter Devices (AREA)
  • Amplifiers (AREA)

Abstract

The invention relates to a unipolarity sinusoidal pulse width modulation (SPWM) pulse signal achieving method based on a field programmable gate array (FPGA). A system clock control module provides a work clock for a triangle carrier signal generator and a sinusoidal modulation wave signal generator. The sinusoidal modulation wave signal generator outputs and generates sinusoidal wave signals. The system clock control module adjusts the frequency of the work clock and controls the frequency of the sinusoidal wave signals. Anode triangle carrier and cathode triangle carrier generated by the triangle carrier signal generator utilize sinusoidal wave signals as gating signals, and finally unipolarity triangle carrier signals are generated and output. The generated unipolarity carrier triangle carrier signals and the sinusoidal wave signals are utilized as input signals of a comparison negation module, the comparison negation module outputs the signals and enters a dead zone delaying control module, and the dead zone delaying control module outputs the SPWM pulse signals. The SPWM pulse signals generated by the method have the advantages of high accuracy, high speed, high stability, online programmable algorithm modification and the like.

Description

A kind of Unipolar SPWM pulse signal implementation method based on FPGA
Technical field
The present invention relates to a kind of control technology of single-phase full bridge formula inverter circuit, particularly a kind of Unipolar SPWM pulse signal implementation method based on FPGA.
Background technology
SPWM(Using Sinusoidal Pulse Width Modulation) modulation be a kind of PWM control technology of comparative maturity; It is widely used in motor, photovoltaic inversion dispatch control system.The mode that produces at present SPWM pulse signal has a lot; For example utilize analog circuit to carrier wave and modulating wave comparison, obtain SPWM signal; Utilize special SPWM generator integrated circuit, as SLE4520, SA4828 etc. produce SPWM signal; Utilize TMS2812, the DSP such as 28335 to generate SPWM ripple.But these methods all have certain limitation.Utilize cost and the complexity of special SPWM generator integrated circuit all higher, and flexibility is very low; And utilize DSP can only generate 6 tunnels or 12 road PWM waveforms.
Along with the extensive use of digital integration circuit, FPGA(field programmable gate array) become the first-selection of novel digital integrated chip exploitation.FPGA has that the construction cycle is short, power consumption is low, integrated level advantages of higher.The appearance of FPGA has overcome that special asic chip is subject to that clock affects and the shortcoming such as the construction cycle is long, is widely used in industrial each field.
Summary of the invention
The SPWM Using Sinusoidal Pulse Width Modulation method in present PWM control technology that the present invention be directed to has circumscribed problem, has proposed a kind of Unipolar SPWM pulse signal implementation method based on FPGA, can realize high accuracy, high stability pulse signal.
Technical scheme of the present invention is: the Unipolar SPWM pulse signal implementation method based on FPGA, system clock control module provides work clock to triangular carrier signal generator and Sine Modulated wave generator, the output of Sine Modulated wave generator generates sine wave signal, system clock control module regulates the frequency of work clock, controls the frequency of sine wave signal; The both positive and negative polarity two-way triangular carrier that triangular carrier signal generator generates, using sine wave signal as gating signal, finally generates the triangular signal of output single-pole; By the unipolarity carrier wave triangular signal generating and two input signals of modulated sinusoid signal negate module as a comparison, relatively the output of negate module enters dead band time delay control module, dead band time delay control module output SPWM pulse signal.
The generation of described sine wave signal or two triangular carriers of both positive and negative polarity:
Under MATLAB software platform, programming produces the data list file MIF file of sine wave signal or both positive and negative polarity triangular carrier, MIF file is stored in FPGA internal storage space ROM, provide work clock by system clock control module for ROM core module, ROM core will read MIF file data according to work clock order and generate sine wave signal or both positive and negative polarity triangular carrier.
Described by the unipolarity carrier wave triangular signal generating and two input signals of modulated sinusoid signal negate module as a comparison, in the time that carrier wave is more than or equal to modulation wave signal, output high level; In the time that carrier wave is less than modulating wave, output low level, then through relatively processing and can generate a road SPWM1 signal, by the SPWM1 signal negate generating, can obtain another road SPWM2 signal, SPWM1 and SPWM2 signal are the complementary pulse signals without dead band time delay.
Beneficial effect of the present invention is: the present invention is based on the Unipolar SPWM pulse signal implementation method of FPGA, in view of the many merits of FPGA; The SPWM pulse signal producing based on FPGA, has precision high, and speed is fast, and stability is strong, can revise the advantages such as algorithm by online programming.The present invention can provide for electronic power inversion circuit the control wave of high accuracy, high stability.
Brief description of the drawings
Fig. 1 is the Unipolar SPWM generator architecture block diagram that the present invention is based on FPGA;
Fig. 2 is the triangular signal generator based module principle structure chart of unipolarity that the present invention is based on FPGA;
Fig. 3 is the Unipolar SPWM generator schematic diagram that the present invention is based on FPGA;
Fig. 4 is the dead band delay time structure chart based on FPGA of the present invention.
Embodiment
Adopt the full digital algorithm based on FPGA to realize Unipolar SPWM signal generator system.The structured flowchart of system as shown in Figure 1, system is mainly made up of system clock control module, unipolarity triangular carrier signal generator, Sine Modulated wave generator, comparison negate module, dead band time delay control module.
Under MATLAB software platform, programming produces the data list file (.MIF file) of sine wave signal.MIF file is stored in to the free IP cores module of FPGA--in ROM (free IP cores module be Quartus develop software be provided freely to developer use, there is very high stability).Provide work clock by system clock control module for ROM core module, ROM core will read MIF file data according to work clock order and generate sine wave signal, and can, by regulating the frequency of work clock, control the frequency of sine wave signal.
In like manner, under MATLAB software platform, programming produces the data list file (.MIF file) of the two-way triangular signal of positive polarity and negative polarity.MIF file is stored in respectively to the free IP cores of FPGA--in ROM.Provide work clock by system clock control module for ROM core module, ROM core will read MIF file data according to work clock order, generate the two-way triangular signal of positive polarity and negative polarity.
Gating signal using sinusoidal signal as selector, uses two paths of data selector (MUX) to select the polarity of two-way triangular signal.When sine wave signal is timing, select positive polarity triangular signal; When sine wave is when negative, select negative polarity triangular signal.Can generate so unipolar triangular signal, and can, by regulating the frequency of work clock, control the frequency of triangular signal.Three grades of wave generator module principle structure charts of unipolarity as shown in Figure 2.
Unipolar SPWM generator schematic diagram based on FPGA as shown in Figure 3, by unipolarity carrier wave (triangular wave) signal generating and the input signal of modulating wave (sine wave) signal negate module as a comparison.In the time that carrier wave is more than or equal to modulation wave signal, output high level; In the time that carrier wave is less than modulating wave, output low level.Through relatively processing and can generate a road SPWM signal, be designated as SPWM1 like this.By the SPWM1 signal negate generating, can obtain another road SPWM signal, be designated as SPWM2.SPWM1 and SPWM2 signal are the complementary pulse signals without dead band time delay.
Two-way complementation SPWM signal by generating: SPWM1 and SPWM2 signal, as the input of dead band time delay control module.Through dead band delay algorithm computing, output is with the two-way SPWM pulse signal of dead band delay time.
In this embodiment, the power frequency sine wave signal that modulation signal is 50Hz, the triangular signal that carrier signal is 400Hz.The modulation ratio of sinusoidal modulation signal and unipolarity triangular carrier signal is 0.8, frequency ratio is 1/8.What generate is the two-way SPWM signal with dead band time delay.
Utilize MATLAB instrument, generate minimum value and maximum and be respectively the data file of 0 and 127 negative polarity triangular signal; It is MIF file.Profit uses the same method and generates minimum value and maximum and be respectively the data file of 128 and 255 positive polarity triangular signal.The data value MIF file of sine wave signal can utilize MATLAB instrument to generate equally, and what this embodiment generated is that minimum value and maximum are respectively 26 and 230 sinusoidal modulation wave signal (taking 128 as horizontal reference 0 point).Modulation ratio is now:
(230-26)/255=0.8。
Tables of data (MIF) file of the sine wave signal generating is stored in to FPGA internal storage space---in ROM.The data list file of the triangular signal of positive polarity and negative polarity is also stored in ROM, select the polarity of triangular signal by data selector.
180 ° of the triangular signal phase phasic differences of positive polarity and negative polarity.In the time that sinusoidal modulation signal is greater than 128, select positive polarity triangular signal; In the time that sinusoidal modulation signal is less than 128, select negative polarity triangular signal.The triangular signal that this method generates has the polarity identical with sine wave signal (128 is horizontal reference 0 point); Be unipolarity modulation system.
The clock that the external crystal-controlled oscillation clock 50MHz of FPGA obtains after 1024 frequency divisions is sinusoidal modulation wave control clock, according to the sinusoidal signal value in the Clockreading ROM after frequency division, the sine wave signal that output frequency is 50Hz.The clock that external crystal-controlled oscillation clock 50MHz obtains after 128 frequency divisions is simultaneously triangular signal control clock, according to the triangular signal value in the Clockreading ROM after frequency division, the triangular signal that generated frequency is 400Hz.1024 and 128 frequency divisions of clock signal can be realized by 10 digit counters.
Unipolarity triangular signal and the sine wave signal of generation are compared.In the time that triangular signal is more than or equal to sine wave signal, be output as high level; In the time that triangular signal is less than sine wave signal, be output as low level.So just obtain Liao Yi road SPWM1 control signal.By the SPWM1 signal negate obtaining, can obtain an other road SPWM2 signal.
The 50MHz clock that the clock of dead band time delay control module is external crystal-controlled oscillation.Adopt rolling counters forward pattern to generate time of delay.The delay time of choosing in this embodiment is 4us; The i.e. rolling counters forward taking 50MHz as count frequency 200 times.The 4us inhibit signal generating by dead band control module and former SPWM signal carry out and computing, can obtain the Unipolar SPWM pulse signal with dead band time delay.The structure chart that Dead Time produces as shown in Figure 4.

Claims (3)

1. the Unipolar SPWM pulse signal implementation method based on FPGA, it is characterized in that, system clock control module provides work clock to triangular carrier signal generator and Sine Modulated wave generator, the output of Sine Modulated wave generator generates sine wave signal, system clock control module regulates the frequency of work clock, controls the frequency of sine wave signal; The both positive and negative polarity two-way triangular carrier that triangular carrier signal generator generates, using sine wave signal as gating signal, finally generates the triangular signal of output single-pole; By the unipolarity carrier wave triangular signal generating and two input signals of modulated sinusoid signal negate module as a comparison, relatively the output of negate module enters dead band time delay control module, dead band time delay control module output SPWM pulse signal.
2. the Unipolar SPWM pulse signal implementation method based on FPGA according to claim 1, is characterized in that the generation of described sine wave signal or two triangular carriers of both positive and negative polarity:
Under MATLAB software platform, programming produces the data list file MIF file of sine wave signal or both positive and negative polarity triangular carrier, MIF file is stored in FPGA internal storage space ROM, provide work clock by system clock control module for ROM core module, ROM core will read MIF file data according to work clock order and generate sine wave signal or both positive and negative polarity triangular carrier.
3. the Unipolar SPWM pulse signal implementation method based on FPGA according to claim 2, it is characterized in that, described by the unipolarity carrier wave triangular signal generating and two input signals of modulated sinusoid signal negate module as a comparison, in the time that carrier wave is more than or equal to modulation wave signal, output high level; In the time that carrier wave is less than modulating wave, output low level, then through relatively processing and can generate a road SPWM1 signal, by the SPWM1 signal negate generating, can obtain another road SPWM2 signal, SPWM1 and SPWM2 signal are the complementary pulse signals without dead band time delay.
CN201410413772.8A 2014-08-21 2014-08-21 A kind of Unipolar SPWM pulse signal implementation method based on FPGA Active CN104202023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410413772.8A CN104202023B (en) 2014-08-21 2014-08-21 A kind of Unipolar SPWM pulse signal implementation method based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410413772.8A CN104202023B (en) 2014-08-21 2014-08-21 A kind of Unipolar SPWM pulse signal implementation method based on FPGA

Publications (2)

Publication Number Publication Date
CN104202023A true CN104202023A (en) 2014-12-10
CN104202023B CN104202023B (en) 2017-03-29

Family

ID=52087265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410413772.8A Active CN104202023B (en) 2014-08-21 2014-08-21 A kind of Unipolar SPWM pulse signal implementation method based on FPGA

Country Status (1)

Country Link
CN (1) CN104202023B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734678A (en) * 2015-01-25 2015-06-24 东北石油大学 PWM dead-time generation method based on FPGA
CN104836554A (en) * 2015-05-11 2015-08-12 江苏宏云技术有限公司 Realization method of multifunctional SPWM
CN106130324A (en) * 2016-06-29 2016-11-16 韩伟 A kind of SPWM waveform controlling method based on FPGA
CN107015037A (en) * 2017-05-27 2017-08-04 国网上海市电力公司 A kind of program control test power device and application process
CN108964640A (en) * 2018-07-17 2018-12-07 吉林省博安消防设备有限公司 Frequency conversion triangular carrier generator and APF based on carrier cycle modulation technique
CN111030496A (en) * 2019-04-04 2020-04-17 沈阳工业大学 Variable carrier hybrid modulation method suitable for modular multilevel converter
CN112003502A (en) * 2020-09-14 2020-11-27 苏州汇川技术有限公司 Carrier phase-shifting control method and system and automobile motor controller
CN113098454A (en) * 2021-03-31 2021-07-09 上海电气风电集团股份有限公司 PWM signal generation method, single-phase PWM signal generation module and three-phase PWM signal generation module

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1832322A (en) * 2006-03-23 2006-09-13 湖南大学 Digital UPS/EPS space vector modulation algorithm
CN101383563A (en) * 2008-07-04 2009-03-11 中国工程物理研究院流体物理研究所 SPWM controller based on FPGA
CN103346687A (en) * 2013-06-20 2013-10-09 东华大学 Single-phase non-isolated photovoltaic grid-connected inverter topological structure and control method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1832322A (en) * 2006-03-23 2006-09-13 湖南大学 Digital UPS/EPS space vector modulation algorithm
CN101383563A (en) * 2008-07-04 2009-03-11 中国工程物理研究院流体物理研究所 SPWM controller based on FPGA
CN103346687A (en) * 2013-06-20 2013-10-09 东华大学 Single-phase non-isolated photovoltaic grid-connected inverter topological structure and control method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭宝增等: "《基于SOPC的SPWM脉冲发生器的实现》", 《电子设计工程》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734678A (en) * 2015-01-25 2015-06-24 东北石油大学 PWM dead-time generation method based on FPGA
CN104836554A (en) * 2015-05-11 2015-08-12 江苏宏云技术有限公司 Realization method of multifunctional SPWM
CN104836554B (en) * 2015-05-11 2017-11-28 江苏宏云技术有限公司 A kind of multi-functional SPWM implementation method
CN106130324A (en) * 2016-06-29 2016-11-16 韩伟 A kind of SPWM waveform controlling method based on FPGA
CN107015037A (en) * 2017-05-27 2017-08-04 国网上海市电力公司 A kind of program control test power device and application process
CN108964640A (en) * 2018-07-17 2018-12-07 吉林省博安消防设备有限公司 Frequency conversion triangular carrier generator and APF based on carrier cycle modulation technique
CN108964640B (en) * 2018-07-17 2021-11-16 吉林省博安消防设备有限公司 Variable frequency triangular carrier generator and active power filter based on carrier period modulation technology
CN111030496A (en) * 2019-04-04 2020-04-17 沈阳工业大学 Variable carrier hybrid modulation method suitable for modular multilevel converter
CN112003502A (en) * 2020-09-14 2020-11-27 苏州汇川技术有限公司 Carrier phase-shifting control method and system and automobile motor controller
CN113098454A (en) * 2021-03-31 2021-07-09 上海电气风电集团股份有限公司 PWM signal generation method, single-phase PWM signal generation module and three-phase PWM signal generation module

Also Published As

Publication number Publication date
CN104202023B (en) 2017-03-29

Similar Documents

Publication Publication Date Title
CN104202023A (en) Unipolarity sinusoidal pulse width modulation (SPWM) pulse signal achieving method based on field programmable gate array (FPGA)
CN102142784B (en) Full digital five-level inverter sinusoidal pulse width modulation (SPWM) control method
CN102035472B (en) Programmable digital frequency multiplier
CN103490652B (en) Phase-shifting carrier wave pulse duration modulation method
CN101282093B (en) PWM control method for tandem multi-level inverter
CN101997524A (en) Method and digital chip for generating multi-path SPWM signals
CN109857014A (en) A kind of pwm signal generation method based on FPGA
CN106452052A (en) DC/DC control circuit based on DCM modulation
CN103178814B (en) A kind of function signal generating device and method
CN110690879A (en) Parameter-adjustable PWM controller based on programmable device and PWM pulse generation method
CN103929082A (en) Single-phase three-level inverter signal modulation method based on wavelet modulation
CN103916104A (en) PWM signal generating circuit, printer, and PWM signal generating method
CN103457502A (en) Novel five-level inverter seven-segment type SVPWM modulation method
CN201726331U (en) Inverter
CN1725621A (en) Universal pulse width modulation integrated circuit for power electric current transormer
CN106155177B (en) The method for realizing SPWM waveforms based on digital processing unit
CN105262458B (en) Multilevel SPWM pulse generating system based on FPGA and method
CN109901382B (en) Regular sampling PWM (pulse-Width modulation) optimization method of digital control system
CN106130324A (en) A kind of SPWM waveform controlling method based on FPGA
CN107453589B (en) Converter closed-loop controller based on FPGA
Yan et al. Research on SVPWM inverter technology in wind power generation system
Hemdani et al. FPGA-based sliding mode direct power control of three-phase PWM boost rectifier
CN104345766A (en) Low-chain wave power supply
CN102710100A (en) Method for calculating and generating SPWM (Sinusoidal Pulse Width Modulation) for thread spinner frequency converter by using real-time sine values
Gao et al. Sinusoidal pulse width modulation design based DDS

Legal Events

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