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.
EPwm1Regs.TBCTL.bit.PRDLD = TB_IMMEDIATE; // Set immediate load
EPwm1Regs.TBPRD = period; // PWM frequency = 1 / perio
这两句是讲epwm文档上的103页的两句。
如果把这两句颠倒 那么先前配置的TBPRD就会清0 ,为什么会这样?配置也要讲先后顺序?