Design of SPWM Frequency Conversion System Based on FPGA

Publisher:TranquilWhisperLatest update time:2013-12-11 Source: 电源网Keywords:FPGA  SPWM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Since pulse width modulation technology achieves the effect of voltage and frequency conversion of output voltage by adjusting the frequency and duty cycle of output pulses, it has been increasingly widely used in many fields such as motor speed regulation and inverters.

As an effective method of geophysical detection, electromagnetic method has been widely used in mineral exploration, geological disaster prediction and other fields. Electromagnetic instruments generally consist of two parts: transmitter and receiver. At present, the transmitter part of electromagnetic instruments generally directly adopts equal-width PWM technology, which has a large current harmonic distortion rate, low voltage utilization rate and low efficiency.

This paper uses FPGA technology and the principle of SPWM natural sampling to design an SPWM system for the transmitter of electromagnetic instruments. This system is applied to existing electromagnetic instruments and compared with the effect produced by the original PWM, and good results are obtained.

1 SPWM Technology Principle

The principle of SPWM signal is to compare a set of isosceles triangle waves with a sine wave, and the intersection point is used as the moment when the switch tube is "on" or "off". There are many ways to generate SPWM signal, such as harmonic elimination method, equal area method, sampling method, etc.

The method of using the intersection of the sine wave and the isosceles triangle to determine the switching mode of the switch tube is called the natural sampling method. It can be divided into unipolar triangle wave modulation method and bipolar triangle wave modulation method, and its principle diagram is shown in Figure 1. This article uses the bipolar modulation method.

2 Hardware Implementation of SPWM System

2.1 Overall system design

The system principle is shown in Figure 2. The system first generates a triangular wave signal and a sine wave signal, generates a pulse sequence by comparing the outputs of the two, and performs dead-time delay and digital filtering on the output pulses. The main modules are: frequency divider, triangular carrier generator, sine function table addressing, sine function table, dead-time delay module and digital filtering module.

2.2 Triangular Carrier Generator

In this design, a carrier triangular wave is generated by an addition and subtraction counter, and the amplitude of the triangular wave is 256. First, count from 0 to 256, then subtract from 256 to 0 to get a half-cycle of the triangular carrier, and then repeat the counting method of the first half cycle, and negate the obtained count value, so that a cycle of the triangular carrier can be obtained.

Figure 3 is a simulation diagram of the triangular carrier module. The frequency division of the triangular wave can be achieved by setting the value of triwave_fp. When the system clock is 10 MHz, Figure 3(a) sets triwave_fp to 0, and the period of the triangular wave is 102.4 μs; Figure 3(b) sets triwave_tp to 1, and its period becomes 204.8 μs. By changing the value of triwave_fp, carriers of different frequencies can be obtained.

 

2.3 Sine Wave Generator

This design uses Matlab software tools to divide the positive half-cycle sine wave into 512 equal parts and store the data in ROM. By calling the data in ROM, the positive half-cycle sine wave can be realized. Then, the value of the negative half-cycle can be obtained by negating the positive half-cycle. In order to make the pulse width adjustable, this design adds a sine amplitude multiplication adjustment module, and its module schematic diagram is shown in Figure 4.

Similarly, the module frequency division unit and amplitude modulation unit can be controlled to change the frequency and amplitude of the sine wave.


2.4 Comparison Module

After the triangular carrier and sine reference wave generation modules are designed, their output results are compared to generate SPWM pulse signals. This can be implemented using the Verilog hardware description language, and the comparison rule is set to output '1' when the carrier value is less than the sine wave function value, otherwise it outputs '0'.

2.5 Dead Time Delay Module

After the comparison module, two SPWM sequence signals (xl, xh) are obtained to control the switches of the upper and lower bridge arms of the circuit. In theory, these two signals are completely complementary. However, since the turn-on and turn-off time of the power device are not completely equal, the turn-off time of the device is actually longer than the turn-on time. Therefore, in order to avoid transient short circuits of the power devices on the upper and lower bridge arms, a delay must be provided to ensure that the corresponding switch tube has been turned off before the power switch tube is turned on.

The pulse delay is realized by the rising edge, and the delay time is mainly realized by a 10-bit up-down counter. Assuming the dead time is max, the counting rules of the delay counter are as follows:
(1) When the input is 0, if the count value is equal to 0, the count value remains unchanged; otherwise, it is counted down by 1;

(2) When the input is 1, if the count value is equal to max, the count value remains unchanged; otherwise, the count is increased by 1;

(3) When the input is 1 and the dead zone counter value is max, xl=0, xh=1, and the upper bridge arm is turned on;

(4) When the input is 0 and the dead zone counter value is 0, xl=1, xh=0, and the lower bridge arm is turned on;

(5) When the dead zone counter value is between 0 and max, xl=0, xh=0, and both the upper and lower bridge arms are cut off, forming a dead zone.

2.6 System Simulation

Finally, you can set the clock, frequency division, dead time, etc. as needed. The design is simulated, and the triangle wave frequency is set to 5 times the sine wave frequency. The simulation results are shown in Figure 5.

Observing the output signals xh, xl in FIG5 , it can be seen that the pulse width varies according to the sinusoidal law, so the design meets the requirements.

2.7 Filter Module

Since there are inevitably many interferences in the data collection process, the effective information is covered by them, so the data must be processed by digital filtering to improve the signal-to-noise ratio. In order to increase the speed of research and development, the filtering module is directly generated using the IP core of Altera.

By setting parameters and designing a digital filter with a passband frequency of 7.5 to 12.5 kHz, the Hanning window design structure is adopted, and the digital filter design and analysis tool of Matlab software is used to obtain the frequency attenuation diagram as shown in Figure 6. It can be seen that the passband effect is obvious and meets the system requirements.

3. Application of the system

The designed SPWM system is applied to an electromagnetic instrument designed by a company. Its main principle is to use special equipment to transmit an electromagnetic field to the dielectric body. This rapidly decaying magnetic field induces a new secondary field in the surrounding medium. Using this principle, the instrument is designed with one transmitting channel and three receiving channels. Figure 7(a) is the result obtained by the original instrument using a PWM wave with a transmitting frequency of 9.8 kHz. The first four channels are waveforms before filtering, and the last four channels are waveforms after filtering. The transmitting frequency of this system is controlled to 9.8 kHz for debugging, and the data of the transmitting channel and the receiving channel are uploaded to the host computer through serial communication for display. The waveform is shown in Figure 7(b). After filtering, the transmitting channel produces a relatively ideal sine wave. The three secondary fields produced can be compared with Figure 7(a) to show that the harmonic distortion is significantly reduced.

4 Conclusion

This paper designs an SPWM variable frequency system based on FPGA, and finally successfully applies the system to the transmitting module of the electrical instrument. It has been verified that the system is stable and reliable, and has a great improvement over the original PWM control. In addition, the system can modify the values ​​of the transmitting frequency, dead time, etc. online as needed, making the system more user-friendly. With a slight modification, the system can also be applied to motor drives or variable frequency power supplies.

Keywords:FPGA  SPWM Reference address:Design of SPWM Frequency Conversion System Based on FPGA

Previous article:Maintenance technology of frequency converter
Next article:A brief discussion on digital control UPS power supply technology and its application

Recommended ReadingLatest update time:2024-11-16 16:01

FPGA circuit design: How to deal with the challenges of power-related issues
introduction When designing a programmable gate array (FPGA) circuit, you must pay extreme attention to power issues so that the final product can work flawlessly and in an optimal state under all possible conditions. There are two issues to consider for FPGA circuit power supply: FPGA circuit power-up requ
[Test Measurement]
FPGA circuit design: How to deal with the challenges of power-related issues
An innovative FPGA experimental board design based on APA300
Abstract: An innovative FPGA experiment board is designed and implemented based on Actel's Flash FPGA chip APA300. The experiment board includes two interoperable APA300 chips, a variety of peripheral devices and common external device ports, and provides an expansion interface connected to external circuits. It can
[Embedded]
An innovative FPGA experimental board design based on APA300
Design of High Precision Signal Source Based on FPGA
Abstract: In order to design a high-precision signal source and reduce the design cost, the Cyclone II series low-end FPGA is used as the core, and the direct frequency synthesis technology is used to compress the sine signal and other data into ROM by 1/4 cycle. When the external clock frequency i
[Embedded]
Design of High Precision Signal Source Based on FPGA
Display Control of Digital Storage Oscilloscope Using FPGA Technology and Liquid Crystal Display
1 Introduction Liquid crystal display (LCD) has low power consumption, small size, ultra-thin, light weight, and no distortion and convergence error of the geometric figures of the screen, so it has been widely used. Field programmable gate array (FP-GA) chip has the advantages of high density, miniaturization, low po
[Test Measurement]
Display Control of Digital Storage Oscilloscope Using FPGA Technology and Liquid Crystal Display
Fudan Micro's 28nm FPGA chip revenue in the first half of last year was 30.83 million yuan, with a gross profit margin of 99.6%
Recently, Fudan Micro stated in its reply to the inquiry letter from the Shanghai Stock Exchange that the company's 28nm large-scale billion-gate FPGA products began mass production in early 2019. In 2019 and January-June 2020, the company's 28nm process FPGA achieved revenues of 15.1103 million yuan and 30.9635 milli
[Mobile phone portable]
Design of a high-definition image processing system based on HD-SDI technology
  introduction   With the rapid development of digital video, it is an inevitable trend for high-definition digital images to replace analog images. The optoelectronic system adopts full HD image technology, which can not only greatly improve the display effect, but also significantly improve the tracking accuracy of
[Embedded]
Design of a high-definition image processing system based on HD-SDI technology
Infrared Information Data Processing System Based on DSP and FPGA
In modern air combat, optoelectronic countermeasure equipment plays an important role in war. Compared with active detection systems such as radar, infrared detection and tracking systems have the advantages of strong stealth, good anti-interference ability and high degree of miniaturization due to the passive detecti
[Embedded]
Infrared Information Data Processing System Based on DSP and FPGA
Design based on ARM+MCU+CPLD/FPGA
0 Introduction Traditional data acquisition systems generally use single-chip microcomputers, and most systems complete data transmission through the PCI bus. Its disadvantages are poor mathematical computing capabilities; limited by the number of computer slots and interrupt resources; inconvenient to conn
[Microcontroller]
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号