19.6.1 Write Control

Name: WRCTRL
Offset: 0x00
Reset: 0x00000000
Property: 

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
 KEY[7:0] 
Access RWRWRWRWRWRWRWRW 
Reset 00000000 
Bit 15141312111098 
 PERID[15:8] 
Access RWRWRWRWRWRWRWRW 
Reset 00000000 
Bit 76543210 
 PERID[7:0] 
Access RWRWRWRWRWRWRWRW 
Reset 00000000 

Bits 23:16 – KEY[7:0] Peripheral Access Control Key

These bits define the peripheral access control key:

ValueNameDescription
0x0OFFNo action
0x1CLEARClear the peripheral write control
0x2SETSet the peripheral write control
0x3LOCKSet and lock the peripheral write control until the next hardware reset

Bits 15:0 – PERID[15:0] Peripheral Identifier

The PERID represents the peripheral whose control is changed using the WRCTRL.KEY.

Table 19-1. Peripheral Identifier
PeripheralIdentifier
APBA Peripherals
PAC0
PM1
MCLK2
RSTC3
OSCCTRL4
OSC32KCTRL5
SUPC6
GCLK7
WDT8
RTC9
EIC10
FREQM (4)11
TEMPS (1)12
APBB Peripherals
PORT (2,3)32
DSU33
NVMCTRL34
DMAC35
MTB36
HMATRIXHS37
APBC Peripherals
EVSYS64
SERCOM065
SERCOM166
SERCOM267
SERCOM368
TCC073
TCC174
TCC275
TC076
TC177
TC278
TC379
TC480
ADC081
ADC182
SDADC83
AC84
DAC85
CCL87
PDEC90
Note:
  1. PAC protection for the TSENS should only be used when the TSENS is in Free Run mode.
  2. IOBUS writes are not prevented to PAC write-protected registers when the PORT module is PAC protected.
  3. PORT read/write attempts on non-implemented registers, including addresses beyond the last implemented register group do not generate a PAC protection error.
  4. Reading the Frequency Meter Control B register (FREQM.CTRLB) will result in a PAC error.