CN107124164A - A kind of preparation method for producing multichannel SPWM signal and digit chip - Google Patents

A kind of preparation method for producing multichannel SPWM signal and digit chip Download PDF

Info

Publication number
CN107124164A
CN107124164A CN201710351309.9A CN201710351309A CN107124164A CN 107124164 A CN107124164 A CN 107124164A CN 201710351309 A CN201710351309 A CN 201710351309A CN 107124164 A CN107124164 A CN 107124164A
Authority
CN
China
Prior art keywords
multichannel
spwm
module
triangular carrier
signal
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.)
Withdrawn
Application number
CN201710351309.9A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201710351309.9A priority Critical patent/CN107124164A/en
Publication of CN107124164A publication Critical patent/CN107124164A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K4/00Generating pulses having essentially a finite slope or stepped portions
    • H03K4/06Generating pulses having essentially a finite slope or stepped portions having triangular shape
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • 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

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Inverter Devices (AREA)

Abstract

The invention discloses a kind of method for producing multichannel SPWM signal and digit chip, this method comprises the following steps:Step 1 produces the application triangular carrier at T moment, with reference to triangular carrier and multichannel sinusoidal signal value;Step 2 produces multichannel SPWM signal by comparing;Step 3 circulation step.Described digit chip includes control unit interface module, triangular wave generation module, sinusoidal modulation wave generation module, comparison module, output module and frequency division module;The present invention is easy to implement, saves hardware resource, and triggered time error is small.Using the present invention, control circuit can be made to reduce by CPU, a simplified control system software and hardware complexity;Carrier frequency is improved, device for power switching potential is given full play to, SPWM signal triggered time precision is improved, low-order harmonic is reduced, frequency converter performance is improved;Solve the not enough problem of the hardware resources such as CPU timer, pin.

Description

A kind of preparation method for producing multichannel SPWM signal and digit chip
Technical field
The invention belongs to electronic applications, it is related to a kind of method and digit chip for producing multichannel SPWM signal, this technology can For high voltage converter, inverter etc..
Background technology
SPWM (sinusoidal pulse width modulation, Sinusoidal Pulse Width Modulation) signal be it is a kind of by than The data signal produced compared with the size of sinusoidal modulation wave and triangular carrier, the SPWM when sinusoidal modulation wave is more than triangular carrier Signal is high level, it is on the contrary then for low level.Power unit cascade type high voltage frequency converter, inverter (hereafter referred to collectively as frequency converter) (can up to 48 tunnels) SPWM signals, it is necessary to multichannel are made up of multiple power cells.The method of conventional generation multichannel SPWM signal It is that triangular carrier amplitude per SPWM signals all the way is identical but time shift, the amplitude and phase of sinusoidal modulation wave are according to frequency conversion The output voltage amplitude and frequency of device and real-time change.The existing SPWM digit chips in market can only produce 6 road SPWM signals and supply One three phase inverter bridge unit is used, it is impossible to which the need for meeting high voltage converter, and method used in these chips can not It is directly used in multichannel SPWM signal and produces chip, because this kind of method needs to take substantial amounts of hardware resource, the core of general scale Piece can not meet requirement.The existing method for producing multichannel SPWM signals is obtained respectively with software approach approximate calculation by CPU In the triggered time of road SPWM signals, trigger signal is produced as hardware timer with FPGA.This mode has two and mainly lacked Point;First, the accurate calculating in triggered time needs to solve transcendental equation, a large amount of CPU times are taken, it is impossible to which meeting real-time will Ask, be typically only capable to using approximate calculation method, reduction carrier frequency to reduce amount of calculation, nonetheless, often need one individually CPU dedicated for the triggered time calculating.Reduction carrier frequency prevents switching device from giving full play to its potential, adds triggering The calculation error of time and the time error being sent to caused by FPGA are larger, cause the voltage low-order harmonic that frequency converter is exported to increase Greatly, it is necessary to can just filter out these low-order harmonics with big filtering device, frequency converter volume is caused to increase, performance reduction.Second, by Need to take the CPU substantial amounts of times in the calculating in triggered time, cause frequency converter control system to have to use dual-cpu structure, It is responsible for the calculating in SPWM signal triggered times specially with one of CPU, causes system hardware and software structure extremely complex, safeguards tired It is difficult.
The content of the invention
It is an object of the invention to provide a kind of method and digit chip for producing multichannel SPWM signal, the present invention is easy to real Apply, save hardware resource, triggered time error is small.
A kind of following method for producing multichannel SPWM signal of the technical solution of the present invention, comprises the following steps:Step 1 , the application triangular carrier at T moment is produced, is produced with reference to triangular carrier and multichannel sinusoidal signal value and applies triangular carrier to use addition The application triangular carrier based on amplitude tone pitch is produced with subtraction, is used to be compared with multichannel sine wave using triangular carrier Compared with being the shared application triangular carrier of multichannel SPWM signal, this applies triangular carrier U.(T) expression formula in a cycle It it is the sampling time for wherein T, Tc is carrier cycle, and M is amplitude modulation degree;Produce and transported with reference to triangular carrier using addition and subtraction The reference triangular carrier for producing constant amplitude is calculated, the separation for judging front and rear half period is used for reference to triangular carrier, with reference to three The carrier cycle of angle carrier wave is Tc, and maximum is Tmax;Calculate multichannel sinusoidal signal value and multichannel sinusoidal signal is set respectively in advance First phase angle value Phi (I), I be sinusoidal signal numbering, calculate Wt+Phi (I), wherein W be sinusoidal signal be sinusoidal modulation wave Angular frequency;Sine table is looked into according to Wt+Phi (I) and obtains each road sinusoidal signal value Sin (Wt+Phi (I));Step 2, by comparing Producing multichannel SPWM signal will be using triangular carrier Uc (T) in T moment corresponding Zhi Yuge roads sinusoidal signal value Sin (Wt+Phi (I)) it is compared respectively, if Uc (T) is more than Sin (Wt+Phi (I)), exports high level, otherwise export low level, obtain State of the multichannel SPWM signal at the T moment;Step 3 circulation step updates sampling instant T=T+1, return to step 1;It is final to obtain The real-time output of multichannel SPWM signal, can produce SPWM signals for 48 tunnels.It is multiple based on the time-division in each sampling period Sin (Wt+Phi (I)) calculating is completed with mode and pipeline system and Uc (T) and Sin (Wt+Phi) comparison are grasped Make.Sampling Zhou Qiyue is Lus, and Tmax is Tc/2.
The preparation method of digit chip.The present invention makes digit chip, including control using multichannel SPWM signal method is produced Device interface module processed, triangular wave generation module, sinusoidal modulation wave generation module, comparison module, output module and frequency division module.Control Device interface module processed is communicated to connect with CPU, in control unit interface module, carrier cycle register TcReg and modulation degree register MdReg is connected with triangular wave generation module;Modulating wave period register TrReg and multiple SPWM modulating waves phase registers PhiReg is connected with sinusoidal modulation wave generation module;Triangular wave generation module is used to produce application triangular carrier and carried with reference to triangle Ripple;Sinusoidal modulation wave generation module is used for the output valve for calculating multichannel sine wave;The application triangular carrier of triangular wave generation module The multichannel sinewave output end of output end and sinusoidal modulation wave generation module connects with the input of comparison module;Comparison module It is compared for the output valve by application triangular carrier value respectively with multichannel sine wave;(T-Tc/2), Tc/2<t<tc0<t.
The internal structure of sinusoidal modulation wave generation module is the Elk signals and load after the input termination frequency dividing of Wt generation units Wave period register TcReg, the output end of an input termination Wt generation unit of adder, another input of adder I-th SPWM modulating wave phase register PhiReg are met, output termination sine table RAM, sine table the RAM output of adder is sinusoidal Value;Sine table RAM is using the embedded ram cell inside FPGA.The digit chip of multichannel SPWM signal is produced, its feature exists In SPWM modulating wave phase registers PhiReg is 48, and described CPU is DSP.
Embodiment
Example 1, a kind of preparation method for the method and digit chip for producing multichannel Spwm signals.(1)One kind produces multichannel The method of SPWM signals, comprises the following steps:
Step 1, produce the application triangular carrier at T moment, application triangle load is produced with reference to triangular carrier and multichannel sinusoidal signal value Ripple produces the application triangular carrier based on amplitude tone pitch using addition and subtraction, is used for using triangular carrier sinusoidal with multichannel Ripple is compared, and is the shared application triangular carrier of multichannel SPWM signal, this is using triangular carrier Uc (T) in a cycle Expression formula for wherein T be the sampling time, Tc is carrier cycle, and M is amplitude modulation degree;Produce and use addition with reference to triangular carrier The reference triangular carrier of constant amplitude is produced with subtraction, the boundary for judging front and rear half period is used for reference to triangular carrier Point, with reference to triangular carrier carrier cycle be Tc, maximum is Tmax;Calculate multichannel sinusoidal signal value and multichannel is set respectively in advance The first phase angle value Phi (I) of sinusoidal signal, I are the numbering of sinusoidal signal, calculate Wt+Phi (I), and wherein W is that sinusoidal signal is just The angular frequency of string modulating wave;Sine table is looked into according to Wt+Phi (I) and obtains each road sinusoidal signal value Sin (Wt+Phi (I));Step 2, Will be using triangular carrier Uc (T) in T moment corresponding Zhi Yuge roads sinusoidal signal value Sin by comparing generation multichannel SPWM signal (Wt+Phi (I)) is compared respectively, if Uc (T) is more than Sin (Wt+Phi (I)), is exported high level, is otherwise exported low electricity It is flat, obtain state of the multichannel SPWM signal at the T moment;Step 3 circulation step updates sampling instant T=T+1, return to step 1;Most The real-time output of multichannel SPWM signal is obtained eventually, can produce SPWM signals for 48 tunnels.In each sampling period, it is based on Time division multiplexing mode and pipeline system complete Sin (Wt+Phi (I)) calculating and Uc (T) and Sin (Wt+Phi) Compare operation.Sampling Zhou Qiyue is Lus, and Tmax is Tc/2.
(2)The preparation method of digit chip.
Make the digit chip of the generation multichannel SPWM signal for the method for producing multichannel SPWM signal, including control unit interface Module, triangular wave generation module, sinusoidal modulation wave generation module, comparison module, output module and frequency division module.Control unit interface Module is communicated to connect with CPU, in control unit interface module, carrier cycle register TcReg and modulation degree register MdReg and three Angle ripple generation module connection;Modulating wave period register TrReg and multiple SPWM modulating waves phase register PhiReg and sine Modulating wave generation module is connected;Triangular wave generation module is used to produce application triangular carrier and refers to triangular carrier;Sine Modulated Ripple generation module is used for the output valve for calculating multichannel sine wave;The application triangular carrier output end and sine of triangular wave generation module The multichannel sinewave output end of modulating wave generation module connects with the input of comparison module;Comparison module is used to that three will to be applied Output valve of the angle carrier value respectively with multichannel sine wave is compared;(T-Tc/2), Tc/2<t<tc0<t.
The internal structure of sinusoidal modulation wave generation module is the Elk signals and load after the input termination frequency dividing of Wt generation units Wave period register TcReg, the output end of an input termination Wt generation unit of adder, another input of adder I-th SPWM modulating wave phase register PhiReg are met, output termination sine table RAM, sine table the RAM output of adder is sinusoidal Value;Sine table RAM is using the embedded ram cell inside FPGA.The digit chip of multichannel SPWM signal is produced, its feature exists In SPWM modulating wave phase registers PhiReg is 48, and described CPU is DSP.

Claims (5)

1. a kind of method for producing multichannel SPWM signal, it is characterised in that comprise the following steps:Step 1, answering for T moment is produced Application triangular carrier is produced with triangular carrier, with reference to triangular carrier and multichannel sinusoidal signal value to produce using addition and subtraction Application triangular carrier based on amplitude tone pitch, is used to be compared with multichannel sine wave using triangular carrier, is multichannel SPWM letter Number shared application triangular carrier, this using expression formulas of the triangular carrier Uc (T) in a cycle to be wherein T be sampling when Between, Tc is carrier cycle, and M is amplitude modulation degree;Produce with reference to triangular carrier using addition and subtraction generation constant amplitude Reference triangular carrier, be used to judge the separation of front and rear half period with reference to triangular carrier, with reference to the carrier cycle of triangular carrier Phase is Tc, and maximum is Tmax;Calculate the first phase angle value Phi that multichannel sinusoidal signal value sets multichannel sinusoidal signal respectively in advance (I), I be sinusoidal signal numbering, calculate Wt+Phi (I), wherein W be sinusoidal signal be sinusoidal modulation wave angular frequency;According to Wt+Phi (I) looks into sine table and obtains each road sinusoidal signal value Sin (Wt+Phi (I));Step 2 produces multichannel SPWM letter by comparing Number will respectively it be compared in T moment corresponding Zhi Yuge roads sinusoidal signal value Sin (Wt+Phi (I)) using triangular carrier Uc (T) Compared with if Uc (T) exports high level, otherwise exports low level, obtain multichannel SPWM signal and exist more than Sin (Wt+Phi (I)) The state at T moment;Step 3 circulation step updates sampling instant T=T+1, return to step 1;Final acquisition multichannel SPWM signal Output in real time;Described SPWM signals are 48 tunnels;The method of described generation multichannel SPWM signal, it is characterised in that each In the individual sampling period, Sin (Wt+Phi (I)) calculating and Uc is completed based on time division multiplexing mode and pipeline system (T) and Sin (Wt+Phi) comparison operation.
2. the method for the generation multichannel SPWM signal according to any one of claim 1, it is characterised in that sampling Zhou Qiyue For Lus, Tmax is Tc/2.
3. a kind of number of the generation multichannel SPWM signal of the method for the generation multichannel SPWM signal based on described in right any one of 1-2 Word chip, it is characterised in that including control unit interface module, triangular wave generation module, sinusoidal modulation wave generation module, compare Module, output module and frequency division module;Control unit interface module is communicated to connect with CPU, in control unit interface module, carrier cycle Register TcReg and modulation degree register MdReg are connected with triangular wave generation module;Modulating wave period register TrReg and many Individual SPWM modulating waves phase register PhiReg is connected with sinusoidal modulation wave generation module;Triangular wave generation module is used to produce Using triangular carrier and refer to triangular carrier;Sinusoidal modulation wave generation module is used for the output valve for calculating multichannel sine wave;Triangle The application triangular carrier output end of ripple generation module and the multichannel sinewave output end of sinusoidal modulation wave generation module are with being compared The input of module connects;The output valve that comparison module is used for by application triangular carrier value respectively with multichannel sine wave is compared Compared with;(T-Tc/2), Tc/2<t<tc0<t.
4. the digit chip according to claim 3 for producing multichannel SPWM signal, it is characterised in that sinusoidal modulation wave is produced The internal structure of raw module is the Elk signals and carrier cycle register TcReg after the input termination frequency dividing of Wt generation units, The output end of one input termination Wt generation unit of adder, another input termination i-th SPWM modulating wave of adder Phase register PhiReg, output termination sine table RAM, sine table RAM the output sine value of adder;Sine table RAM is used Embedded ram cell inside FPGA.
5. the digit chip according to claim 4 for producing multichannel SPWM signal, it is characterised in that SPWM modulating wave phases Bit register PhiReg is 48, and described CPU is DSP.
CN201710351309.9A 2017-05-18 2017-05-18 A kind of preparation method for producing multichannel SPWM signal and digit chip Withdrawn CN107124164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710351309.9A CN107124164A (en) 2017-05-18 2017-05-18 A kind of preparation method for producing multichannel SPWM signal and digit chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710351309.9A CN107124164A (en) 2017-05-18 2017-05-18 A kind of preparation method for producing multichannel SPWM signal and digit chip

Publications (1)

Publication Number Publication Date
CN107124164A true CN107124164A (en) 2017-09-01

Family

ID=59727283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710351309.9A Withdrawn CN107124164A (en) 2017-05-18 2017-05-18 A kind of preparation method for producing multichannel SPWM signal and digit chip

Country Status (1)

Country Link
CN (1) CN107124164A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080018410A1 (en) * 2006-07-24 2008-01-24 General Research Of Electronics, Inc. Voltage controlled oscillator
CN101355349A (en) * 2007-07-23 2009-01-28 晶豪科技股份有限公司 Circuit and method for generating triangular wave
CN101626225A (en) * 2008-06-23 2010-01-13 三星电子株式会社 Sawtooth wave generating circuit and switch mode power supply having the same
CN101997524A (en) * 2010-09-26 2011-03-30 中南林业科技大学 Method and digital chip for generating multi-path SPWM signals
CN106105034A (en) * 2014-04-16 2016-11-09 密克罗奇普技术公司 Slope generation module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080018410A1 (en) * 2006-07-24 2008-01-24 General Research Of Electronics, Inc. Voltage controlled oscillator
CN101355349A (en) * 2007-07-23 2009-01-28 晶豪科技股份有限公司 Circuit and method for generating triangular wave
CN101626225A (en) * 2008-06-23 2010-01-13 三星电子株式会社 Sawtooth wave generating circuit and switch mode power supply having the same
CN101997524A (en) * 2010-09-26 2011-03-30 中南林业科技大学 Method and digital chip for generating multi-path SPWM signals
CN106105034A (en) * 2014-04-16 2016-11-09 密克罗奇普技术公司 Slope generation module

Similar Documents

Publication Publication Date Title
CN101997524B (en) Method and digital chip for generating multi-path SPWM signals
CN104202023A (en) Unipolarity sinusoidal pulse width modulation (SPWM) pulse signal achieving method based on field programmable gate array (FPGA)
CN104796024A (en) Simplified multilevel space vector pulse width modulation method and space vector pulse width modulation soft core applicable to three-phase cascaded H-bridge converter
CN101226408B (en) AC servo absolute value encoder position feedback pulse frequency dividing output method and circuit
CN102545680B (en) Field programmable gate array (FPGA)-driving-based cascaded multilevel converter
CN103391073A (en) Signal generator based on SPMW (sinusoidal pulse width modulation)
CN104993730A (en) Transforming method of random space vector PWM strategies
CN102780387B (en) Control method of inverter
CN102215026B (en) Control device based on neutral point migration technology of high-voltage transducer of DSP (Digital Signal Processor) and FPGA (Field Programmable Gate Array)
CN104502674B (en) A kind of three-phase voltage RMS to DC method and detection means
CN107124164A (en) A kind of preparation method for producing multichannel SPWM signal and digit chip
Wang et al. Design and implementation of modified DDS based on FPGA
CN106569541A (en) Sine wave generating method and device
Wang et al. FPGA based parallel architectures for normalized cross-correlation
CN101944841A (en) Inversion control digital filter
CN104935153B (en) Three-phase bridge type converter drive waveforms generator
CN202475298U (en) Cascading type multi-level frequency converter based on FPGA (Field Programmable Gate Array) driving and generation
CN108683184B (en) Electric energy quality comprehensive treatment device based on FPGA
CN102710100A (en) Method for calculating and generating SPWM (Sinusoidal Pulse Width Modulation) for thread spinner frequency converter by using real-time sine values
CN103823110B (en) Method for generating pulses by double manganin sampling circuits of single-phase three-wire electric energy meter
CN203104385U (en) Multi-harmonic signal generating device applicable to power system
Handong et al. Design and implementation of an FPGA-based real time simulation system for photovoltaic power generation
CN101478254A (en) Three-level SPWM waveform generation method based on DSP
CN104485668A (en) APF (accurate position finder) control device based on integration algorithm
CN201928232U (en) Control signal generating device of converter based on improved homalographic algorithm

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20170901

WW01 Invention patent application withdrawn after publication