18.3.9 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. For details about the position in CFGPCLKGENx, see Register Summary of the System Configuration and Register Locking (CFG) from Related Links.
Table 18-4. Peripheral Clock Generation
Peripheral ClockChannel Index
GCLK_EIC, GCLK_CCL0
GCLK_FREQM_MSR1
GCLK_FREQM_REF2
GCLK_SERCOM2_CORE3
GCLK_SERCOM0_CORE, GCLK_SERCOM1_CORE4
GCLK_SERCOM2_CORE4
GCLK_SERCOM2_CORE5
GCLK_TC06
GCLK_TC17
GCLK_TC2, GCLK_TC38
GCLK_TC4, GCLK_TC59
GCLK_TC6, GCLK_TC710
GCLK_TC8, GCLK_TC911
GCLK_EVSYS_CH_012
GCLK_EVSYS_CH_113
GCLK_EVSYS_CH_214
GCLK_EVSYS_CH_315
GCLK_EVSYS_CH_416
GCLK_EVSYS_CH_517
GCLK_EVSYS_CH_618
GCLK_EVSYS_CH_719
GCLK_EVSYS_CH_820
GCLK_EVSYS_CH_921
GCLK_EVSYS_CH_1022
GCLK_EVSYS_CH_1123
GCLK_TCC024
GCLK_TCC1, GCLK_TCC225
GCLK_AC26
GCLK_CM4_TRACE27
GCLK_CAN028
GCLK_CAN129
GCLK_ETH_TSU30
GCLK_CVD31

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 18-7. Example of SERCOM0 Clock