Hello NXP team!
I'm working on an automotive project that I need to handle some calculations regarding motor angle at very specific time. As far I've setup my peripherals ADC, BCTU, DMA, TRGMUX, eMIOS, LCU and others....
I believed that I could use the BCTU trigger notification in order to get an interrupt CB running at the same time that BCTU get's triggerred but it seems that there is a bit delay between the trigger and the CB function being executed.
I've used trigger mux in order to drive the eMIOS MCL signal out in a pin.

And I'm using SIUL2 in order to toggle an other pin within the BCTU's trigger CB function in order to check timings.
I have also changed priorities in all other interrupts that I'm using. I've turned them to 5 and 4 and BCTU trigger is set to 0.
The thing that I've noticed is the image bellow:

RED line is the eMIOS0_22 RELOAD_OUT signal from trigger mux and the BLUE line is the IO that I'm turning on/off within my CB function.
I've also used persistence mode in the oscilloscope in order to see the timing diffs. My trigger is taken from the RED line.

Now some questions:
1. Can someone let me know why there is such big delay since the eMios signal until the CB being called ? It is like 32uS after the timer signal.
2. Is the signal eMios0_22_RELOAD_OUT the same signal that triggers the BCTU ??
3. Can you suggest me anything in order to get a CB running the OverFlow or UnderFlow of the eMIOS MCL timer ?
4. Is it possible to point me out to any extra documentation that could help ? I've read the reference manual, and some BCTU, LCU ppts.
Kind regards,
kyf.
I've also used DWT timer in order to find out the cycled needed too execute my CB function