Yes, look at the API's int he datasheet, there is one for the period. There are
side effects related to when actual update occurs, read those comments as well.
This kind of API adjusts only the Period Value of the PWM. What I need to set is the Clock Frequency of the PWM, not the Output Clock Frequency. I have tried to find a way to configure the PWM config. Registers to set another Clock Source, but I could not find anything.
1 of 1 people found this helpful
You may always use a counter as a pre-scaler on a neighboured block. The output of the prescaler can be used as clock input to the PWM. Lowest Count will be divide by two, so you get 12MHz as input to your PWM. Higest count you get with a 16bit prescaler.
Thanks a lot for information Bob! I'll try it.
You can use a timer or a counter, clock it at 48 Mhz (as long as clock not derived
from interal global buss route), and use a period divsior of 0 to n-1. At 0 input
clk is output / 1, and just shifted.