A method to eliminate current control thinning.

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

A method to eliminate current control thinning.

跳至解决方案
1,161 次查看
Tomato1
Contributor III

I would like to ask for your guidance regarding the sensorless FOC of the S32K344 (see the sample code below).
C:\NXP\MC_DevKits\MCSPTE1AK344\sw\MCSPTE1AK344_PMSM_FOC_2Sh_ll

Despite the MOSFET switching frequency being 20 kHz, it seems that the current control is being executed at 10 kHz.

Referring to the source code, it appears that the function Bctu_FIFO1_WatermarkNotification() is executed at 10 kHz (observed PTC24 on an oscilloscope).

I would like to execute the current control at the same frequency as the switching frequency. How can I modify this?

标记 (1)
0 项奖励
回复
1 解答
1,136 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

You could refer to the MCTPTX1AK324, where the PWM frequency is 10KHz, and the FOC fast loop calculation frequency is 10KHz too. But now the execution frequency of function BCTU FIFO notification is 30KHz, due to there being three PMSM motors, that share the same interrupt routine (for more details, please refer to UG10052 and its SW example).

Hope it helps you.

Have a nice day!

在原帖中查看解决方案

1 回复
1,137 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

You could refer to the MCTPTX1AK324, where the PWM frequency is 10KHz, and the FOC fast loop calculation frequency is 10KHz too. But now the execution frequency of function BCTU FIFO notification is 30KHz, due to there being three PMSM motors, that share the same interrupt routine (for more details, please refer to UG10052 and its SW example).

Hope it helps you.

Have a nice day!

%3CLINGO-SUB%20id%3D%22lingo-sub-2017522%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%B8%80%E7%A7%8D%E6%B6%88%E9%99%A4%E7%94%B5%E6%B5%81%E6%8E%A7%E5%88%B6%E7%BB%86%E5%8C%96%E7%9A%84%E6%96%B9%E6%B3%95%E3%80%82%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017522%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%83%B3%E8%AF%B7%E6%95%99%E4%B8%80%E4%B8%8B%E5%85%B3%E4%BA%8E%20S32K344%20%E6%97%A0%E4%BC%A0%E6%84%9F%E5%99%A8%20FOC%20%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%88%E8%A7%81%E4%B8%8B%E9%9D%A2%E7%9A%84%E7%A4%BA%E4%BE%8B%E4%BB%A3%E7%A0%81%EF%BC%89%E3%80%82%3CBR%20%2F%3EC%3A%5CNXP%5CMC_DevKits%5CMCSPTE1AK344%5Csw%5CMCSPTE1AK344_PMSM_FOC_2Sh_ll%3C%2FP%3E%3CP%3E%E5%B0%BD%E7%AE%A1%20MOSFET%20%E7%9A%84%E5%BC%80%E5%85%B3%E9%A2%91%E7%8E%87%E4%B8%BA%2020%20kHz%EF%BC%8C%E4%BD%86%E7%94%B5%E6%B5%81%E6%8E%A7%E5%88%B6%E4%BC%BC%E4%B9%8E%E4%BB%A5%2010%20kHz%20%E6%89%A7%E8%A1%8C%E3%80%82%3C%2FP%3E%3CP%3E%E5%8F%82%E7%85%A7%E6%BA%90%E4%BB%A3%E7%A0%81%EF%BC%8C%E4%BC%BC%E4%B9%8E%E5%87%BD%E6%95%B0%20Bctu_FIFO1_WatermarkNotification()%20%E4%BB%A5%2010%20kHz%20%E6%89%A7%E8%A1%8C%EF%BC%88%E5%9C%A8%E7%A4%BA%E6%B3%A2%E5%99%A8%E4%B8%8A%E8%A7%82%E5%AF%9F%E5%88%B0%20PTC24%EF%BC%89%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E5%B8%8C%E6%9C%9B%E4%BB%A5%E4%B8%8E%E5%BC%80%E5%85%B3%E9%A2%91%E7%8E%87%E7%9B%B8%E5%90%8C%E7%9A%84%E9%A2%91%E7%8E%87%E6%89%A7%E8%A1%8C%E7%94%B5%E6%B5%81%E6%8E%A7%E5%88%B6%E3%80%82%E6%88%91%E8%AF%A5%E5%A6%82%E4%BD%95%E4%BF%AE%E6%94%B9%E5%AE%83%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E