20.7.4 Peripheral Channel Control

PCHCTRLm controls the settings of Peripheral Channel number m (m=0..63).

Important: PCHCTRLm values, where m = 52 and m = 53, are Reserved.
Table 20-11. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: PCHCTRLm
Offset: 0x80 + m*0x04 [m=0..63]
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 20-12. 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
0xCGeneric Clock Generator 12
0xDGeneric Clock Generator 13
0xEGeneric Clock Generator 14
0xFGeneric Clock Generator 15
Table 20-13. Reset Value after a User Reset or a Power Reset
ResetPCHCTRLm.GENPCHCTRLm.CHENPCHCTRLm.WRTLOCK
Power Reset0x00x00x0
User Reset0x00x00x0

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 20-14. PCHCTRL (Index) GCLK Mapping
Target DestinationGCLK NamePCHCTRL(Index)
OSCCTRLGCLK_OSCCTRL_DFLL480
GCLK_OSCCTRL_PLL01
GCLK_OSCCTRL_PLL12
FREQMGCLK_FREQM_MSR3
GCLK_FREQM_REF4
EICGCLK_EIC5
EVSYSGCLK_EVSYS_CH06
GCLK_EVSYS_CH17
GCLK_EVSYS_CH28
GCLK_EVSYS_CH39
GCLK_EVSYS_CH410
GCLK_EVSYS_CH511
GCLK_EVSYS_CH612
GCLK_EVSYS_CH713
GCLK_EVSYS_CH814
GCLK_EVSYS_CH915
GCLK_EVSYS_CH1016
GCLK_EVSYS_CH1117
SERCOM0GCLK_SERCOM0_SLOW18
SERCOM1GCLK_SERCOM1_SLOW
SERCOM4GCLK_SERCOM4_SLOW
SERCOM2GCLK_SERCOM2_SLOW19
SERCOM3GCLK_SERCOM3_SLOW
SERCOM5GCLK_SERCOM5_SLOW
SERCOM6GCLK_SERCOM6_SLOW
SERCOM7GCLK_SERCOM7_SLOW20
SERCOM8GCLK_SERCOM8_SLOW
SERCOM9GCLK_SERCOM9_SLOW
SERCOM0GCLK_SERCOM0_CORE21
SERCOM1GCLK_SERCOM1_CORE22
SERCOM2GCLK_SERCOM2_CORE23
SERCOM3GCLK_SERCOM3_CORE24
SERCOM4GCLK_SERCOM4_CORE25
SERCOM5GCLK_SERCOM5_CORE26
SERCOM6GCLK_SERCOM6_CORE27
SERCOM7GCLK_SERCOM7_CORE28
SERCOM8GCLK_SERCOM8_CORE29
SERCOM9GCLK_SERCOM9_CORE30
TCC0GCLK_TCC031
TCC1GCLK_TCC132
TCC2GCLK_TCC233
TCC6GCLK_TCC637
TCC7GCLK_TCC738
TCC8GCLK_TCC839
TCC9GCLK_TCC940
ADCGCLK_ADC41
ACGCLK_AC42
PTCGCLK_PTC43
I2S0GCLK_I2S044
I2S1GCLK_I2S145
CAN0GCLK_CAN046
CAN1GCLK_CAN147
CAN2GCLK_CAN248
CAN3GCLK_CAN349
CAN4GCLK_CAN450
CAN5GCLK_CAN551
RSVD---52
RSVD---53
GMACGCLK_GMAC_TX54
GCLK_GMAC_TSU55
SQI0GCLK_SQI056
SQI1GCLK_SQI157
SDHC0GCLK_SDHC0_CORE58
GCLK_SDHC0_SLOW59
SDHC1GCLK_SDHC1_CORE60
GCLK_SDHC1_SLOW61
MLBGCLK_MLB62
TRACEGCLK_CM7_TRACE63
Important: The GCLK_SERCOMn_SLOW setting must only be used for the I2C operating mode.