14.8.4 Peripheral Channel Control

PCHTRLm controls the settings of Peripheral Channel number m (m=[47:0]).

Name: PCHCTRLm
Offset: 0x80 + m*0x04 [m=0..47]
Reset: 0x00000000
Property: PAC Write-Protection

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
          
Access  
Reset  
Bit 76543210 
 WRTLOCKCHEN  GEN[3:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 

Bit 7 – WRTLOCK Write Lock

After this bit is set to '1', further writes to the PCHCTRLm register will be discarded. The control register of the corresponding Generator n (GENCTRLn), as assigned in PCHCTRLm.GEN, will also be locked. It can only be unlocked by a Power Reset.

Note that Generator 0 cannot be locked.

ValueDescription
0The Peripheral Channel register and the associated Generator register are not locked
1The Peripheral Channel register and the associated Generator register are locked

Bit 6 – CHEN Channel Enable

This bit is used to enable and disable a Peripheral Channel.

ValueDescription
0The Peripheral Channel is disabled
1The Peripheral Channel is enabled

Bits 3:0 – GEN[3:0] Generator Selection

This bit field selects the Generator to be used as the source of a peripheral clock, as shown in the table below:

Table 14-7. Generator Selection
ValueDescription
0x0Generic Clock Generator 0
0x1Generic Clock Generator 1
0x2Generic Clock Generator 2
0x3Generic Clock Generator 3
0x4Generic Clock Generator 4
0x5Generic Clock Generator 5
0x6Generic Clock Generator 6
0x7Generic Clock Generator 7
0x8Generic Clock Generator 8
0x9Generic Clock Generator 9
0xAGeneric Clock Generator 10
0xBGeneric Clock Generator 11
Table 14-8. Reset Value after a User Reset or a Power Reset
ResetPCHCTRLm.GENPCHCTRLm.CHENPCHCTRLm.WRTLOCK
Power Reset0x00x00x0
User Reset

If WRTLOCK = 0
: 0x0

If WRTLOCK = 1: no change

If WRTLOCK = 0
: 0x0

If WRTLOCK = 1: no change

No change

A Power Reset will reset all the PCHCTRLm registers.

A User Reset will reset a PCHCTRL if WRTLOCK=0, or else, the content of that PCHCTRL remains unchanged.

The PCHCTRL register Reset values are shown in the table below, PCHCTRLm Mapping.

Table 14-9. PCHCTRLm Mapping
index(m)NameDescription
0GCLK_OSCCTRL_DFLL48DFLL48 input clock source
1GCLK_OSCCTRL_FDPLL0Reference clock for FDPLL0
2GCLK_OSCCTRL_FDPLL1Reference clock for FDPLL1
3

GCLK_OSCCTRL_FDPLL0_32K
GCLK_OSCCTRL_FDPLL1_32K
GCLK_SDHC0_SLOW
GCLK_SDHC1_SLOW
GCLK_SERCOM[0..7]_SLOW

FDPLL0 32KHz clock for internal lock timer
FDPLL1 32KHz clock for internal lock timer
SDHC0 Slow
SDHC1 Slow
SERCOM[0..7] Slow

4GCLK_EICEIC
5GCLK_FREQM_MSRFREQM Measure
6GCLK_FREQM_REFFREQM Reference
7GCLK_SERCOM0_CORESERCOM0 Core
8GCLK_SERCOM1_CORESERCOM1 Core
9GCLK_TC0, GCLK_TC1TC0, TC1
10GCLK_USBUSB
22:11GCLK_EVSYS[0..11]EVSYS[0..11]
23GCLK_SERCOM2_CORESERCOM2 Core
24GCLK_SERCOM3_CORESERCOM3 Core
25GCLK_TCC0, GCLK_TCC1TCC0, TCC1
26GCLK_TC2, GCLK_TC3TC2, TC3
27GCLK_CAN0CAN0
28GCLK_CAN1CAN1
29GCLK_TCC2, GCLK_TCC3TCC2, TCC3
30GCLK_TC4, GCLK_TC5TC4, TC5
31GCLK_PDECPDEC
32GCLK_ACAC
33GCLK_CCLCCL
34GCLK_SERCOM4_CORESERCOM4 Core
35GCLK_SERCOM5_CORESERCOM5 Core
36GCLK_SERCOM6_CORESERCOM6 Core
37GCLK_SERCOM7_CORESERCOM7 Core
38GCLK_TCC4TCC4
39GCLK_TC6, GCLK_TC7TC6, TC7
40GCLK_ADC0ADC0
41GCLK_ADC1ADC1
42GCLK_DACDAC
44:43GCLK_I2SI2S
45GCLK_SDHC0SDHC0
46GCLK_SDHC1SDHC1
47GCLK_CM4_TRACECM4 Trace