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.
Hi @ScottXing
Could you please provide more details about your configurations and implementation?
Additionally, I recommend referring to the community thread below, which contains example code demonstrating various usage modes of the eMIOS (eMIOS_PWM and eMIOS_ICU) for the S32K3xx MCU.
Example ASR S32K312 EMIO PWM Generation & Duty capture using Interrupt DS3.5 RTD300
Example ASR S32K312 EMIO PWM Generation & Duty capture using Polling DS3.5 RTD300
Example MCAL S32K312 PWM ICU using EMIOS DS3.5 RTD300
Example IP S32K312 EMIO PWM Generation & Duty capture using Polling DS3.5 RTD300
Example IP S32K312 EMIO PWM Generation & Duty capture using Interrupt DS3.5 RTD300
Example IP S32K312 PWM ICU using EMIOS DS3.5 RTD300
Example S32K344 eMIOS DS3.5 RTD500
BR, VaneB