Hi @danielmartynek ,
I am not able to share my entire project with you.
To give more detail, I have FTM3 running at 80MHz with Center Aligned PWM mode enabled. The MOD value is set to 0x7D0, which gets me time period of 50us.
I took some screenshots to show you exactly what I am seeing. For this example, I am setting the PWM for 50% duty cycle, and I have a deadtime of 1.25us. I am scoping FTM3 Channels 2 and 3 which have COMP1, DTEN1, SYNCEN1, and FAULTEN1 all set to 1 in the COMBINE register. I have INITRIGS coming out at CNT = 0. The Pink channel on top is the INITRIG, the middle Green channel is the FTM3 Ch 3, and the bottom red channel is the FTM3 Ch 2 on the scope.
What I would expect is that both PWM channels would rise at 13.75us from the INITRIG, but as you can see below, on FTM3 Ch 3 sets at 12.5us, while Ch 2 sets at 13.75us:


I would have also expected both channels to clear at 37.5us. However, FTM3 Ch 2 clears at 37.5us, and FTM3 Ch 3 clears at 38.75us:


Looking at the POL register shows that they're all 0 at the time of the capture. Why is that the Ch 2 has the deadtime inserted at the rising edge, and Ch 3 has the deadtime inserted at the falling edge?


Ultimately what I am trying to do is have some deadtime asserted between the FTM3 Ch2 and Ch3 such that they are both center aligned, but Ch 3 sets 1.25us before Ch 2, and clears 1.25us after Ch 2.