Using PIT Interrupt to run FOC Algorithm

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using PIT Interrupt to run FOC Algorithm

379 Views
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 Kudos
Reply
0 Replies