FTM Stop/Start

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

FTM Stop/Start

Jump to solution
791 Views
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 Kudos
1 Solution
506 Views
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;
}


View solution in original post

0 Kudos
1 Reply
507 Views
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 Kudos