PMSM_Motor + Lin truble

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

PMSM_Motor + Lin truble

跳至解决方案
1,796 次查看
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 项奖励
回复
1 解答
1,757 次查看
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 项奖励
回复
4 回复数
1,758 次查看
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 项奖励
回复
1,744 次查看
uky746
Contributor II

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

0 项奖励
回复
1,772 次查看
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 项奖励
回复
1,766 次查看
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 项奖励
回复