17.3.7 Peripheral Clock Generation (GCLK)

All six reference clock generator outputs are given as input for GCLK generator module for peripheral clock generation. The GCLK module provides selection among following clocks:
  • REFO1 to REFO6 clocks
    Note: Only REFO1 – REFO4 can get routed to chip IOs.
  • Low-power clock (32KHz_LPCLK) (either LPRC, SOSC or 32 KHz clock derived from POSC/FRC)
The GCLK generator provides the Generic Clocks (GCLK_<Periperhal>) for system peripherals via peripheral channels. There are a total of 26 peripheral channels with the mapping as shown in the following table. The peripheral channels are fixed configuration and mapped in the CFGPCLKGENx register. CFGPCLKGENx dictates the peripheral clock selection and enables the clock for a specific peripheral.
Table 17-2. Peripheral Clock Generation
Peripheral ClockChannel IndexPosition in CFGPCLKGENx
GCLK_EIC, GCLK_CCL00
GCLK_FREQM_MSR12
GCLK_FREQM_REF21
GCLK_SERCOM0_CORE, GCLK_SERCOM1_CORE33
GCLK_SERCOM2_CORE44
GCLK_TC0524
GCLK_TC1625
GCLK_TC2, GCLK_TC3726
GCLK_TC4, GCLK_TC5827
GCLK_TC6, GCLK_TC7928
GCLK_EVSYS_CH_0108
GCLK_EVSYS_CH_1119
GCLK_EVSYS_CH_21210
GCLK_EVSYS_CH_31311
GCLK_EVSYS_CH_41412
GCLK_EVSYS_CH_51513
GCLK_EVSYS_CH_61614
GCLK_EVSYS_CH_71715
GCLK_EVSYS_CH_81816
GCLK_EVSYS_CH_91917
GCLK_EVSYS_CH_102018
GCLK_EVSYS_CH_112119
GCLK_TCC02221
GCLK_TCC1, GCLK_TCC2235
GCLK_AC2420
GCLK_CM4_TRACE257

The following figure illustrates an example, where SPLL_CLK1 clocks the SERCOM0. The SPLL_CLK1 is input to the REFO generator. The Generic Clock Generator uses the REFO_CLK1 as its clock source and feeds into Peripheral Channel 3. The Generic Clock channel 3, also called GCLK_SERCOM0_CORE, is connected to SERCOM0. The SERCOM0 interface is clocked by PB1_CLK bus clock.

Figure 17-5. Example of SERCOM0 Clock