FTM only complementary reset on request

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FTM only complementary reset on request

1,214 次查看
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.

标签 (1)
0 项奖励
回复
2 回复数

1,041 次查看
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 项奖励
回复

1,041 次查看
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 项奖励
回复