19.7.4 Peripheral Channel Control

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

Table 19-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..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 19-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
Table 19-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 19-14. PCHCTRL (Index) GCLK Mapping
Target DestinationGCLK NamePCHCTRL (Index)
OSCCTRLGCLK_OSCCTRL_DFLL480
GCLK_OSCCTRL_PLL1
FREQMGCLK_FREQM_MSR02
GCLK_FREQM_MSR13
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
SERCOMm, m = 0…7 SDMMCn, n = 0,1GCLK_SERCOMm_SLOW, m = 0…7 SDMMCn_SLOW, n=0,118
SERCOM0GCLK_SERCOM0_CORE19
SERCOM1GCLK_SERCOM1_CORE20
SERCOM2GCLK_SERCOM2_CORE21
SERCOM3GCLK_SERCOM3_CORE22
TCC0,TCC1GLCK_TCC0, GCLK_TCC123
TCC2,TCC3GLCK_TCC2, GCLK_TCC324
SERCOM4GCLK_SERCOM4_CORE25
SERCOM5GCLK_SERCOM5_CORE26
SERCOM6GCLK_SERCOM6_CORE27
SERCOM7GCLK_SERCOM7_CORE28
TCC4GCLK_TCC429
TCC5GCLK_TCC530
TCC6GCLK_TCC631
TCC7GCLK_TCC732
ADCGCLK_ADC33
ACGCLK_AC34
PTCGCLK_PTC35
SPI_IXSGCLK_SPI_IXS36
CCLGCLK_CCL37
PDECGCLK_PDEC38
CAN0GCLK_CAN039
CAN1GCLK_CAN140
ETHGCLK_ETH_TX41
GCLK_ETH_TSU42
SQIGCLK_SQI43
SDMMC0GLCK_SDMMC044
SDMMC1GLCK_SDMMC145
USBGCLK_USB46
CPU0GCLK_CPU0_TRACE47