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.

pwm初始电平状态怎么设置



PWM模块debug或者复位后的输出电平的初始状态从PWM模块的哪个寄存器进行设置?如何设置使得debug或者reset system后pwm电平输出为高?

  • 记不清了   有专门设置初始相位 

    初始高低电平的寄存器  

    代码没有加载时的电平状态  还需要做外部强拉

  • 2812是这样的

    行为方式控制寄存器(EvaRegs.ACTR.all = 0x0666)中可以设置高有效,低有效,强制低,强制高,设为高有效时,计数器没有记到比较值之前,PWM端口输出低电平,超过比较值之后,PWM端口输出高电平。低有效与之相反,强制高,强制低