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 clocksNote: 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)
Peripheral Clock | Channel Index | Position in CFGPCLKGENx |
---|---|---|
GCLK_EIC, GCLK_CCL | 0 | 0 |
GCLK_FREQM_MSR | 1 | 2 |
GCLK_FREQM_REF | 2 | 1 |
GCLK_SERCOM0_CORE, GCLK_SERCOM1_CORE | 3 | 3 |
GCLK_SERCOM2_CORE | 4 | 4 |
GCLK_TC0 | 5 | 24 |
GCLK_TC1 | 6 | 25 |
GCLK_TC2, GCLK_TC3 | 7 | 26 |
GCLK_TC4, GCLK_TC5 | 8 | 27 |
GCLK_TC6, GCLK_TC7 | 9 | 28 |
GCLK_EVSYS_CH_0 | 10 | 8 |
GCLK_EVSYS_CH_1 | 11 | 9 |
GCLK_EVSYS_CH_2 | 12 | 10 |
GCLK_EVSYS_CH_3 | 13 | 11 |
GCLK_EVSYS_CH_4 | 14 | 12 |
GCLK_EVSYS_CH_5 | 15 | 13 |
GCLK_EVSYS_CH_6 | 16 | 14 |
GCLK_EVSYS_CH_7 | 17 | 15 |
GCLK_EVSYS_CH_8 | 18 | 16 |
GCLK_EVSYS_CH_9 | 19 | 17 |
GCLK_EVSYS_CH_10 | 20 | 18 |
GCLK_EVSYS_CH_11 | 21 | 19 |
GCLK_TCC0 | 22 | 21 |
GCLK_TCC1, GCLK_TCC2 | 23 | 5 |
GCLK_AC | 24 | 20 |
GCLK_CM4_TRACE | 25 | 7 |
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.