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?
Solved! Go to Solution.
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!
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!