三角波fr=30kHZ,正弦波fc=50HZ,N=600;
用规则采样法,
采用增减计数模式
脉宽值
duty=500*(sin(6.283*k1/600));
EPwm2Regs.CMPA.half.CMPA = duty;
EPwm2Regs.CMPB = duty;
馒头波的频率,应该为50hz,但通过示波器观察却为10hz,为什么会这样
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.