17.4.11 Configuration Change Protection
RAMCTRL has registers under Configuration Change Protection (CCP), a security mechanism to prevent unintentional changes to the RAMCTRL settings. In order to write to these registers, a certain key must be written to the CPU.CCP register first, followed by a write access to the protected bits within four CPU instructions.
Attempting to write to a protected register without following the appropriate CCP unlock sequence leaves the protected register unchanged and returns a Bus Error on the data bus.
The following RAMCTRL registers are under CCP:
Register | Key |
---|---|
RAMCTRL.CTRLA | IOREG |
RAMCTRL.INTFLAGS | IOREG |