Anybody know how to start and stop FTM0. I would like to also have control of the idle state of the line.
Thanks,
-Mike
Solved! Go to Solution.
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;
}
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;
}