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.

28335电机控制例程疑问



请问

// Variable declarations void

(*Alpha_State_Ptr)(void); // Base States pointer void

(*A_Task_Ptr)(void);  // State pointer A branch void

(*B_Task_Ptr)(void);  // State pointer B branch void

 (*C_Task_Ptr)(void);  // State pointer C branch

这几个函数是干什么用的?主函数里为什么要进它们的循环呢? 它们和主中断的关系是什么? 删掉可以吗?

还有几个问题:

我新买了一个控制板 里面有个fault 信号,貌似是电流过载的时候会产生一个高电平,这样 我在程序里检测的时候,把这个检测到高电平就停止输出PWM的程序写在哪里呢?写在主中断里面? 还是主函数里面? 还是写在SVGEN.H 里面   还是就写在上面的(*Alpha_State_Ptr)里面呢?