17.7.5 Peripheral Channel Control

PCHTRLm controls the settings of Peripheral Channel number m (m=0..34).

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

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

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.

CAUTION: This bit requires synchronization. When changing it, the bit value must be read-back (polling method) to ensure the synchronization is complete. Changing the bit value under ongoing synchronization will not generate an error.
ValueDescription
0The Peripheral Channel is disabled
1The Peripheral Channel is enabled

Bits 2:0 – GEN[2: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 17-6. 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

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.

Table 17-7. 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

The PCHCTRLm registers index values are shown in the following table :

Important: Refer to the Configuration Summary for the list of peripherals and peripheral instances present in each variant.
Table 17-8. PCHCTRLm Mapping
index(m)NameDescription
0GCLK_FDPLL96MFDPLL96M input clock source for reference
1GCLK_FDPLL96M_32KFDPLL96M slow clock for FDPLL96M internal clock timer
2GCLK_DFLLULPDFLLULP clock for DFLLULP
3GCLK_DFLL48MDFLL48M clock for DFLL48M
4GCLK_EICEIC
5GCLK_FREQM_MSRFREQM Measure
6GCLK_FREQM_REFFREQM Reference
7GCLK_USBUSB
8GCLK_EVSYS_CHANNEL_0EVSYS_CHANNEL_0
9GCLK_EVSYS_CHANNEL_1EVSYS_CHANNEL_1
10GCLK_EVSYS_CHANNEL_2EVSYS_CHANNEL_2
11GCLK_EVSYS_CHANNEL_3EVSYS_CHANNEL_3
12GCLK_EVSYS_CHANNEL_4EVSYS_CHANNEL_4
13GCLK_EVSYS_CHANNEL_5EVSYS_CHANNEL_5
14GCLK_EVSYS_CHANNEL_6EVSYS_CHANNEL_6
15GCLK_EVSYS_CHANNEL_7EVSYS_CHANNEL_7
16

GCLK_SERCOM0_SLOW

GCLK_SERCOM1_SLOW

GCLK_SERCOM2_SLOW

GCLK_SERCOM3_SLOW

GCLK_SERCOM4_SLOW

GCLK_SERCOM5_SLOW

SERCOM0_SLOW

SERCOM1_SLOW

SERCOM2_SLOW

SERCOM3_SLOW

SERCOM4_SLOW

SERCOM5_SLOW

17GCLK_SERCOM0_CORESERCOM0_CORE
18GCLK_SERCOM1_CORESERCOM1_CORE
19GCLK_SERCOM2_CORESERCOM2_CORE
20GCLK_SERCOM3_CORESERCOM3_CORE
21GCLK_SERCOM4_CORESERCOM4_CORE
22GCLK_SERCOM5_CORESERCOM5_CORE
23GCLK_TC0_TC1TC0,TC1
24GCLK_TC2TC2
25GCLK_TCC0_TCC1TCC0,TCC1
26GCLK_TCC2TCC2
27GCLK_TCC3TCC3
28GCLK_ADCADC
29GCLK_ACAC
30GCLK_DACDAC
31GCLK_PTCPTC
32GCLK_CCLCCL
33GCLK_I2S_0I2S Clock Unit 0
34GCLK_I2S_1I2S Clock Unit 1