FTM only complementary reset on request

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FTM only complementary reset on request

1,209件の閲覧回数
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,036件の閲覧回数
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,036件の閲覧回数
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 件の賞賛
返信