CN110138254B - Inverter control method with adjustable input and output parameters - Google Patents

Inverter control method with adjustable input and output parameters Download PDF

Info

Publication number
CN110138254B
CN110138254B CN201910551028.7A CN201910551028A CN110138254B CN 110138254 B CN110138254 B CN 110138254B CN 201910551028 A CN201910551028 A CN 201910551028A CN 110138254 B CN110138254 B CN 110138254B
Authority
CN
China
Prior art keywords
output
carrier
duty
frequency
sine wave
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
Application number
CN201910551028.7A
Other languages
Chinese (zh)
Other versions
CN110138254A (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.)
Shenzhen Jinxin Microelectronics Co ltd
Original Assignee
Shenzhen Jinxin Microelectronics Co ltd
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 Shenzhen Jinxin Microelectronics Co ltd filed Critical Shenzhen Jinxin Microelectronics Co ltd
Priority to CN201910551028.7A priority Critical patent/CN110138254B/en
Publication of CN110138254A publication Critical patent/CN110138254A/en
Application granted granted Critical
Publication of CN110138254B publication Critical patent/CN110138254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H02M7/00Conversion of ac power input into dc power output; Conversion of dc power input into ac power output
    • H02M7/42Conversion of dc power input into ac power output without possibility of reversal
    • H02M7/44Conversion of dc power input into ac power output without possibility of reversal by static converters
    • H02M7/48Conversion of dc power input into ac power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode
    • H02M7/53Conversion of dc power input into ac 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/537Conversion of dc power input into ac 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, e.g. single switched pulse inverters
    • H02M7/539Conversion of dc power input into ac 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, e.g. single switched pulse inverters with automatic control of output wave form or frequency
    • H02M7/5395Conversion of dc power input into ac 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, e.g. single switched pulse inverters with automatic control of output wave form or frequency by pulse-width modulation
    • 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
    • H02M1/0003Details of control, feedback or regulation circuits
    • H02M1/0025Arrangements for modifying reference values, feedback values or error values in the control loop of a converter

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Inverter Devices (AREA)

Abstract

The invention is suitable for the technical field of electronics, and provides an inverter control method with adjustable input and output parameters, which comprises the following steps: the chip receives input and output parameters at least comprising output sine wave frequency, carrier frequency and an output voltage closed loop, obtains the actual position of table lookup after obtaining the carrier period number, searches a reference duty in a preset reference table, wherein the reference table at least comprises the reference duty and the reference position to obtain an output duty, and outputs the output duty through the chip PWM. The invention can flexibly realize the output of the sine wave duty by inputting more than 3 parameters such as sine wave frequency, carrier frequency, output voltage closed loop and the like, thereby realizing the adjustability of the input and output parameters of the inverter and being beneficial to improving the efficiency of the inverter.

Description

Inverter control method with adjustable input and output parameters
Technical Field
The invention belongs to the field of electronics, and particularly relates to an inverter control method with adjustable input and output parameters.
Background
The inverter converts direct current electric energy (batteries and storage batteries) into alternating current (generally 220V, 50Hz sine wave). It is composed of inverter bridge, control logic and filter circuit. The multifunctional electric grinding wheel is widely applicable to air conditioners, home theaters, electric grinding wheels, electric tools, sewing machines, DVDs (digital video disks), VCDs (video recorders), computers, televisions, washing machines, range hoods, refrigerators, video recorders, massagers, fans, lighting and the like. In foreign countries, due to the higher popularization rate of automobiles, the inverter can be used for connecting the storage battery to drive electric appliances and various tools to work when going out for work or traveling. The on-board inverter output through the cigarette lighter is of 20W, 40W, 80W, 120W to 150W power specification. And the other larger power inverter power supply is connected to the battery through a connecting wire. Connecting the household appliance to the output of the power converter enables the use of a variety of appliances in the vehicle. Usable electric appliances are: mobile phones, notebook computers, digital video cameras, lighting lamps, electric shavers, CD machines, game machines, palm computers, electric tools, vehicle-mounted refrigerators, and various traveling, camping, medical first-aid appliances.
At present, the common inverters on the market are:
square wave inverter: the square wave inverter outputs square wave alternating current, positive maximum and negative maximum of the square wave alternating current are generated at the same time, great unstable influence is caused to a load and the inverter, the waveform quality is poor, the load capacity is only 40-60% of a rated load, and an inductive load cannot be brought.
Positive spin wave inverter: the sine wave inverter outputs sine wave alternating current which is as good as or even better than a power grid used by people in daily life, and harmonic pollution to the power grid does not exist.
PWM: pwm (pulse Width modulation) control, pulse Width modulation, is a technique that equivalently obtains a desired waveform (including shape and amplitude) by modulating the Width of a series of pulses. The PWM control technology is most widely used in inverter circuits, and most of the inverter circuits are PWM type, and are widely used in many fields from measurement, communication to power control and conversion.
SPWM: the SPWM is characterized in that a pulse modulation mode is changed on the basis of PWM, and the pulse width time duty ratio is arranged according to a sine rule, so that sine wave output can be realized by properly filtering an output waveform. It is widely used in dc-ac inverters and the like, such as UPSs of higher order are an example. The three-phase SPWM is used for simulating three-phase output of commercial power and is widely adopted in the field of frequency converters.
Technologies related to inverters include:
PWM: pulse width modulation is known.
PWM period: the period of the PWM includes a high portion and a low portion thereof.
PWM DUTY: pwm duty is the length of time that the active level is in one pulse period.
Duty ratio: the pwm duty cycle is the proportion of the entire period of the high level in one pulse period. For example, the PWM wave duty ratio of the 1 second high level and the 1 second low level is 50%.
MOSFET Metal-Oxide Semiconductor Field Effect Transistor, Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) for short: is a field-effect transistor (fet) that can be widely used in analog and digital circuits. MOSFETs are classified into "N-type" and "P-type" types according to their "channel" (working carrier) polarities, and are also commonly referred to as NMOSFETs and PMOSFETs, and other types include NMOS and PMOS for short.
An Insulated Gate Bipolar Transistor (IGBT) is a composite fully-controlled voltage-driven power semiconductor device consisting of a Bipolar Junction Transistor (BJT) and an insulated Gate field effect transistor (MOS).
The MOSFET is abbreviated as MOS, and in an inverter together with the IGBT, the direct current is mainly used for realizing sine wave alternating current output through a high-frequency switch of the MOSFET and the IGBT.
The current inverter on the market adopts carrier fixed frequency, the output frequency is only 50/60Hz, and the variable frequency regulation can not be flexibly realized, which is very inconvenient for regulating the efficiency of the inverter.
Aiming at the defects, the embodiment provided by the invention can flexibly realize sine wave duty output by inputting more than 3 parameters such as sine wave frequency, carrier frequency, output voltage closed loop and the like, thereby realizing the adjustability of input and output parameters of the inverter and being beneficial to improving the efficiency of adjusting the inverter.
Disclosure of Invention
The embodiment of the invention aims to provide a control method of an inverter with adjustable input and output parameters, and aims to solve the problems that the existing inverter adopts carrier fixed frequency, the output frequency is only 50/60Hz, variable frequency adjustment cannot be flexibly realized, and the efficiency of the inverter is inconvenient to adjust.
The embodiment of the invention provides an inverter control method with adjustable input and output parameters, which comprises the following steps: the chip receives input and output parameters, wherein the input and output parameters at least comprise output sine wave frequency, carrier frequency and an output voltage closed loop;
obtaining the number of carrier cycles according to the carrier frequency and the output sine wave frequency; obtaining actual position of table lookup according to the carrier period number and the current carrier period position;
according to the actual position of the table lookup, a reference duty is looked up in a preset reference table, and the reference table at least comprises the reference duty and a reference position;
obtaining an output duty according to the reference duty and the output voltage closed loop; and outputting the output duty through the chip PWM.
Optionally, the carrier frequency is in K hertz, where 1K equals 1024.
Optionally, when the reference table is a degree table other than 360 degree tables, the step of searching for the reference duty in the preset reference table according to the actual position of the table lookup specifically includes the following steps:
d1, obtaining a carrier quadrant according to the actual position of the table lookup, and looking up the reference duty in a preset reference table according to the carrier quadrant.
Optionally, when the reference table is a 90-degree table, the step of searching for the reference duty in a preset reference table according to the carrier quadrant includes the following steps:
d2, when the carrier quadrant integer is 0, searching the reference duty in the reference table according to the ascending order; when the carrier quadrant integer is 1, searching for the reference duty in the reference table according to descending order;
when the carrier quadrant integer is 2, searching for the reference duty in the reference table according to ascending order; and when the carrier quadrant integer is 3, searching the reference duty in the reference table according to descending order.
Alternatively, the reference table is set in 256 points, one point every zero point by three or five degrees.
Alternatively, when the reference table is a 180-degree table, the reference table is set at 512 points, one point every zero point by three or five degrees.
Optionally, when the reference table is a 360-degree table, the reference table is set at 1024 points and one point every zero point by three or five degrees.
In the embodiment of the invention, sine wave duty output can be flexibly realized by inputting more than 3 parameters such as sine wave frequency, carrier frequency, output voltage closed loop and the like, so that the input and output parameters of the inverter can be adjusted, and the efficiency of adjusting the inverter can be improved.
Drawings
Fig. 1 is a flowchart of a method for controlling an inverter with adjustable input/output parameters according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for controlling an inverter with adjustable input/output parameters according to another embodiment of the present invention;
fig. 3 is a flowchart of a method for controlling an inverter with adjustable input/output parameters according to a further embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the embodiment of the invention, sine wave duty output can be flexibly realized by inputting more than 3 parameters such as sine wave frequency, carrier frequency, output voltage closed loop and the like, so that the input and output parameters of the inverter can be adjusted, and the efficiency of adjusting the inverter can be improved.
Fig. 1 shows a method for controlling an inverter with adjustable input and output parameters according to an embodiment of the present invention, which includes the following specific steps:
step S201, the chip receives input and output parameters, where the input and output parameters at least include output sine wave frequency, carrier frequency, and output voltage closed loop.
Here, the output sine wave frequency is also referred to as the output sine wave frequency or the output frequency in the industry.
A chip (chip) is a general name for a semiconductor device product. Is a carrier of Integrated Circuit (IC) and is formed by wafer dicing.
The output sine wave frequency provided by the embodiment of the invention is adjustable, and the input parameter is a value amplified by 10 times because the output sine wave frequency is accurate to 0.1Hz, so that the input parameter can be debugged at the pc end by a user and is visual and visible.
The output voltage closed loop, for example, a value obtained by dividing an output ac 220V voltage by a resistor, is an output voltage closed loop, and is also called an output voltage closed loop value, and is usually less than 5V. The output ac voltage 220V or 110V is called the voltage amplitude. The adjustable voltage amplitude refers to closed-loop control according to the closed-loop value of the output voltage.
Step S202, obtaining the number of carrier cycles according to the carrier frequency and the output sine wave frequency.
Sine waves, also referred to in the industry simply as sine waves.
The output sinusoidal waveform frequency, which may also be referred to as the output wave frequency or output waveform frequency Fsine (Hz).
The sine wave carrier frequency is designed to be fcary (khz). According to the calculation, one PWM carrier period Tcarry is 1s/Fcarry is 1, 000, 000us/Fcarry (khz).
And then calculating the number of points corresponding to each frequency, namely the number of carrier cycles. Assuming that the frequency of the output sine wave is Fsine (Hz), the period of the output sine wave is Tsine.
Then the total number of carrier cycles required to invert one cycle of the ac output frequency is equal to the output waveform period divided by the carrier period.
For example, when the ac output frequency is 50hz (Fsine), the carrier frequency is 20kHz (Fcarry), and the carrier period (Tcarry) is 1/Fcarry 1/20kHz, a sinusoidal waveform period (Tsine) is output, which is also referred to as output waveform period (Tsine) 1/Fsine.
Carrier cycle number (PointCnt) ═ Tsine/Tcarry.
Preferably, the entire sine wave is set to 1024 points, such that 256 points are provided every 90 degrees, 512 points are provided every 180 degrees, 1024 points are provided every 360 degrees, and 0.35 degree is provided. Thus, if there is a 90 degree table, the table values of the other 3 quadrants can be obtained by operation.
Preferably, the carrier frequency is in the unit of KHz, which may be 1024 as 1KHz for convenience in sine wave calculation. Because the table inside the program can be calculated based on 256, so that 4 times of calculation is performed between 1024 and 256, and both 256 and 1024 calculations can be directly shifted to the operation processing, thereby increasing the operation speed. At this time, the sine wave carrier frequency is designed to be fcary (khz). According to the calculation, one PWM carrier period Tcarry is 1s/Fcarry is 1, 000, 000us/(Fcarry 1024 Hz).
That is, at this time, the calculation formula of the carrier cycle number is:
Figure BDA0002105423090000061
and step S203, obtaining the actual position of the table lookup according to the carrier period number and the current carrier period position.
The current carrier cycle position (Curstep) is a variable, and is automatically increased by one every time of calculation, and the value is automatically cleared when the carrier cycle number is reached. The actual position of the lookup table is the actual position in the reference table.
And step S204, searching the reference duty in a preset reference table according to the actual position of the table lookup.
The actual position of the lookup table is the actual position in the reference table.
The reference table is an ordered set of data elements of the same type whose values vary according to the sine value law.
Since the sine wave output is typically 0-360 degrees. It is known that a sine wave is symmetrical every 90 degrees. Therefore, when designing the reference form, we only need to design a 90-degree form, or a 180-degree form, or a 360-degree form. In practice, a table of 180 degrees or other degrees can be obtained with reference to a table of 90 degrees.
Preferably, when the reference table is a 360 degree table, with 1024 as 1KHz, the reference table is still based on a 90 degree table, and the 90 degree table is built in the chip firmware:
Figure BDA0002105423090000062
Figure BDA0002105423090000071
the actual position of the look-up table (DPsin) is actually the relative position of the current carrier period position in the entire sine table. I.e. the actual position of the current carrier period position in the 1024 data tables.
The reference duty and the reference carrier period position, referred to as the reference position for short. The difference between the reference position and the actual position of the lookup table is that if the reference position is a non-360-degree table, for example, a 90-degree table, the reference carrier period position is only in a 90-degree range, and the actual position of the lookup table is in a 360-degree range, so that the actual position of the lookup table is divided into 4 quadrants for lookup in the reference carrier period position. Alternatively, the reference position is a data number in which the reference duty is arranged in order in the reference table. He starts at 0 and increments down sequentially.
Preferably, when the table is 360 degrees, the actual table lookup position is the table lookup position.
And S205, obtaining an output duty according to the reference duty and the output voltage closed loop.
Output duty is the reference duty × feedback voltage ratio/256 found in a look-up table.
Ratio of feedback voltage calculation: referred to as feedback voltage ratio. The chip obtains a feedback voltage value through an AD conversion mode, and then calculates according to set parameters of a set main interface to obtain an actual feedback proportional value.
And step S206, outputting the output duty through the chip PWM.
In the embodiment of the invention, sine wave duty output can be flexibly realized by inputting more than 3 parameters such as sine wave frequency, carrier frequency, output voltage closed loop and the like, so that the input and output parameters of the inverter can be adjusted, and the efficiency of adjusting the inverter can be improved.
Fig. 2 shows another inverter control method with adjustable input/output parameters according to an embodiment of the present invention, which includes the following specific steps:
step S201, the chip receives input and output parameters, where the input and output parameters at least include output sine wave frequency, carrier frequency, and output voltage closed loop.
Here, the output sine wave frequency is also referred to as the output sine wave frequency or the output frequency in the industry.
A chip (chip) is a general name for a semiconductor device product. Is a carrier of Integrated Circuit (IC) and is formed by wafer dicing.
The output sine wave frequency provided by the embodiment of the invention is adjustable, and the input parameter is a value amplified by 10 times because the output sine wave frequency is accurate to 0.1Hz, so that the input parameter can be debugged at the pc end by a user and is visual and visible.
The output voltage closed loop, for example, a value obtained by dividing an output ac 220V voltage by a resistor, is an output voltage closed loop, and is also called an output voltage closed loop value, and is usually less than 5V. The output ac voltage 220V or 110V is called the voltage amplitude. The adjustable voltage amplitude refers to closed-loop control according to the closed-loop value of the output voltage.
Step S202, obtaining the number of carrier cycles according to the carrier frequency and the output sine wave frequency.
Sine waves, also referred to in the industry simply as sine waves.
The output sinusoidal waveform frequency, which may also be referred to as the output wave frequency or output waveform frequency Fsine (Hz).
The sine wave carrier frequency is designed to be fcary (khz). According to the calculation, one PWM carrier period Tcarry is 1s/Fcarry is 1, 000, 000us/Fcarry (khz).
And then calculating the number of points corresponding to each frequency, namely the number of carrier cycles. Assuming that the frequency of the output sine wave is Fsine (Hz), the period of the output sine wave is Tsine.
Then the total number of carrier cycles required to invert one cycle of the ac output frequency is equal to the output waveform period divided by the carrier period.
For example, when the ac output frequency is 50hz (Fsine), the carrier frequency is 20kHz (Fcarry), and the carrier period (Tcarry) is 1/Fcarry 1/20kHz, a sinusoidal waveform period (Tsine) is output, which is also referred to as output waveform period (Tsine) 1/Fsine.
Carrier cycle number (PointCnt) ═ Tsine/Tcarry.
Preferably, the entire sine wave is set to 1024 points, such that 256 points are provided every 90 degrees, 512 points are provided every 180 degrees, 1024 points are provided every 360 degrees, and 0.35 degree is provided. Thus, if there is a 90 degree table, the table values of the other 3 quadrants can be obtained by operation.
Preferably, the carrier frequency is in the unit of KHz, which may be 1024 as 1KHz for convenience in sine wave calculation. Because the table inside the program can be calculated based on 256, so that 4 times of calculation is performed between 1024 and 256, and both 256 and 1024 calculations can be directly shifted to the operation processing, thereby increasing the operation speed. At this time, the sine wave carrier frequency is designed to be fcary (khz). According to the calculation, one PWM carrier period Tcarry is 1s/Fcarry is 1, 000, 000us/(Fcarry 1024 Hz).
That is, at this time, the calculation formula of the carrier cycle number is:
Figure BDA0002105423090000091
and step S203, obtaining the actual position of the table lookup according to the carrier period number and the current carrier period position.
The current carrier cycle position (Curstep) is a variable, and is automatically increased by one every time of calculation, and the value is automatically cleared when the carrier cycle number is reached. The actual position of the lookup table is the actual position in the reference table.
And step S2041, obtaining a carrier quadrant according to the actual position of the table lookup.
The actual position of the lookup table is the actual position in the reference table.
The reference table is an ordered set of data elements of the same type whose values vary according to the sine value law.
Since the sine wave output is typically 0-360 degrees. It is known that a sine wave is symmetrical every 90 degrees. Therefore, when designing the reference form, we only need to design a 90-degree form, or a 180-degree form, or a 360-degree form. In practice, a table of 180 degrees or other degrees can be obtained with reference to a table of 90 degrees.
Preferably, when the reference table is a 180 degree table, 1024 is taken as 1KHz, and the reference table is still based on a 90 degree table, and the 90 degree table is built in the chip firmware:
Figure BDA0002105423090000101
the actual position of the look-up table (DPsin) is actually the relative position of the current carrier period position in the entire sine table. This is the actual position of the current carrier period position in the 1024 data sets.
When looking up the table, the distribution points between 0 and 90 degrees are different because of the difference of the frequency. Thus, we have to skip the table lookup in the table. As to how many points to hop each time, how to hop, this is calculated based on the current frequency and the current frequency carrier position. If the current frequency is the current carrier period position (Curstep), the actual position in the designed table, i.e. the actual position of the lookup table, is calculated as
Figure BDA0002105423090000111
The positive spin is 360 degrees and the reference table is 90 degrees, so the carrier quadrant needs to be calculated. The carrier quadrant is simply the actual position of the carrier lookup table divided by the reference table length 256. The integer obtained by operation is the carrier quadrant, and the remainder is the table lookup position.
The carrier quadrant (sin _ TabLoop) is calculated as:
Figure BDA0002105423090000112
and step S2042, searching for the reference duty in a preset reference table according to the carrier quadrant.
The reference duty and the reference carrier period position, referred to as the reference position for short. The difference between the reference position and the actual position of the lookup table is that if the reference position is a non-360-degree table, for example, a 90-degree table, the reference carrier period position is only in a 90-degree range, and the actual position of the lookup table is in a 360-degree range, so that the actual position of the lookup table is divided into 4 quadrants for lookup in the reference carrier period position. Alternatively, the reference position is a data number in which the reference duty is arranged in order in the reference table. He starts at 0 and increments down sequentially.
Preferably, when the table is 180 degrees, at this time, if the actual position of the table lookup is greater than the length of the table, the difference value obtained by subtracting the length of the table from the actual position of the table lookup is the table lookup position; if the actual position of the table lookup is not larger than the length of the table, the actual position of the table lookup is the table lookup position.
And S205, obtaining an output duty according to the reference duty and the output voltage closed loop.
Output duty is the reference duty × feedback voltage ratio/256 found in a look-up table.
Ratio of feedback voltage calculation: referred to as feedback voltage ratio. The chip obtains a feedback voltage value through an AD conversion mode, and then calculates according to set parameters of a set main interface to obtain an actual feedback proportional value.
And step S206, outputting the output duty through the chip PWM.
In the embodiment of the invention, sine wave duty output can be flexibly realized by inputting more than 3 parameters such as sine wave frequency, carrier frequency, output voltage closed loop and the like, so that the input and output parameters of the inverter can be adjusted, and the efficiency of adjusting the inverter can be improved.
Fig. 3 shows a further inverter control method with adjustable input/output parameters according to an embodiment of the present invention, where a specific method flow is as follows:
step S201, the chip receives input and output parameters, where the input and output parameters at least include output sine wave frequency, carrier frequency, and output voltage closed loop.
Here, the output sine wave frequency is also referred to as the output sine wave frequency or the output frequency in the industry.
A chip (chip) is a general name for a semiconductor device product. Is a carrier of Integrated Circuit (IC) and is formed by wafer dicing.
The output sine wave frequency provided by the embodiment of the invention is adjustable, and the input parameter is a value amplified by 10 times because the output sine wave frequency is accurate to 0.1Hz, so that the input parameter can be debugged at the pc end by a user and is visual and visible.
The output voltage closed loop, for example, a value obtained by dividing an output ac 220V voltage by a resistor, is an output voltage closed loop, and is also called an output voltage closed loop value, and is usually less than 5V. The output ac voltage 220V or 110V is called the voltage amplitude. The adjustable voltage amplitude refers to closed-loop control according to the closed-loop value of the output voltage.
Step S202, obtaining the number of carrier cycles according to the carrier frequency and the output sine wave frequency.
Sine waves, also referred to in the industry simply as sine waves.
The output sinusoidal waveform frequency, which may also be referred to as the output wave frequency or output waveform frequency Fsine (Hz).
The sine wave carrier frequency is designed to be fcary (khz). According to the calculation, one PWM carrier period Tcarry is 1s/Fcarry is 1, 000, 000us/Fcarry (khz).
And then calculating the number of points corresponding to each frequency, namely the number of carrier cycles. Assuming that the frequency of the output sine wave is Fsine (Hz), the period of the output sine wave is Tsine.
Then the total number of carrier cycles required to invert one cycle of the ac output frequency is equal to the output waveform period divided by the carrier period.
For example, when the ac output frequency is 50hz (Fsine), the carrier frequency is 20kHz (Fcarry), and the carrier period (Tcarry) is 1/Fcarry 1/20kHz, a sinusoidal waveform period (Tsine) is output, which is also referred to as output waveform period (Tsine) 1/Fsine.
Carrier cycle number (PointCnt) ═ Tsine/Tcarry.
Preferably, the entire sine wave is set to 1024 points, such that 256 points are provided every 90 degrees, 512 points are provided every 180 degrees, 1024 points are provided every 360 degrees, and 0.35 degree is provided. Thus, if there is a 90 degree table, the table values of the other 3 quadrants can be obtained by operation.
Preferably, the carrier frequency is in the unit of KHz, which may be 1024 as 1KHz for convenience in sine wave calculation. Because the table inside the program can be calculated based on 256, so that 4 times of calculation is performed between 1024 and 256, and both 256 and 1024 calculations can be directly shifted to the operation processing, thereby increasing the operation speed. At this time, the sine wave carrier frequency is designed to be fcary (khz). According to the calculation, one PWM carrier period Tcarry is 1s/Fcarry is 1, 000, 000us/(Fcarry 1024 Hz).
That is, at this time, the calculation formula of the carrier cycle number is:
Figure BDA0002105423090000131
and step S203, obtaining the actual position of the table lookup according to the carrier period number and the current carrier period position.
The current carrier cycle position (Curstep) is a variable, and is automatically increased by one every time of calculation, and the value is automatically cleared when the carrier cycle number is reached. The actual position of the lookup table is the actual position in the reference table.
And step S2041, obtaining a carrier quadrant according to the actual position of the table lookup.
The actual position of the lookup table is the actual position in the reference table.
The reference table is an ordered set of data elements of the same type whose values vary according to the sine value law.
Since the sine wave output is typically 0-360 degrees. It is known that a sine wave is symmetrical every 90 degrees. Therefore, when designing the reference form, we only need to design a 90-degree form, or a 180-degree form, or a 360-degree form. In practice, a table of 180 degrees or other degrees can be obtained with reference to a table of 90 degrees.
Preferably, when the reference table is a 180 degree table, with 1024 as 1KHz, the reference table is built into the chip firmware:
Figure BDA0002105423090000141
the actual position of the look-up table (DPsin) is actually the relative position of the current carrier period position in the entire sine table. This is the actual position of the current carrier period position in the 1024 data sets.
When looking up the table, the distribution points between 0 and 90 degrees are different because of the difference of the frequency. Thus, we have to skip the table lookup in the table. As to how many points to hop each time, how to hop, this is calculated based on the current frequency and the current frequency carrier position. If the current frequency is the current carrier period position (Curstep), the actual position in the designed table, i.e. the actual position of the lookup table, is calculated as
Figure BDA0002105423090000151
The positive spin is 360 degrees and the reference table is 90 degrees, so the carrier quadrant needs to be calculated. The carrier quadrant is simply the actual position of the carrier lookup table divided by the reference table length 256. The integer obtained by operation is the carrier quadrant, and the remainder is the table lookup position.
The carrier quadrant (sin _ TabLoop) is calculated as:
Figure BDA0002105423090000152
in step S2043, since the value calculated by the formula in step S2041 is that the actual position of the table is within the whole period range of 0-360 degrees, and our actual table is within the range of 0-90 degrees, we must also convert the point calculated by the above table into which specific 90-degree range of the sine wave, and the formula is as follows:
Figure BDA0002105423090000153
and calculating to obtain the quadrant and the position of the sensor. Where the integer is the quadrant and the remainder is the position.
When the sin _ TabLoop integer is 0, the sin _ TabLoop integer is in the range of 0-90 degrees, and the table is looked up according to increasing sorting to obtain the reference duty.
When the sin _ TabLoop integer is 1, the range is 90-180 degrees, and the reference duty is obtained by looking up the table according to descending sorting.
When the sin _ TabLoop integer is 2, the range is 180 DEG and 270 DEG, and the table is looked up according to the ascending sorting to obtain the reference duty.
When the sin _ TabLoop integer is 3, the range is 270-.
The reference duty and the reference carrier period position, referred to as the reference position for short. The difference between the reference position and the actual position of the lookup table is that if the reference position is a non-360-degree table, for example, a 90-degree table, the reference carrier period position is only in a 90-degree range, and the actual position of the lookup table is in a 360-degree range, so that the actual position of the lookup table is divided into 4 quadrants for lookup in the reference carrier period position. Alternatively, the reference position is a data number in which the reference duty is arranged in order in the reference table. He starts at 0 and increments down sequentially. If the table is a 360-degree table, the reference position is consistent with the actual position of the lookup table.
And S205, obtaining an output duty according to the reference duty and the output voltage closed loop.
Output duty is the reference duty × feedback voltage ratio/256 found in a look-up table.
Ratio of feedback voltage calculation: referred to as feedback voltage ratio. The chip obtains a feedback voltage value through an AD conversion mode, and then calculates according to set parameters of a set main interface to obtain an actual feedback proportional value.
And step S206, outputting the output duty through the chip PWM.
In the embodiment of the invention, sine wave duty output can be flexibly realized by inputting more than 3 parameters such as sine wave frequency, carrier frequency, output voltage closed loop and the like, so that the input and output parameters of the inverter can be adjusted, and the efficiency of adjusting the inverter can be improved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (5)

1. The control method of the inverter with adjustable input and output parameters is characterized by comprising the following steps:
the chip receives input and output parameters, wherein the input and output parameters at least comprise output sine wave frequency, carrier frequency and output voltage closed-loop value; the whole sine wave is set to be 1024 sampling points, the unit of the carrier frequency is KHz, and the carrier frequency takes 1024Hz as 1 KHz;
obtaining the number of carrier cycles according to the carrier frequency and the output sine wave frequency, wherein the calculation formula of the number of carrier cycles is as follows:
Figure FDA0002468076670000011
obtaining a table lookup actual position according to the carrier period number and the current carrier period position, wherein a calculation formula of the table lookup actual position is as follows:
Figure FDA0002468076670000012
wherein CurStep is the current carrier cycle position;
according to the actual position of the table lookup, looking up a reference duty in a preset reference table; when the reference table is a table with other degrees except for 360-degree tables, a carrier quadrant is obtained according to the actual position of the table lookup, and the calculation formula of the carrier quadrant is as follows:
Figure FDA0002468076670000013
according to the carrier quadrant, searching a reference duty in a preset reference table; wherein the reference table includes at least the reference duty and a reference position, and the reference table is based on a table of 90 degrees and is based on a sine wave set as 1024 sampling points;
obtaining an output duty according to the reference duty and the output voltage closed-loop value, wherein a calculation formula of the output duty is as follows:
output duty × feedback voltage ratio/256;
and outputting the output duty through the chip PWM.
2. The method for controlling an inverter with adjustable input/output parameters according to claim 1, wherein the reference table is a 90-degree table, and the step of searching for the reference duty in the preset reference table according to the carrier quadrant includes the following steps:
when the carrier quadrant integer is 0, searching for the reference duty in the reference table according to ascending order;
when the carrier quadrant integer is 1, searching for the reference duty in the reference table according to descending order;
when the carrier quadrant integer is 2, searching for the reference duty in the reference table according to ascending order;
and when the carrier quadrant integer is 3, searching the reference duty in the reference table according to descending order.
3. The method of controlling an inverter whose input-output parameters are adjustable according to claim 2, wherein the reference table is set at 256 points, one point every three and five degrees of zero.
4. The method of controlling an inverter with adjustable input/output parameters according to claim 1, wherein the reference table is a 180-degree table, and the reference table is set at 512 points, one point every zero point by three or five degrees.
5. The method of controlling an inverter with adjustable input/output parameters according to claim 1, wherein the reference table is a 360-degree table, and the reference table is set at 1024 points, one point every zero point by three or five degrees.
CN201910551028.7A 2017-01-23 2017-01-23 Inverter control method with adjustable input and output parameters Active CN110138254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910551028.7A CN110138254B (en) 2017-01-23 2017-01-23 Inverter control method with adjustable input and output parameters

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910551028.7A CN110138254B (en) 2017-01-23 2017-01-23 Inverter control method with adjustable input and output parameters
CN201710048862.5A CN106787921B (en) 2017-01-23 2017-01-23 A kind of adjustable inverter control method of input/output argument

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201710048862.5A Division CN106787921B (en) 2017-01-23 2017-01-23 A kind of adjustable inverter control method of input/output argument

Publications (2)

Publication Number Publication Date
CN110138254A CN110138254A (en) 2019-08-16
CN110138254B true CN110138254B (en) 2020-07-07

Family

ID=58942423

Family Applications (4)

Application Number Title Priority Date Filing Date
CN201910551030.4A Active CN110138255B (en) 2017-01-23 2017-01-23 Inverter control method with adjustable input and output parameters
CN201910551041.2A Active CN110120757B (en) 2017-01-23 2017-01-23 Inverter control method with adjustable input and output parameters
CN201910551028.7A Active CN110138254B (en) 2017-01-23 2017-01-23 Inverter control method with adjustable input and output parameters
CN201710048862.5A Active CN106787921B (en) 2017-01-23 2017-01-23 A kind of adjustable inverter control method of input/output argument

Family Applications Before (2)

Application Number Title Priority Date Filing Date
CN201910551030.4A Active CN110138255B (en) 2017-01-23 2017-01-23 Inverter control method with adjustable input and output parameters
CN201910551041.2A Active CN110120757B (en) 2017-01-23 2017-01-23 Inverter control method with adjustable input and output parameters

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201710048862.5A Active CN106787921B (en) 2017-01-23 2017-01-23 A kind of adjustable inverter control method of input/output argument

Country Status (1)

Country Link
CN (4) CN110138255B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138255B (en) * 2017-01-23 2020-07-03 深圳市金芯微电子有限公司 Inverter control method with adjustable input and output parameters
CN112803790B (en) * 2019-11-13 2024-07-09 北京金风科创风电设备有限公司 Control method and controller of converter

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001197725A (en) * 2000-01-07 2001-07-19 Fuji Electric Co Ltd Method for generating pwm pulse
CN101635558A (en) * 2008-07-25 2010-01-27 本田技研工业株式会社 Inverter generator
CN101873077A (en) * 2010-06-29 2010-10-27 上海大学 Multilevel current inverter circuit with single drive power supply as well as control device and method thereof
CN104485834A (en) * 2014-12-16 2015-04-01 中国铁路总公司 SPWM (Sinusoidal Pulse Width Modulation) method of VVVF (Variable Velocity Variable Frequency) inverter
CN105262458A (en) * 2015-09-23 2016-01-20 武汉大禹电气有限公司 FPGA-based multi-level SPWM pulse generating system and method
CN106155177A (en) * 2016-07-28 2016-11-23 河南西瑞医疗电子技术有限公司 The method realizing SPWM waveform based on digital processing unit
CN110138255A (en) * 2017-01-23 2019-08-16 深圳市金芯微电子有限公司 A kind of adjustable inverter control method of input/output argument

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4620143A (en) * 1984-11-09 1986-10-28 Westinghouse Electric Corp. Digital pulse width modulation motor control system
KR100320624B1 (en) * 1999-03-11 2002-01-12 이을재 Wayside ATC signaling method for railway vehicles and device for the same
KR100583974B1 (en) * 1999-12-31 2006-05-29 주식회사 엘지이아이 Method for PWM signal generation in inverter apparatus
JP2004364366A (en) * 2003-06-02 2004-12-24 Seiko Epson Corp Pwm control system
ITVA20070010A1 (en) * 2007-01-17 2008-07-18 St Microelectronics Srl METHOD AND RELATIVE DEVICE FOR DETERMINING THE THREE DUTY CYCLE OF INVERTER PWM SIGNALS
TWI392214B (en) * 2009-06-04 2013-04-01 Univ Nat Chiao Tung The driving device and driving method of multi - phase straight / AC converter
CN101777869A (en) * 2010-01-19 2010-07-14 郝俊山 Alternating current variable frequency control method suitable for vibration ageing
CN101997524B (en) * 2010-09-26 2012-05-30 中南林业科技大学 Method and digital chip for generating multi-path SPWM signals
CN102142784B (en) * 2011-03-31 2013-01-23 华中科技大学 Full digital five-level inverter sinusoidal pulse width modulation (SPWM) control method
CN102857087B (en) * 2012-09-17 2015-01-14 海信(山东)空调有限公司 Adaptive control method of power factor
CN103219904B (en) * 2013-04-10 2014-12-17 哈尔滨工程大学 Method for synchronously controlling parallel connection of three-phase inverter
CN104333256B (en) * 2014-10-31 2017-07-18 武汉工程大学 Digital Natural Sampling SPWM control methods and system based on FPGA
CN104467502A (en) * 2014-11-27 2015-03-25 北京航天控制仪器研究所 Digital realizing method for frequency doubling sine pulse width modulation
CN205051622U (en) * 2015-11-02 2016-02-24 湖北汽车工业学院 SPWM's digital control system in electric machine control for electric motor car

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001197725A (en) * 2000-01-07 2001-07-19 Fuji Electric Co Ltd Method for generating pwm pulse
CN101635558A (en) * 2008-07-25 2010-01-27 本田技研工业株式会社 Inverter generator
CN101873077A (en) * 2010-06-29 2010-10-27 上海大学 Multilevel current inverter circuit with single drive power supply as well as control device and method thereof
CN104485834A (en) * 2014-12-16 2015-04-01 中国铁路总公司 SPWM (Sinusoidal Pulse Width Modulation) method of VVVF (Variable Velocity Variable Frequency) inverter
CN105262458A (en) * 2015-09-23 2016-01-20 武汉大禹电气有限公司 FPGA-based multi-level SPWM pulse generating system and method
CN106155177A (en) * 2016-07-28 2016-11-23 河南西瑞医疗电子技术有限公司 The method realizing SPWM waveform based on digital processing unit
CN110138255A (en) * 2017-01-23 2019-08-16 深圳市金芯微电子有限公司 A kind of adjustable inverter control method of input/output argument

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A new variable frequency inverted sine carrier PWM modulated semi-cross switched multilevel inverter topologies;E.Avinash 等;《IEEE》;20161231;全文 *
基于调制函数的SVPWM算法;陆海峰 等;《电工技术学报》;20080229;37-43页 *
基于调制函数的五相电压源逆变器SVPWM 算法;高宏伟 等;《电机与控制学报》;20140228;56-61、68页 *

Also Published As

Publication number Publication date
CN106787921B (en) 2019-07-19
CN110138254A (en) 2019-08-16
CN110120757B (en) 2020-06-23
CN110120757A (en) 2019-08-13
CN110138255A (en) 2019-08-16
CN110138255B (en) 2020-07-03
CN106787921A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
AU2013203402B2 (en) Converter control device and air conditioner including converter control device
CN104377951B (en) power factor correction method and device, air conditioner and electric appliance
Ghanem et al. A new control strategy to achieve sinusoidal line current in a cascade buck-boost converter
CN111332143B (en) Variable Zero Voltage Switching (ZVS) hybrid controller for a Power Factor Corrector (PFC)
CN110138254B (en) Inverter control method with adjustable input and output parameters
CN103493354A (en) System and method for off-line ups
CN106416040A (en) Direct current power supply device, and refrigeration cycle-applied apparatus provided with same
WO2020125072A1 (en) Stepless speed regulation circuit and method for single-phase motor
CN105450141B (en) AC motor drives and its driving method
US8853987B2 (en) Electric tool
Ancuti et al. High efficiency three-phase interleaved buck-type PFC rectifier concepts
Yildirim et al. PWM AC chopper control of single-phase induction motor for variable-speed fan application
CN105846728A (en) Method for controlling fan rotation speed by means of intelligent AC voltage regulation
Olarescu et al. Performances/efficiency analysis for high efficiency three-phase buck-type PFC rectifiers
Chen et al. Input current control for bridgeless PFC converter without sensing current
Jibhakate et al. Power factor improvement using nine switch AC-DC-AC converter
CN205283449U (en) AC motor drive arrangement
Thanyaphirak et al. PWM AC chopper control schemes for energy saving of single-phase induction motors
Bhargava et al. Analysis of Asymmetrical Cascaded 7 level and 9 level Multilevel inverter design for Asynchronous Motor
CN110768539A (en) AC-AC converter using IGBT or MOS tube and control method thereof
CN214480365U (en) Stepless speed regulating device
Ancuti et al. Performances of the eight-switch versus interleaved eight-switch three-phase buck-type PFC rectifiers
CN218940978U (en) Power supply circuit of single-phase motor
CN214540464U (en) Phase-shift control circuit, system and ventilation treatment equipment
CN203406826U (en) An air conditioner compressor control circuit and a variable frequency air conditioner

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