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.

TMS570LS1227 ePWM

Other Parts Discussed in Thread: HALCOGEN

想按照28035的BLDC库写570的函数,对于570的epwm想出现强制连续常高或常低,利用HALCOGEN在pinmux里设置EPWMxA/B,在ETPWM标签里ENABLE ePWM2/3/4,还要设置别的吗?我在函数里测试一下代码 电平不对,麻烦指点

etpwmInit();

etpwmREG2->AQCSFRC|=0x01;//set CSFA=1  outa=low   AH
etpwmREG3->AQCSFRC|=0x01;//set CSFA=1  outa=low   BH
etpwmREG4->AQCSFRC|=0x01;//set CSFA=1  outa=low   CH
etpwmREG2->AQCSFRC|=0x08;//set CSFB=2  outa=high  AL
etpwmREG3->AQCSFRC|=0x04;//set CSFB=1  outa=low   BL
etpwmREG4->AQCSFRC|=0x08;//set CSFB=2  outa=high  CL