FTM only complementary reset on request

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FTM only complementary reset on request

960 Views
pietroserao
Contributor II

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.

Labels (1)
0 Kudos
2 Replies

787 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos

787 Views
pietroserao
Contributor II

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

0 Kudos