How to change the frequency of pmf on S12ZVML

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

How to change the frequency of pmf on S12ZVML

851 Views
xiaofangu
Contributor III

Hello,there,

   I test the demo code MTRCKTSPNZVM128->MC9S12ZVML128_PMSM_Sensorless which control algorithm is foc,and it works well.

   Now,I want to test the motor's performance on different frencenys of pmf.so I change the PMFMODA  from 2500(20KHz,the bus clock is 50M and the core clock is 100M) to 5000. The speed is not correct any more!

   So,is there anything else I need to pay attention to?

0 Kudos
1 Reply

730 Views
pachamatej
NXP Employee
NXP Employee

Hello,

It should be easy, however, you have to change the sampling frequency in the FreeMASTER/MCAT Current contol and Speed control tabs to match the actual PMF reload frequency. Otherwise, the mismatch between this calculation and the actual timing causes the speed to be calculated differently. The behaviour of the PI controllers would be also different. See the MCAT documentation.

Best regards,

Matej

0 Kudos