I can't understand the clocking system of SCTimer/PWM module in LPC546XX MCUs.
CLKMODE=0x0 selects system clock for SCTimer counter clocking. Is this clock divided by SCTCLKDIV or not?
For example, if I have a system clock of 220MHz (on LPC54628) and SCTCLKDIV=1 (divide by 2), what is the SCTimer counting clock frequency? 220MHz or 110MHz? It seems to me it is always 220MHz, so it doesn't depend on SCTCLKDIV.
It is strange, because CLOCK_GetSctClkFreq() returns 110MHz, but I think its 220MHz.
When SCTCLKDIV is used? Only if I use CLKMODE=0x2 or 0x3 and CLKSEL=0xE or 0xF (Input 7 as the clock)?
I also read another note:
Remark: The maximum frequency for the SCTimer/PWM clock is 100 MHz.
If I have a system clock of 220MHz, couldn't I use CLKMODE=0x0 (counter clocked by system clock, apparently without divider)?