Hello,
I have several FTM modules with various channels and operation modes setup in my project. I use the FTM modules to generate periodic interrupts, read and generate PWM signals. So far, I only supplied the modules with SOSCDIV1_CLK (SOSC = 8MHz, DIV1 = 8MHz).
My current working setup of the FMT:
But now I need to generate PWM signals with very high frequency, so I need to connect SPLLDIV1_CLK instead of SOSCDIV1_CLK (SPLL_CLK = 100MHz, DIV1 = 50MHz). I setup the FTM in the following way:
But after configuring the clock this way, the FTM counter won't even start counting.
SPLL is also configured as system clock source. This is the SPLL configuration in SCG:
Thanks for advice!
Tomas
Solved! Go to Solution.
Hello, again,
So I've managed to get the FTM running with the SPLLDIV1 clock sourced. The answer is in the reference manual, table 27-8. It says the maximum FTM frequency is governed by SYS_CLK. In my case, the SYS_CLK is 50MHz. Trying to supply the FTM with the same clock value 50MHz in SPLLDIV1_CLK still resulted in FTM not counting. But after dividing the SPLLDIV1_CLK down to 25MHz it finally started to work.
T.
Hello, again,
So I've managed to get the FTM running with the SPLLDIV1 clock sourced. The answer is in the reference manual, table 27-8. It says the maximum FTM frequency is governed by SYS_CLK. In my case, the SYS_CLK is 50MHz. Trying to supply the FTM with the same clock value 50MHz in SPLLDIV1_CLK still resulted in FTM not counting. But after dividing the SPLLDIV1_CLK down to 25MHz it finally started to work.
T.