| Bit31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| Access | |||||||
| Reset | |||||||
| Bit23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| CACHEDIS[1:0] | READMODE[1:0] | ||||||
| Access | R/W | R/W | R/W | R/W | |||
| Reset | 0 | 0 | 0 | 0 | |||
| Bit15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| SLEEPPRM[1:0] | |||||||
| Access | R/W | R/W | |||||
| Reset | 0 | 0 | |||||
| Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| MANW | RWS[3:0] | ||||||
| AccessR/W | R/W | R/W | R/W | R/W | |||
| Reset1 | 0 | 0 | 0 | 0 | |||
Cache Disable
These bits are used to enable/disable caching of the NVM and RWW EEPROM sections. The same cache is used for both sections.
| CACHEDIS[1:0] | RWW EEPROM | NVM Cache |
|---|---|---|
| 0x0 | Disabled | Enabled |
| 0x1 | Disabled | Disabled |
| 0x2 | Enabled | Enabled |
| 0x3 | Reserved | Reserved |
| Value | Description |
|---|---|
| 0 | The cache is enabled |
| 1 | The cache is disabled |
NVMCTRL Read Mode
| Value | Name | Description |
|---|---|---|
| 0x0 | NO_MISS_PENALTY | The NVM Controller (cache system) does not insert wait states on a cache miss. Gives the best system performance. |
| 0x1 | LOW_POWER | Reduces power consumption of the cache system, but inserts a wait state each time there is a cache miss. This mode may not be relevant if CPU performance is required, as the application will be stalled and may lead to increased run time. |
| 0x2 | DETERMINISTIC | The cache system ensures that a cache hit or miss takes the same amount of time, determined by the number of programmed Flash wait states. This mode can be used for real-time applications that require deterministic execution timings. |
| 0x3 | Reserved |
Power Reduction Mode during Sleep
| Value | Name | Description |
|---|---|---|
| 0x0 | WAKEUPACCESS | NVM block enters low-power mode when entering sleep. NVM block exits low-power mode upon first access. |
| 0x1 | WAKEUPINSTANT | NVM block enters low-power mode when entering sleep. NVM block exits low-power mode when exiting sleep. |
| 0x2 | Reserved | |
| 0x3 | DISABLED | Auto power reduction disabled. |
Manual Write
Note that reset value of this bit is '1'.
| Value | Description |
|---|---|
| 0 | Writing to the last word in the page buffer will initiate a write operation to the page addressed by the last write operation. This includes writes to memory and auxiliary rows. |
| 1 | Write commands must be issued through the CTRLA.CMD register. |
NVM Read Wait States
This register is initialized to 0 wait states. Software can change this value based on the NVM access time and system frequency.