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:
FAR1234_0-1758591800978.png
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:
FAR1234_1-1758592041830.png
Specific configuration information of FTM2:
FAR1234_2-1758592108532.png
FAR1234_3-1758592141480.png
Looking forward to your reply, thank you.
LF