Data Sheet
356
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
21.5 Product Dependencies
In order to use this module, other parts of the system must be configured correctly, as described below.
21.5.1 Power Management
The NVMCTRL will continue to operate in any sleep mode where the selected source clock is running. The NVMCTRL’s
interrupts can be used to wake up the device from sleep modes. Refer to “PM – Power Manager” on page 117 for details
on the different sleep modes.
The Power Manager will automatically put the NVM block into a low-power state when entering sleep mode. This is
based on the Control B register (CTRLB - refer to CTRLB) SLEEPPRM bit setting. Read the CTRLB register description
for more details.
21.5.2 Clocks
Two synchronous clocks are used by the NVMCTRL. One is provided by the AHB bus (CLK_NVMCTRL_AHB) and the
other is provided by the APB bus (CLK_NVMCTRL_APB). For higher system frequencies, a programmable number of
wait states can be used to optimize performance. When changing the AHB bus frequency, the user must ensure that the
NVM Controller is configured with the proper number of wait states. Refer to the “Electrical Characteristics” on page 935
for the exact number of wait states to be used for a particular frequency range. Alternately, automatic wait-state
generation can be used by setting the AUTOWS bit.
21.5.3 Interrupts
The NVM Controller interrupt request line is connected to the interrupt controller. Using the NVMCTRL interrupt requires
the interrupt controller to be programmed first.
Refer to “Nested Vector Interrupt Controller” on page 34 for details.
21.5.4 Debug Operation
When an external debugger forces the CPU into debug mode, the peripheral continues normal operation.
Access to the NVM block can be protected by the security bit. In this case, the NVM block will not be accessible. See
“Security Bit” on page 361 for details.
21.5.5 Register Access Protection
All registers with write-access are optionally write-protected by the Peripheral Access Controller (PAC), except the
following registers:
z Interrupt Flag Status and Clear register (INTFLAG - refer to INTFLAG)
z Status register (STATUS - refer to STATUS)
Write-protection is denoted by the Write-Protected property in the register description. Write-protection does not apply for
accesses through an external debugger.
When the CPU is halted in debug mode, all write-protection is automatically disabled. Refer to “PAC – Peripheral Access
Controller” on page 41 for details.
21.5.6 Analog Connections
Not applicable.
21.6 Functional Description
21.6.1 Principle of Operation
The NVM Controller is a slave on the AHB and APB buses. It responds to commands, read requests and write requests,
based on user configuration.