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.

AM2434: AM2434 定时和PWM

Part Number: AM2434

你好!

1:我设置定时器并开启中断,但是无法触发中断,请帮检查下程序,是否初始化和TimerP_start(gTimerBaseAddr[TIMER0_WU])就可以了?

2:设置PWM中断: EPWM_etIntrCfg(epwmBaseAddr, EPWM_ET_INTR_EVT_CNT_EQ_ZRO,
EPWM_ET_INTR_PERIOD_FIRST_EVT); 并在中断处理函数中判断flag==2的时候置高GPIO。

现象并不是在第二个PWM处进行置高的,这是为什么啊?

并且触发的点也不是在计数为0的点。请问以上可能是什么问题啊?