Hi NXP team,
We would like to develope EMIOS ICU on S32K344 EVM with NXP MCAL. But we didn't find the example code for IPWM. Could you provide to us for reference? Thanks.
Wade
Solved! Go to Solution.
Hi JAY_SUN1,
When you call "Icu_GetDutyCycleValues", there is no value because you are using the "EMIOS1_1_IRQn_customized" (your interrupt function) instead of "EMIOS1_1_IRQ" of the driver.
In the driver, The EMIOS1_1_IRQ function will call to Emios_Icu_Ip_IrqHandler(1, 16); to update values to variables available in the driver, and when you call Icu_GetDutyCycleValues(), you can get results in this situation.
So that when you use EMIOS1_1_IRQn_customized, to call Icu_GetDutyCycleValues() and get results successfully, you must work as image below:
Best regards,
Dan
Hi NXP team,
We are still wating for your reply!
Attached is my project, it can enter in ISR, but when I call "Icu_GetDutyCycleValues", there is no value. Please help to check it and let us know the solution. Thanks.
Please note that I use Emiso 1 CH12(PTA29) to produce PWM(period 1K / Duty 25%), and use Emiso 1 CH16(PTG0) to receive PWM signal.
Wade
Hi JAY_SUN1,
When you call "Icu_GetDutyCycleValues", there is no value because you are using the "EMIOS1_1_IRQn_customized" (your interrupt function) instead of "EMIOS1_1_IRQ" of the driver.
In the driver, The EMIOS1_1_IRQ function will call to Emios_Icu_Ip_IrqHandler(1, 16); to update values to variables available in the driver, and when you call Icu_GetDutyCycleValues(), you can get results in this situation.
So that when you use EMIOS1_1_IRQn_customized, to call Icu_GetDutyCycleValues() and get results successfully, you must work as image below:
Best regards,
Dan
Hi Dan,
Thanks for your reply and it can work now.
Wade