大家好!有人能指出一些关于如何获得正弦波调制的PWM的应用说明或示例代码(请参阅附图)。我正在尝试设置一个PWM来控制一个单相逆变器。我应该为此使用PWM发生器,还是应该结合数字输出使用定时器?我真的不知道怎样在dsPIC上得到这个结果。至于正弦波实现,我打算使用一个查找表来提高速度,因为我理解sin(x)的计算要求很高。一些技术细节:-dsPIC33EP64GS506-时钟速率:120MHz,60MIPS-PWM f频率应为20-50kHz -正弦波频率为50赫兹,谢谢!
以上来自于百度翻译
以下为原文
Hello everyone!
Can someone please point out to some applica
tion notes or example codes on how to get a PWM with a sine wave modulation (please see attached figure). I'm trying to set up a PWM to control a single-phase inverter.
Should I use a PWM generator for that purpose, or should I use a timer in a combination with a digital output? I really don't have a clue how to get this on a dsPIC. As for the sine wave implementation, I plan to use a look-up table for the sake of speed, as I understand that evaluation of sin(x) is computationally quite demanding.
Some technical details:
- dsPIC33EP64GS506
- Clock rate: 120 MHz, 60 MIPS
- PWM frequency should be 20-50 kHz
- Sine wave frequency is 50 Hz
Thank you in advance!
Attached Image(s)