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:

Table 17-4. RAMCTRL - Registers under Configuration Change Protection
RegisterKey
RAMCTRL.CTRLAIOREG
RAMCTRL.INTFLAGSIOREG