FTM Stop/Start

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
927件の閲覧回数
Mike_d
Contributor IV

Anybody know how to start and stop FTM0.  I would like to also have control of the idle state of the line.

 

Thanks,

-Mike

 

 

0 件の賞賛
返信
1 解決策
642件の閲覧回数
Mike_d
Contributor IV

Big Module but I found it.

 

-----------------

 

FTM0_POL= (0 | FTM_POL_POL0_MASK);//Inactive state of CH0 is high

 

if(FTM0_OUTMASK & FTM_OUTMASK_CH0OM_MASK)
{
   printf("Enable Output\r\n");
   FTM0_OUTMASK &= ~FTM_OUTMASK_CH0OM_MASK;
}
else
{
   printf("Disable Output\r\n");
   FTM0_OUTMASK |= FTM_OUTMASK_CH0OM_MASK;
}


元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
643件の閲覧回数
Mike_d
Contributor IV

Big Module but I found it.

 

-----------------

 

FTM0_POL= (0 | FTM_POL_POL0_MASK);//Inactive state of CH0 is high

 

if(FTM0_OUTMASK & FTM_OUTMASK_CH0OM_MASK)
{
   printf("Enable Output\r\n");
   FTM0_OUTMASK &= ~FTM_OUTMASK_CH0OM_MASK;
}
else
{
   printf("Disable Output\r\n");
   FTM0_OUTMASK |= FTM_OUTMASK_CH0OM_MASK;
}


0 件の賞賛
返信