CN108134525B - Digital control method without control delay based on DSP - Google Patents
Digital control method without control delay based on DSP Download PDFInfo
- Publication number
- CN108134525B CN108134525B CN201711356833.1A CN201711356833A CN108134525B CN 108134525 B CN108134525 B CN 108134525B CN 201711356833 A CN201711356833 A CN 201711356833A CN 108134525 B CN108134525 B CN 108134525B
- Authority
- CN
- China
- Prior art keywords
- timer
- dsp
- sampling
- setting
- digital control
- 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
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02M—APPARATUS 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
- H02M7/00—Conversion of ac power input into dc power output; Conversion of dc power input into ac power output
- H02M7/02—Conversion of ac power input into dc power output without possibility of reversal
- H02M7/04—Conversion of ac power input into dc power output without possibility of reversal by static converters
- H02M7/12—Conversion of ac power input into dc power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode
- H02M7/21—Conversion of ac power input into dc power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal
- H02M7/217—Conversion of ac power input into dc power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only
- H02M7/219—Conversion of ac power input into dc power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode using devices of a triode or transistor type requiring continuous application of a control signal using semiconductor devices only in a bridge configuration
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02M—APPARATUS 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/00—Details of apparatus for conversion
- H02M1/0003—Details of control, feedback or regulation circuits
- H02M1/0012—Control circuits using digital or numerical techniques
Abstract
The invention discloses a digital control method without control delay based on DSP. The invention is characterized in that: (1) the sampling timer and the carrier timer are out of phase for a certain time, and the time length depends on the specific current loop calculation time; 2) adjusting the operation sequence of each module in sampling interruption, and calculating a current loop after sampling is completed; 3) the DSP refreshing mode adopts an immediate refreshing mode. Through the adjustment of the three points, the uncontrolled delay of a digital control mode can be realized, and the bandwidth of the equipment is improved to the maximum extent. The invention breaks through the control delay of DSP and has good application prospect; the method has a great promoting effect on the innovation of the digital control field.
Description
Technical Field
The invention belongs to the field of power electronics, and particularly relates to a digital control method of a single-phase PWM rectifier.
Background
With the economic development, the PWM rectifier is more and more widely applied, and the old uncontrollable or phase-controlled rectification mode is gradually replaced due to the characteristics of networking current sine and unit power factor.
With the development of power electronic control technology, no matter a PWM rectifier or other power electronic topologies, the development is moving towards digital control. Compared with analog control, digital control has many advantages, such as the control can be realized by using a processor, the integration of devices is higher, and the problems of temperature drift and null drift of an analog mode are solved. The conventional processor is mostly a DSP processor, because the inherent sequential execution problem of the DSP processor and the shadow register problem of the DSP event manager always have a control delay problem from sampling to refreshing time, which severely restricts the improvement of the system bandwidth, and many scholars study this aspect, and implement the delay manner of half cycle and 1/4 cycle by using the dual refresh mode and the high sampling frequency, but the delay still has an influence on the bandwidth of the PWM rectifier.
Disclosure of Invention
The invention aims to overcome the problems of the digital control implementation method realized by the current DSP, and provides a digital control method without control delay realized based on the DSP, so that the non-control delay of a digital control mode is realized, and the bandwidth of equipment is improved to the maximum extent.
The invention carries out certain time phase dislocation on the sampling timer and the carrier timer (the time depends on the time calculated by the DSP current loop), adjusts the calculation sequence of the current loop, calculates the current loop after the sampling is finished, and the carrier register of the event manager adopts an immediate refresh mode, thereby realizing digital control without delay, increasing the bandwidth of the digital control to the maximum extent and improving the performance of the PWM rectifier.
The technical scheme of the invention is as follows:
the digital control method without control delay based on DSP comprises the following steps:
a. configuring a system clock of the DSP, and configuring an IO port corresponding to hardware;
b. configuring an event manager of the DSP, setting a timing period of a timer T1, setting a timer T1 as a timer for triggering sampling calculation interruption as underflow and overflow double-trigger interruption;
c. configuring an event manager of the DSP, setting a timing period of a timer T3, setting a timer T3 as a carrier timer to be in double refresh of underflow and overflow without triggering interruption, and setting the timer to be in an immediate refresh mode;
d. the sampling calculation is interrupted, and the specific execution sequence is as follows: sampling, current loop calculation, loading a timer T3 register, phase locking, bus voltage loop calculation and ending interruption;
e. measuring the running time of executing sampling, current loop calculation and loading timer T3 register in the sampling calculation interruption, and recording as delta T;
f. configuring an event manager of the DSP, and setting a timer T1 to lead the time of a timer T3 delta T;
d. and a PWM pin corresponding to the timer T3 outputs PWM driving waves.
System of a better adapted single phase PWM rectifier: the voltage type converter adopts IGBT to realize the topology of six three-phase tubes, and the direct current bus adopts electrolytic capacitor. The control of the whole system can be completed by one DSP. The main work of the DSP is realized as a time sequence control, a fault protection and a control algorithm.
The timing cycle of the timer T1 and the timing cycle of the timer T3 are both set to 0.05 us.
The DSP is preferably TMS320F28335 manufactured by Ti company.
The invention has the following beneficial effects:
1) the sampling timer and the carrier timer are out of phase for a certain time, and the time length depends on the specific current loop calculation time; 2) adjusting the operation sequence of each module in sampling interruption, and calculating a current loop after sampling is completed; 3) the DSP refreshing mode adopts an immediate refreshing mode. Through the adjustment of the three points, the uncontrolled delay of a digital control mode can be realized, and the bandwidth of the equipment is improved to the maximum extent. The invention breaks through the control delay of the DSP from the established thinking, has good application prospect and has great promotion effect on the innovation of the digital control field.
Drawings
Fig. 1 is a block diagram of a single-phase rectifier topology and a control system according to the present invention.
Fig. 2 is a timing diagram of a conventional single-cycle control delay.
Fig. 3 is a timing diagram of a conventional half-cycle control delay.
Fig. 4 is a flowchart of a conventional interrupt sequence execution of a long-period control delay.
Fig. 5 is a timing diagram of the present invention without control delay.
FIG. 6 is a flow chart of the present invention for the sequential execution of interrupts without control delay.
Detailed Description
The invention will be described in further detail below with reference to specific embodiments and the attached drawings:
fig. 1 shows a system of single-phase PWM rectifiers: the voltage type converter adopts IGBT to realize the topology of six three-phase pipes, the direct current bus adopts electrolytic capacitor, the control of the whole system is completed by a DSP, and the DSP adopts TMS320F28335 of Ti company. The main work of the DSP is realized as a time sequence control, a fault protection and a control algorithm.
Fig. 2 and 3 show a timing chart of a conventional single-cycle control delay and a timing chart of a conventional half-cycle control delay. FIG. 4 is a flow chart of a conventional long-period control delay for execution of an interrupt sequence. It can be seen from the figure that the sampling timer and the carrier timer are separately counted, in this case, only underflow refresh or overflow and underflow double refresh is adopted, the shadow register inside 28335 is valid, that is, the loaded value needs to be refreshed to the comparison register when the next overflow or underflow occurs, and thus there is a delay from sampling to refreshing. If immediate refresh is forced, there will be lost pulses and there will be sunken pits in the waveform, possibly even causing an over-current failure of the PWM rectifier.
The digital control method without control delay provided by the invention is shown in fig. 5 and 6. The specific implementation part is as follows:
a. configuring a system clock of 28335, configuring an IO port corresponding to hardware, and specifically configuring a PWM wave IO port corresponding to a T3 timer with a multiplexing PWM wave function.
b. Configuring an event manager of 28335, setting a timer period of T1 to 0.05us, specifically configuring T1PR to be 3750, and setting a T1 timer as a timer for triggering sampling computation interrupt to be an underflow and overflow double-trigger interrupt, specifically configuring ACTRLD to be 1.
c. Configuring an event manager of 28335, setting a timer period of T3 to 0.05us, specifically configuring T1PR to 3750, using a T3 timer as a carrier timer, setting to underflow and overflow double refresh, specifically configuring ACTRLD to 1, not triggering an interrupt, and setting to an immediate refresh mode, specifically configuring TCLD10 to 11.
d. The sampling calculation interrupts the specific algorithm implementation sequence: sampling, current loop calculation, loading of a T3 timer register, phase locking, bus voltage loop calculation, other operations and interruption ending.
e. The running time of the algorithm in the interrupt of the measurement sampling calculation is as follows: the 'sampling-current loop calculation-loading of the T3 timer register' results in a running time Δ T.
Specifically, an IO port may be provided, IO is set to high at the sampling start, IO is set to low after a T3 timer register is loaded, an oscilloscope is used to test the time Δ T of the high level, and a formula is used: Δ t 75 gets the delay value N corresponding to the DSP.
f. The event manager of 28335 is configured to set the T1 timer to lead the T3 timer Δ T time.
Specifically setting: t1CNT is 3750-N; t3CNT is 0.
And d, outputting PWM driving waves by a PWM pin corresponding to the T3 timer to drive the IGBT.
Claims (4)
1. A digital control method without control delay based on DSP is characterized by comprising the following steps:
a. configuring a system clock of the DSP, and configuring an IO port corresponding to hardware;
b. configuring an event manager of the DSP, setting a timing period of a timer T1, setting a timer T1 as a timer for triggering sampling calculation interruption as underflow and overflow double-trigger interruption;
c. configuring an event manager of the DSP, setting a timing period of a timer T3, setting a timer T3 as a carrier timer to be in double refresh of underflow and overflow without triggering interruption, and setting the timer to be in an immediate refresh mode;
d. the sampling calculation is interrupted, and the specific execution sequence is as follows: sampling, current loop calculation, loading a timer T3 register, phase locking, bus voltage loop calculation and ending interruption;
e. measuring the running time of executing sampling, current loop calculation and loading timer T3 register in the sampling calculation interruption, and recording as delta T;
f. configuring an event manager of the DSP, and setting a timer T1 to lead the time of a timer T3 delta T;
d. and a PWM pin corresponding to the timer T3 outputs PWM driving waves.
2. The DSP-based digital control method without control delay of claim 1, wherein: in the topological structure of the main circuit, a voltage type converter adopts an IGBT, and a direct current bus adopts an electrolytic capacitor.
3. The DSP-based digital control method without control delay of claim 1, wherein: the timing periods of the timer T1 and the timer T3 are both set to 0.05 us.
4. The DSP-based digital control method without control delay of claim 1, wherein: the DSP is TMS320F28335 from Ti company.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711356833.1A CN108134525B (en) | 2017-12-16 | 2017-12-16 | Digital control method without control delay based on DSP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711356833.1A CN108134525B (en) | 2017-12-16 | 2017-12-16 | Digital control method without control delay based on DSP |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108134525A CN108134525A (en) | 2018-06-08 |
CN108134525B true CN108134525B (en) | 2020-05-22 |
Family
ID=62390409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711356833.1A Active CN108134525B (en) | 2017-12-16 | 2017-12-16 | Digital control method without control delay based on DSP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108134525B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103023464A (en) * | 2012-08-08 | 2013-04-03 | 武汉大学 | Digitization triangular wave comparison method |
CN203632249U (en) * | 2013-11-13 | 2014-06-04 | 国网上海市电力公司 | Dynamic voltage reactive compensation device |
CN104796048A (en) * | 2015-04-15 | 2015-07-22 | 华中科技大学 | Alternating-current motor current loop parallelism digital control implementation method |
CN106229991A (en) * | 2016-09-26 | 2016-12-14 | 国网上海市电力公司 | A kind of Vienna Rectifier being applicable in the case of disturbance occurs in line voltage |
-
2017
- 2017-12-16 CN CN201711356833.1A patent/CN108134525B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103023464A (en) * | 2012-08-08 | 2013-04-03 | 武汉大学 | Digitization triangular wave comparison method |
CN203632249U (en) * | 2013-11-13 | 2014-06-04 | 国网上海市电力公司 | Dynamic voltage reactive compensation device |
CN104796048A (en) * | 2015-04-15 | 2015-07-22 | 华中科技大学 | Alternating-current motor current loop parallelism digital control implementation method |
CN106229991A (en) * | 2016-09-26 | 2016-12-14 | 国网上海市电力公司 | A kind of Vienna Rectifier being applicable in the case of disturbance occurs in line voltage |
Non-Patent Citations (1)
Title |
---|
"单相PWM整流器控制策略研究";黄辉;《万方数据硕士学位论文全文数据库》;20121225;正文第6、41、44-47页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108134525A (en) | 2018-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102904568B (en) | Self-adaptive grid-tied converter single phase soft phase-locked loop | |
CN105680753B (en) | Three-phase current reconstructing method based on single current sensor and device | |
CN102142784B (en) | Full digital five-level inverter sinusoidal pulse width modulation (SPWM) control method | |
CN103746584B (en) | Based on the multi-electrical level inverter neutral-point voltage balance method of carrier offset | |
CN106130435B (en) | A kind of Harmonics elimination PWM generation method | |
CN102611143B (en) | Method for controlling grid-connected current of three-phase grid-connected inverter | |
CN101917158A (en) | Dead-zone compensation method for voltage source inverter | |
CN104333256A (en) | All-digital naturally sampling SPWM control method and system based on FPGA | |
CN104821601A (en) | Three-phase photovoltaic grid-connected inverter control device | |
CN103337860A (en) | Predictive control system and predictive control method used for APF (active power filter) | |
CN105226985A (en) | Based on the three level dead-zone compensation method of current phasor equivalence | |
US20180091063A1 (en) | Current sampling and processing device and method for an inverter | |
CN102570873A (en) | Dead zone compensation method used in voltage space vector pulse width modulation technology | |
CN108134525B (en) | Digital control method without control delay based on DSP | |
Zeng et al. | Development of an SVPWM-based predictive current controller for three-phase grid-connected VSI | |
Wang et al. | Analysis, measurement, and compensation of the system time delay in a three-phase voltage source rectifier | |
CN102013681A (en) | Three-phase solar inversion output waveform dynamic compensation control method | |
Zeng et al. | Improved current controller based on SVPWM for three-phase grid-connected voltage source inverters | |
CN107453589B (en) | Converter closed-loop controller based on FPGA | |
CN103607105A (en) | Dead zone compensation control method and system thereof | |
Ping et al. | Research on the improved current deadbeat control algorithm of photovoltaic grid-connected inverter | |
CN109787278A (en) | A kind of dead beat grid-connected control method based on interpolative prediction and inductance compensation | |
CN109995223A (en) | Duty ratio compensation and the control circuit and working method for inhibiting duty-cycle loss | |
CN102611134B (en) | Network voltage phase-frequency tracking method based on capturing unit | |
CN104333040B (en) | Cascading type photovoltaic grid-connecting system based on improved dead-beat control method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |