Good evening, i have a question.
While i'm using the FTM in complementary mode, only for the complementary pin, during the high period is possible to set in low state until the next duty period only when is needed?
In other words i need to force it in low state the complementary signal only if is needed.
Thank you.
Hi,
You can use the Output mask register (OUTMASK) to force channel output to its inactive state through software. As this register is buffered you will need to use register synchronization to update the register with its buffer value. See more in chapter 39.5.13.7 OUTMASK register synchronization.
BR, Petr
Thank you for the answer.
I've solved using a software control. Using the FTM_SWOCTRL register
FTM0->SWOCTRL|=FTM_SWOCTRL_CH7OC(1); // activate the software pin control
FTM0->SWOCTRL|=FTM_SWOCTRL_CH7OCV(0); // set the pin value
.
FTM0->SWOCTRL|=FTM_SWOCTRL_CH7OC(0); // deactivate the software pin control