Dear NXP experts,
Background of the problem:
MCU: S32K142W;
Application background: Configure FTM2 as capture mode to capture three-phase Hall signals for BLDC motor control.
Problem description: Adding an instruction to reverse GPIO at the input of the FTM2_Ch0uCh1_IRQHandler() interrupt function, it was found that the capture trigger time can be delayed by up to 3.2us compared to the captured signal. As shown in the following figure:

CH1 channel (yellow waveform): FTM2 captures interrupt reversal IO port;
CH2 channel (blue waveform): periodic square wave generated by the signal generator;
My FTM2 configuration is as follows:
Configure reference information, refer to this image:

Specific configuration information of FTM2:


Looking forward to your reply, thank you.
LF