The invention relates to a polynomial-based method which provides a convergence to the 1/x function which needs to be calculated in order to perform the nonlinear control functions in the gridgrid-connected inverter and power converterpower converter applications that require the high-speed digital signal processing and high control bandwidth, and a device that operates according to said method.
In recent applications of the theoretical mathematics, often the inverse of an equation or quantity (1/x) needs to be calculated. This requirement exists in every field from today's computers to space technologies. However, due to the difficulty of calculation, high-speed calculation algorithms have been developed depending on the precision. In the state of the art, iterative methods based on Newton-Raphson are often used and the desired value is calculated iteratively using the slope of the 1/x function. Such iterative methods select an initial value when starting the calculation, and iteratively proceed. However, the precision of the calculation result varies depending on how far the starting point is from the output. In some cases, this causes such methods to diverge rather than converge and become unstable. The iterative methods include Householder method and Halley methods. (Wiley-Interscience, 1987).
On the other hand, the desired 1/x value can be calculated by obtaining an approximate polynomial using the Taylor series or approximating by the use of the general polynomial structures. (N. Takagi, 1997, M. Ito, N. Takagi, and S. Yajima, April 1997, M. Ercegovac, T. Lang, J.-M. Muller, and A. Tisserand, July 2000).
In another state of the art, a look-up-table (LUT) can be created depending on the application precision and the approximate 1/x value can be obtained over said LUT (look-up tables). The mentioned method causes very high memory usage depending on the precision. This makes it to be a much more costly solution compared to the iterative or polynomial-based calculation methods.
To this date, the control functions were realized by a microcontroller in many applications. The microcontrollers are the programmable controller chips that contain computing, memory, data processing, and other peripheral units. The ability of standard microcontrollers to be a solution to the present applications has been limited within the scope of the advancing technology and the developing field conditions and requirements. For this reason, companies digitally develop their own application-specific chips (ASICs) or develop the embedded control systems using the field programmable gate arrays (FPGA) chips. In these methods, the programmer makes their own digital design completely, there is no available algorithm for the computation of complex functions such as 1/x, etc. Designers need to develop these algorithms themselves and implement them in their chips. This complicates the design process and extends the product development process.
The object of the invention is to perform a polynomial-based method which provides a convergence to the 1/x function which needs to be calculated in order to perform the nonlinear control functions in the gridgrid-connected inverter and power converterpower converter applications which require the high-bandwidth digital signal processing and control.
On the other hand, in the real-time embedded control systems the method of the invention; may be employed with ease, high-accuracy and high-efficiency on a digital signal processor (DSP) and/or application specific chips (ASIC) and/or field programmable gate arrays (FPGA) the purpose of which is to measure or filter the analog signals.
The numbers in the drawings are provided below in order to provide a better understanding of the invention:
The invention relates to a polynomial-based method (200) which provides a convergence to the 1/x function which needs to be calculated in order to perform the nonlinear control functions in the gridgrid-connected inverter and power converterpower converter applications that require the high-bandwidth digital signal processing and the control technique, and a device (100) which operates according to said method (200).
The device (100) of the invention; comprises at least one look-up table unit (LUT) (1), at least one control unit (2), at least one addition unit (3), at least one multiplication unit (4) and at least one register unit (5).
The device (100) of the invention; can calculate the 1/x function with high-accuracy and high-speed by using the register units (5) which keep the records of the data such as the look-up table unit (1), the control unit (2), the addition unit (3) and the multiplication unit (4). Said register units (5) register the data in its inputs at each clock pulse (clk) sent by the control unit (2) and apply said recorded data to its outputs. These register units (5) can be reset to the value which is desired by the control unit (2) (for the method (200), this value equals to init: 1). For said resetting, there is one resetting input and one value input to be taken in the resetting.
The 1/x function is often applied for the DC bus voltage. These inverters and power converterpower converters calculate the modulation index depending on the information resulting from this operation and apply pulse width modulated control signals to power semiconductor devices. In these applications, the 1/x operation is realized based on the look-up table unit (LUT) (1) and some other approximate calculation methods in the source library of the microcontroller used.
The device (100) of the invention operates according to the steps of the below method (200).
The method (200) of the invention has no risk of divergence compared to the iterative methods. Therefore, it has a general convergent characteristic.
The invention has an accuracy as many as the number of rising edges of the applied clock frequency. Each clock frequency corresponds to one degree of the polynomial which is the Taylor series expansion. In one preferred embodiment, for example with 4 hour rising edges, an approximate calculation can be made up to the 4th degree, while with 16 rising edges, precision up to 16th degree can be obtained. The method (200) of the invention provides superiority over other methods in applications in which the precise calculations within a very low number of rising edges of the clock in the control loops that need to be fast are required and since the same calculation units are used on the chip repeatedly, it uses less chip area compared to competing methods, thanks to its recursive structure.
The invention is based on the approximation of the f(x)=1/x function around the x0 point over the Taylor Series polynomial. Taylor series is shown by the below equation;
Wherein;
When the 1/x function is linearized around the a point using the Taylor Series, the value 1/xm can be calculated as below:
When the system is considered as a polynomial herein;
when said polynomial equation in the table (3) is calculated for infinite degrees, it gives exactly the accurate result. However, in case of starting from a point close enough to the reverse point which is searched, the “error rate” decreases below the acceptable level in N calculations.
Wherein, for 32-bit fixed-point mathematical operations, especially inclined to digital design, a look-up table unit (LUT) (1) is created by selecting x0 values as 1, 2, 4, 8, 16, 32 . . . Table-1 which is created for said x0 values is given below. In this way, operations are repeated in N steps by selecting a small starting point closest to the value the inverse of which is desired to be calculated. Therefore, each operation is multiplied by a constant multiple of the previous result.
Herein the control unit (2) resets the register unit (5) to the value of “1” and starts the calculation by pulling the power of 2 closest to the input value from the look-up table as the starting point. An upper degree of the polynomial shown in table (4) is calculated with each clock pulse and added to the result recursively. When the operations are repeated as many as “N” clock pulses, the equation given in the table (4) is calculated. The user herein may determine the number of clock pulses to calculate the degree as needed by determining the acceptable error rate.
The invention is a polynomial-based method (200) which provides a convergence to the 1/x function which needs to be calculated in order to perform the nonlinear control functions in the grid-connected inverter and power converter applications that require the high-bandwidth digital signal processing and control, a device (100) which operates according to said method (200), wherein it is applied industrially.
The invention is not limited to the foregoing exemplary embodiments, and one person skilled in the art may easily reveal the different embodiments of the invention. These should be considered within the scope of protection of the invention claimed in the claims.
Number | Date | Country | Kind |
---|---|---|---|
2021/012485 | Aug 2021 | TR | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/TR2021/051612 | 12/30/2021 | WO |