S32K344 eMIOS ICU edge detection

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

S32K344 eMIOS ICU edge detection

931 次查看
ScottXing
Contributor II

Hi experts,I want to ask a question about eMIOS ICU:

When using S32K344 control a brushed direct current motor with Hall signal.

I use eMIOS ICU to detect Hall Signal and config it to rising edge detect mode:

I find that when the PWM duty is not 100%,eMIOS ICU sometimes are triggered by the  falling edge。

I tried both  FXIO_PWM and eMIOS_PWM,there is no difference,still can't capture the correct edge。

that's really weird,and my solution is : comfig eMIOS ICU to both edge detect mode. and use a API to judge the ISR is triggered by rising edge or falling edge。

 

this is what I want to ask you guys: which API of RTD driver can be used to detect ISR is triggered by rising edge or falling  edge(calling this API inside ISR)?

 

thanks ,really expecting your reply and best wishes to you all.

0 项奖励
回复
1 回复

902 次查看
VaneB
NXP TechSupport
NXP TechSupport
0 项奖励
回复