This application is based upon and claims priority to Turkish Patent Application No. 2020/02921, filed on Feb. 26, 2020, the disclosure of which is incorporated herein by reference in its entirety.
The present invention relates to a method for generating fully digital, high resolution feedback Pulse Width Modulation (PWM) signal.
The invention particularly relates to a method for generating fully digital, high resolution and high frequency feedback PWM (pulse width modulation) signal by means of FPGAs (Field Programmable Gate Arrays) in DC—DC, AC—DC conversion and switching power amplifier systems.
PWM is a method of generating the desired analog electrical value or signal at the output by the way of controlling the width of generated pulses. While generating PWM signals, the desired signal is compared to a given triangular wave to calculate the necessary pulse width within the triangle wave period. The PWM technique is based on generating a square wave composed of pulse widths generated by comparison and varying with the triangle wave period used for the said comparison. The said square wave typically takes average size of the reference wave. PWM ensures power control in communication systems, power supplies, power transfer circuits and signal amplifiers.
Power amplifiers are electronic circuits transferring a part of the power drawn from power supplies as input signal or a part of the input signal to load. Power amplifiers essentially draw power from a DC power supply and convert this power to a ready—to—use AC signal by taking input signal as reference. The type of AC power signal at the output terminal of the power amplifier is controlled by the input signal.
Switching power supplies can provide PWM—controlled, quick transfer response with high power density and high efficiency. PWM—controlled current—mode power amplifiers are used in magnetic resonance imaging devices to drive gradient coil elements.
FPGAs (Field Programmable Gate Arrays) are digital integrated circuits consisting of programmable logic blocks and interconnections between these blocks. The function of each logic block can be adjusted by the user. Programmable logic blocks are embedded in the interconnections. Their configuration and communication between them is achieved through interconnections. The input—output blocks establish the connection between the intermedia connections and the package legs of the integrated circuit.
In the prior art, during digital PWM generation resolution is limited to clock frequency of the digital board, which reduces PWM resolution in high frequencies and leads to disturbances in the signal.
Patent application numbered CN105071414 is encountered in the literature as an example of the prior art. The application relates to a design method for a wide—area time—delay PID damping controller of an electrical system. However, the said invention makes no mention of increasing the resolution of PWM signal by using the IODELAY function on FPGA and the feedback system developed for the purpose.
Literature review of the prior art also revealed another publication, namely “An Efficient Strategy to Generate High Resolution Three—Phase Pulse Width Modulation Signal Based on Field Programmable Gate Array”. The article describes the method for generating sinusoidal PWM signals. However, the said article also makes no mention of generating PWM signals by making corrections using feedback.
In conclusion, the drawbacks explained above and the shortcomings in existing solutions to the problems have necessitated improvement in the related technical field.
The present invention is developed by taking inspiration from the existing conditions and aims to eliminate the drawbacks explained above.
The primary object of the invention is to provide a system for generating fully digital high resolution PWM (Pulse Width Modulation) signal with feedback.
Another object of the invention is to control switching full bridge power amplifiers by way of the generated fully digital high resolution PWM.
One other object of the invention is to generate high—frequency PWM without reducing resolution and causing disturbances in signals.
In order to achieve the objectives specified above, the invention relates to a method for generating digital, high resolution pulse width modulation signals and a digital feedback correction method suited to the method of generation intended for use in feed forward systems, feedback systems and combined feed forward and feedback systems, comprising the following process steps:
The below drawings and the detailed description referring to these drawings provide for a clearer understanding of the structural and characteristic properties and all benefits of the present invention; therefore, the evaluation needs to take these drawings and the detailed description into account.
This detailed description discloses a method for generating fully digital, high resolution feedback pulse width modulation (PWM) signal by the way of the IO Delay element (IO) presented according to the invention and preferred embodiments of the invention in order to facilitate a better understanding of the present invention.
The invention typically relates to a method for generating digital, high resolution pulse width modulation (PWM) signals and a digital feedback correction method suited to the method of generation intended for use in feed forward systems, feedback systems and combined feed forward and feedback systems, respectively shown in
In standard PWM, PWM pulses are generated by use of analog mixers, while in digital generation output widths are created by comparing FPGAs (Field Programmable Gate Arrays) with a variable calculated according to the clock used on digital integrated circuits. Therefore, if the resolution of pulse widths provided in the standard method are calculated at the single edge of the clock signal, it can have a single period or two half—periods as increase and decrease at both edges.
In the method according to the invention, the lowest resolution is increased depending on the control bit number of input—output delay (IOD) elements by means of IOD elements. Ftap value is calculated at the signal and tap calculation block (STCB) as IOD tap frequency by using the below formula:
F
tap
=F
IOdelayclock×(2nbit+2) (1)
Delays in the method according to the invention can be center—aligned as shown in
Current/voltage output values are read by way of the current/voltage sensor (S). Then, voltage value of the current value read at the forward feed block (FFB) is calculated.
The voltage value required to generate the current value desired by the user at forward feed block (FFB) is calculated by using the driven load values. After comparing the calculated voltage value with triangular wave, pulse widths are calculated at the pulse width calculation block (PWCB). Counter and tap values that correspond to the calculated pulse widths are determined based on the edge—aligned or centre—aligned PWM signal. The current value applied to the load is read by the current/voltage sensor (S). The read current value is sampled by Analog Digital Converter (ADC), converted to digital, and the error value between the digital value and the current value desired to be fed by the user (disturbed output signal y(t)) is calculated. The disturbed output signal y(t) is transmitted to proportional—integral—derivative (PID) controller and the correction value is calculated at the proportional—integral—derivative (PID) controller. The pulse amplitude corresponding to the correction value and the counter and tap values corresponding to the pulse amplitude are calculated and used to correct the values calculated at the feed forward line.
To generate the centre—aligned signal shown in
Duty cycle value is calculated by comparing the desired signal with triangular wave used to generate PWM signal. Duty cycle value is the rate of the period where the desired signal (u(t)) value is higher than triangular wave to pulse period. This rate is calculated for each period of the triangular wave. a1, a1_tap, b1, b1_tap values are calculated using the dutyn and On values and below formulas for centre—aligned PWM generation:
a1=fixed(On/Ftap/Fcounter) (2)
a1tap=On−(fixed(On/(Ftap/Fcounter))×(Ftap/Fcounter) (3)
b1=fixed(dutyn/(Ftap/Fcounter) (4)
b1tap
Following the calculations, the disturbed output signal y(t) is sampled by means of analog digital converter (ADC). Disturbed output signal y(t) is transmitted from the desired signal u(t) to proportional—integral—derivative (PID) controller and the correction value is calculated at the proportional—integral—derivative (PID) unit.
PWM signal is generated at FPGA by counting a1 and b1 counter values at Fcounter frequency. After counting 0 at the rate of a1 and 1 at the rate of b1, the sample number of total period is counted as 0 to obtain Fcounter/FWPM and to pass on to the next period of signal. Delays are applied to increasing and decreasing edges at the output by means of IO delay elements.
Delay at the rate of a1_tap value is applied to the increasing edge of the signal shown in
b1_tap=b1_tap_i+a1_tap (6)
When input—out delay (IOD) elements are controlled by n bit, tap values need to be within the range of 0−(2n−1). This is why Ftap/Fsayaç ratio is adjusted to be maximum 2n. If b1 tap value calculated using formula (6) is bigger than Ftap/Fsayaç b1 counter value is added 1, then (Ftap/Fsayaç)−1 is subtracted from b1 tap value Ftap/Fsayaç to update b1 and b1 tap values.
b1, b1_tap values calculated using the dutyn value are sufficient to generate the edge—aligned PWM signal shown in
b1=fixed(dutyn/(Ftap/Fcounter) (7)
b1tap=dutyn(fixed(dutyn/(Ftap/Fsayaç)))×(Ftap/Fcounter) (8)
PWM signal is generated at FPGA by counting b1 counter values at Fcounter frequency. After counting 1 at the rate of b1 at the beginning of period, the sample number of total period is counted as 0 to obtain Fcounter/FWPM and to pass on to the next period of signal. Delays are applied to decreasing edges at the output by means of IO delay elements. As shown in
When full—bridge switching (FBS) is used as switching mode power amplifier, the following formulas are used to calculate the duty sample numbers for left and right bridge (direction of current configured from left to right) by using the dutyn value for centre—aligned WPM signal.
After calculating the duty sample numbers for left and right bridges, counter and tap values for left and right bridges are calculated using the centre—aligned method shown in
Counter and tap values obtained at the feed forward block (FFB) output shown in
Updated counter and tap values to generate PWM signal are calculated using the formulas below:
a1_updated=a1−a1_PID (11)
b1_updated=b1+b1_PID (12)
a1_tap_updated=a1_tap−a1_tap_PID (13)
b1_tap_updated=b1_tap+b1_tap_PID−a1_tap_PID (14)
a1_tap_PID value needs to be taken into account while calculating b1_tap_updated in order not to shorten the 1 period. If tap value is smaller than 0 as a result of the addition and subtraction operations made while calculating the updated counter tap values, 1 is subtracted from the relevant counter is Ftap/Fcounter added to update the tap value.
b1_updated=b1+b1_PID (15)
b1_tap_updated=b1_tap+b1_tap_PID (16)
After generating the PWM signal, control signals of sub and top switches in each bridge is configured in reverse. Configuring control signals in reverse is known as the bridge drive method. According to this method, one of the switches is coupled to voltage source, while the other is coupled to earth. Voltage is fed to the load as long as desired while one of the switches is on and the other off.
According to another preferred embodiment of the invention, idle time adjustment circuits can be used between the circuits. While using the idle time adjustment circuit, voltage supply is protected by preventing both switches (used to couple load to voltage supply or earth) from being on at the same time. Control signal of each switch can be applied as digital WPM signal and the reverse signal. Moreover, idle time period between switches can be added to counter, tap or counter+tap periods of reverse signals. Calculations made in systems where each switch is separately controlled can be repeated based on the scenario of use.
Number | Date | Country | Kind |
---|---|---|---|
2020/02921 | Feb 2020 | TR | national |