FTM Stop/Start

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

FTM Stop/Start

跳至解决方案
1,209 次查看
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 解答
924 次查看
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 回复
925 次查看
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 项奖励
回复