S32K344) Update Hall period

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

S32K344) Update Hall period

跳至解决方案
2,276 次查看
Tomato1
Contributor III

Regarding the sample project "MCSPTE1AK344_BLDC_6Step_hall_ll,"

an interrupt occurs every seven rising edges of the Hall sensor, triggering the function "eMIOS1IcuNotify()".

Could you please let me know how to change it to trigger an interrupt for every single edge?

Where is it set to every 7 times?

标记 (1)
0 项奖励
回复
1 解答
2,255 次查看
tomasfedor
NXP Employee
NXP Employee

Hi Tomato1, 

within eMios driver configuration there is function where the last argument is interval for calling notification: 

/***********************************************************************************************
* eMios Driver
***********************************************************************************************/
...
Emios_Icu_Ip_StartTimestamp(1U, 1U, &IcuTimeStampBuffer[0], 7U, 7U);
...

More details about S32K344 motor control application can be found in knowledge base article   https://community.nxp.com/t5/S32K-Knowledge-Base/S32K3-Motor-control-SW-examples/ta-p/1804577

 

Best regards, 

Tomas Fedor.

在原帖中查看解决方案

2 回复数
2,256 次查看
tomasfedor
NXP Employee
NXP Employee

Hi Tomato1, 

within eMios driver configuration there is function where the last argument is interval for calling notification: 

/***********************************************************************************************
* eMios Driver
***********************************************************************************************/
...
Emios_Icu_Ip_StartTimestamp(1U, 1U, &IcuTimeStampBuffer[0], 7U, 7U);
...

More details about S32K344 motor control application can be found in knowledge base article   https://community.nxp.com/t5/S32K-Knowledge-Base/S32K3-Motor-control-SW-examples/ta-p/1804577

 

Best regards, 

Tomas Fedor.

2,256 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I have asked motor control expert responsible for S32K3 to comment here.

Best regards,

Peter

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2063531%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K344)%E6%9B%B4%E6%96%B0%E9%9C%8D%E5%B0%94%E5%91%A8%E6%9C%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2063531%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3E%E5%85%B3%E4%BA%8E%E7%A4%BA%E4%BE%8B%E9%A1%B9%E7%9B%AE%E2%80%9CMCSPTE1AK344_BLDC_6Step_hall_ll%E2%80%9D%EF%BC%8C%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E9%9C%8D%E5%B0%94%E4%BC%A0%E6%84%9F%E5%99%A8%E6%AF%8F%E4%B8%83%E4%B8%AA%E4%B8%8A%E5%8D%87%E6%B2%BF%E5%B0%B1%E4%BC%9A%E5%8F%91%E7%94%9F%E4%B8%80%E6%AC%A1%E4%B8%AD%E6%96%AD%EF%BC%8C%E8%A7%A6%E5%8F%91%E5%87%BD%E6%95%B0%E2%80%9CeMIOS1IcuNotify()%E2%80%9D%E3%80%82%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E6%82%A8%E8%83%BD%E5%90%A6%E5%91%8A%E8%AF%89%E6%88%91%E5%A6%82%E4%BD%95%E6%94%B9%E5%8F%98%E5%AE%83%E4%BB%A5%E8%A7%A6%E5%8F%91%3CSTRONG%3E%E6%AF%8F%E4%B8%AA%3C%2FSTRONG%3E%E8%BE%B9%E7%BC%98%E7%9A%84%E4%B8%AD%E6%96%AD%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E5%9C%A8%E5%93%AA%E9%87%8C%E8%AE%BE%E7%BD%AE%E6%AF%8F7%E6%AC%A1%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E