17.10.4 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[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 17-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
0x9 - 0xFReserved
Table 17-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.

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

Table 17-9. PCHCTRLm Mapping
index(m)NameDescription
0GCLK_DFLL48M_REFDFLL48M Reference
1GCLK_DPLLFDPLL96M input clock source for reference
2GCLK_DPLL_32KFDPLL96M 32kHz clock for FDPLL96M internal lock timer
3GCLK_EICEIC
4GCLK_USBUSB
5GCLK_EVSYS_CHANNEL_0EVSYS_CHANNEL_0
6GCLK_EVSYS_CHANNEL_1EVSYS_CHANNEL_1
7GCLK_EVSYS_CHANNEL_2EVSYS_CHANNEL_2
8GCLK_EVSYS_CHANNEL_3EVSYS_CHANNEL_3
9GCLK_EVSYS_CHANNEL_4EVSYS_CHANNEL_4
10GCLK_EVSYS_CHANNEL_5EVSYS_CHANNEL_5
11GCLK_EVSYS_CHANNEL_6EVSYS_CHANNEL_6
12GCLK_EVSYS_CHANNEL_7EVSYS_CHANNEL_7
13GCLK_EVSYS_CHANNEL_8EVSYS_CHANNEL_8
14GCLK_EVSYS_CHANNEL_9EVSYS_CHANNEL_9
15GCLK_EVSYS_CHANNEL_10EVSYS_CHANNEL_10
16GCLK_EVSYS_CHANNEL_11EVSYS_CHANNEL_11
17GCLK_SERCOM[0,1,2,3,4]_SLOWSERCOM[0,1,2,3,4]_SLOW
18GCLK_SERCOM0_CORESERCOM0_CORE
19GCLK_SERCOM1_CORESERCOM1_CORE
20GCLK_SERCOM2_CORESERCOM2_CORE
21GCLK_SERCOM3_CORESERCOM3_CORE
22GCLK_SERCOM4_CORESERCOM4_CORE
23GCLK_SERCOM5_SLOWSERCOM5_SLOW
24GCLK_SERCOM5_CORESERCOM5_CORE
25GCLK_TCC0, GCLK_TCC1TCC0,TCC1
26GCLK_TCC2TCC2
27GCLK_TC0, GCLK_TC1TC0,TC1
28GCLK_TC2, GCLK_TC3TC2,TC3
29GCLK_TC4TC4
30GCLK_ADCADC
31GCLK_ACAC
32GCLK_DACDAC
33GCLK_PTCPTC
34GCLK_CCLCCL