10.4.2.2.2 Selecting a Clock Source for the Generator

Each Generator can individually select a clock source by writing to the Source Select bit field in the Generator Control register (GENCTRL[n].SRC).

Changing from one clock source (A) to another (B) can be done on the fly. If clock source B is not ready, the Generator will continue using clock source A. As soon as source B is ready, the Generator will switch to it.

During the switching operation, the Generator maintains clock requests to both clock sources A and B, and will release source A as soon as the switch is complete. The Generator Control n bit in the Synchronization Busy register (SYNCBUSY.GENCTRLn) will remain at ‘1’ until the switch operation is completed.

The available clock sources are shown in the Clock System block diagram. Only Generic Clock Generator 1 can be used as a common source for all other Generators.

Note: Before switching Generic Clock Generator 0 (GCLK_GEN0) from clock source A to another clock source B, enable the On-Demand Operation feature (xxxCTRL.ONDEMAND) of clock source A to ensure a proper transition.