PMSM_Motor + Lin truble

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

PMSM_Motor + Lin truble

Jump to solution
747 Views
uky746
Contributor II

Hello,

Tool : S32 Design Studio for S32 Platform 3.3

MCU  : S32k144W 

use Application Note : 1) S32K144EVB (AN12235 PMSM_1ch) 

                                    2)  lin_slave_s32k144w  (SDK)

i try  combined two sources. 

result

If the LIN signal is not given, the motor operates. (motor 500 rpm , 0.2 Ampere)

The motor stops when the lin signal is activated.  (Motor brake , 3 Ampere)

Could anyone help me to solve this problem? 

 

 

0 Kudos
1 Solution
708 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

So simply you need to manage interrupt priorities. As the motor has the high priority, simply lower LIN interrupt priority.

Have a look at reference manual:

7.2.1 Interrupt priority levels

Best regards,

Peter

View solution in original post

0 Kudos
4 Replies
709 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

So simply you need to manage interrupt priorities. As the motor has the high priority, simply lower LIN interrupt priority.

Have a look at reference manual:

7.2.1 Interrupt priority levels

Best regards,

Peter

0 Kudos
695 Views
uky746
Contributor II

I resolved this problem follow your advice,Thank you very much!

0 Kudos
723 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Could you share which HW development board you are using?

Is it NXP or Custom one?

With a very little information given, I assume that you have some issue with resource sharing in your SW.

You can start with looking into interrupts, which could be most common case for such issue.

Best regards,

Peter

0 Kudos
717 Views
uky746
Contributor II

We have designed a custom board for our S32K144W

 

step1  : POWER ON(12V) , Motor run (500rpm, 0.2A)

step2  : start Lin communication  

step3  : Motor stop (  0 rpm ,Brake, 3A)

I think commutation timing calculations are essential for the motor to work.

Motor commutation calculation stops while Lin interrupt is activated

help me~

 

 

0 Kudos