15.6.3.3 Selecting a Clock Source for the Generic Clock
When changing a generic clock source by
writing to CLKCTRL.GEN, the generic clock must be disabled before being re-enabled with the
new clock source setting. This prevents glitches during the transition:
- Write CLKCTRL.CLKEN=0
- Assert that CLKCTRL.CLKEN reads '0'
- Change the source of the generic clock by writing CLKCTRL.GEN
- Re-enable the generic clock by writing CLKCTRL.CLKEN=1