S32K344 eMIOS ICU edge detection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K344 eMIOS ICU edge detection

930 Views
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 Kudos
Reply
1 Reply

901 Views
VaneB
NXP TechSupport
NXP TechSupport
0 Kudos
Reply