SPWM技术不仅能够实时、准确地实现变压变频控制要求.而且可以有效抑制逆变器输出电压或电流中的谐波分量。提出一种基于STM32系列微控制器控制生成SPwM信号的设计方法.采用STM32F100RB微处理器的PWM输出模式控制输出SPWM波形,采取DMA控制代替中断处理以节省CPU时间.辅以有源滤波、信号整形电路等。实现了三相SPWM互补输出、可键控设置频率、频率跟踪以及可设置死区时间等功能。能够满足逆变电源系统的要求。
SPWM modulations can achieve the requirements of read-time accurate VVVF control, and can suppress harmonic components of the power inverters output voltage or currant. A design of SPWM signal generation based on the STM32 series microcontroller was presented with PWM output mode of STM32F100RB microprocessor to produce SPWM wanes and DMA controller instead of the interrupt handling to save CPU time, integrating with active filtering and signal shaping circuit. It can control and output the three--phase bipolar SPWM wave, and realize functions such as complementary three-phase waveform output, setting the frequency via the keyboard, tracking frequency, and setting the dead time, and can well meet the requirements of inverter power system.