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.

TMS320F2800157: 如何配置ePWM Trip1的mux

Part Number: TMS320F2800157

XBAR_setEPWMMuxConfig函数用于配置ePWM x-bar,其中的第一个参数是个枚举类型(XBAR_TripNum, 如下)

枚举中没有XBAR_TRIP1/2/3/6,请问如果要对XBAR_TRIP1进行配置,该怎么办?

void XBAR_setEPWMMuxConfig(XBAR_TripNum trip, XBAR_EPWMMuxConfig muxConfig)

typedef enum
{
XBAR_TRIP4 = 0, //!< TRIP4 of the ePWM X-BAR
XBAR_TRIP5 = 2, //!< TRIP5 of the ePWM X-BAR
XBAR_TRIP7 = 4, //!< TRIP7 of the ePWM X-BAR
XBAR_TRIP8 = 6, //!< TRIP8 of the ePWM X-BAR
XBAR_TRIP9 = 8, //!< TRIP9 of the ePWM X-BAR
XBAR_TRIP10 = 10, //!< TRIP10 of the ePWM X-BAR
XBAR_TRIP11 = 12, //!< TRIP11 of the ePWM X-BAR
XBAR_TRIP12 = 14 //!< TRIP12 of the ePWM X-BAR
} XBAR_TripNum;