你可以参照一下F28335的设置,设置如下:将28335的pwm引脚配置为PWM输出:EPwm6Regs.AQCTLA.bit.CAU = AQ_SET; // Set PWM6A on campA while increasing. U implies upEPwm6Regs.AQCTLA.bit.CAD = AQ_CLEAR; // clear the PWM6A while decreasing. D means down这样设置的话就是active low 即两个CAMPA间,PWM引脚输出低电平,初始状态为低电平;EPwm6Regs.AQCTLA.bit.CAU = AQ_CLEAR; // Set PWM6A on ZeroEPwm6Regs.AQCTLA.bit.CAD = AQ_SET;这样设置的话就是active high, 即两个CAMPA间,PWM引脚输出高电平,初始状态为高电平;