PMSM_Motor + Lin truble

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PMSM_Motor + Lin truble

ソリューションへジャンプ
1,139件の閲覧回数
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,100件の閲覧回数
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,101件の閲覧回数
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,087件の閲覧回数
uky746
Contributor II

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

0 件の賞賛
返信
1,115件の閲覧回数
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,109件の閲覧回数
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 件の賞賛
返信