Using PIT Interrupt to run FOC Algorithm

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using PIT Interrupt to run FOC Algorithm

373 次查看
CZuercher_Ilm
Contributor I

I'm trying to use the MPC5744P & MOTORGD Devkits to develop some motor controller algorithms.

In addition to the FOC, I also have quite a lot of stuff I'd like to be able to run at 1msec.

Is it an acceptable solution to have my Simulink model set up to run at 1msec and my FOC algorithm running inside the PIT Interrupt subsystem (at, say, 20 usec or so)? I'd like to carry out all my FOC-Specific channel sampling and output handling inside this Interrupt. 

 

Is this acceptable, as the supplied examples seem to be running at an "Auto" base rate?

0 项奖励
回复
0 回复数