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
0x0 OFF No action
0x1 CLEAR Clear the peripheral write control
0x2 SET Set the peripheral write control
0x3 LOCK Set 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
Peripheral Identifier
APBA Peripherals
PAC 0
PM 1
MCLK 2
RSTC 3
OSCCTRL 4
OSC32KCTRL 5
SUPC 6
GCLK 7
WDT 8
RTC 9
EIC 10
FREQM (4) 11
TEMPS (1) 12
APBB Peripherals
PORT (2,3) 32
DSU 33
NVMCTRL 34
DMAC 35
MTB 36
HMATRIXHS 37
APBC Peripherals
EVSYS 64
SERCOM0 65
SERCOM1 66
SERCOM2 67
SERCOM3 68
TCC0 73
TCC1 74
TCC2 75
TC0 76
TC1 77
TC2 78
TC3 79
TC4 80
ADC0 81
ADC1 82
SDADC 83
AC 84
DAC 85
CCL 87
PDEC 90
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.