I had 2 question regarding the SAIC
Q1.
I am trying to configure the SAIC to trigger on the rising edge and measure the PWM signal upon triggering. However, I am facing an issue:
- When I configure the SAIC in 'Measurement' mode, it triggers continuously rather than only on the rising edge.
- When I configure it in 'Edge Trigger' mode, I cannot measure the PWM signal.
The desired functionality is to calculate the PWM using 6 SAIC eMIOS channels only when PWM is given. How can I resolve this issue?


If I use the above settings with the specified interrupt, the interrupt is triggered regardless of the presence of a rising edge or pulse on the pin. Even when there is no rising edge, it still enters the interrupt function.

If I use this mode then ‘Emios_Icu_Ip_GetDutyCycleValues’ function does not return a value its always ‘0’
Could you please help me resolve this and suggest the best approach to achieve the desired functionality?
Q2.
I need to understand which interrupts can be mapped to specific eMIOS channels. For SAIC, I am using the following example as a reference: NXP Community Example[ https://community.nxp.com/t5/S32K/The-K344-uses-polling-to-capture-PWM-duty-cycles-emphasis-no/td-p/... ]. Additionally, I have configured the interrupt in this context.

Not all interrupts, such as ‘EMIOS1_0_IRQn,’ can be mapped to every eMIOS channel. For instance, this interrupt works when mapped to eMIOS-0 Channel-10, but it does not work with eMIOS-1 Channel-1 in SAIC mode—it doesn’t trigger the interrupt function.
I came across this post on interrupt mapping: NXP Community Post[https://community.nxp.com/t5/S32K/Need-some-clarification-regarding-Interrupt-Controller-eMios/m-p/1...], which references the S32K3xx_interrupt_map.xlsx file. However, I didn’t fully understand how to use it.
If I want to check which interrupt can be used for eMIOS-1 Channel-1, how should I approach this? Also, I noticed that the same interrupt works for both eMIOS-0 Channel-10 and Channel-11. Does this mean it’s not possible to configure SAIC for both channels simultaneously using the interrupt?