I'm currently struggling with the SCT, which I need to use for PWM generation.
I tried the LPCopen function:
It calculates a rate and writes it to the match reload register 0:
The chip clock is 204MHz and the requested PWM frequency (freq) is 48MHz.
204 / 48 = 4.25
The decimals are of course lost and I end up with a frequency of 40.8MHz (204 / (4+1))
The next step I can reach using this function is 51MHz.
Is there a way to get 48MHz output frequency using directly the SCT registers, without LPCopen?
Thanks for any hint.
The frequencies are not multiples, the clock can only be divided, there is only one internal clock source for SCT.
It's not possible to generate PWM @ 48 MHz.