Hello
I am using fast IRC clock configuration to get 180Mhz clock connected to the FTM0 clock source.
but when starting FTM0 by FTM0 Clock:
FTM_StartTimer(IFTM_PERIPHERAL, kFTM_FixedClock);
the timer dose not startup.
when starting FTM0 by System Clock:
FTM_StartTimer(IFTM_PERIPHERAL, kFTM_SystemClock);
the timer starts with no problem.
I need to run FTM0 by FTM0 180Mhz clock derived from the SPLL.
what could the problem be ?
Hi @JohnEE
I hope you are doing well during quarantine times.
According to the KE1xx Reference Manual section 41.1.2 FTM Clocking Information ,the fixed clock frequency shall not exceed 1/2 of the FTM system clock frequency.
Apparently, in your configuration, the fixed clock is greater than the FTM system clock. So, this seems to be the root of the issue.
On the other hand the FTM sysclock is not able to reach 180 MHz frequency neither. Since the maximum frequency of SYS_CLK (from where FTM sysclok is derived) is 168 MHz Further details in section 18.3Clock definitions of the RM
I hope this helps,
If you have any comments ,please, let me know.
Regards,
Diego.