26.7.2 Control B

Name: CTRLB
Offset: 0x04
Reset: 0x00000080
Property: PAC Write-Protection

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
       READMODE[1:0] 
Access R/WR/W 
Reset 00 
Bit 15141312111098 
       SLEEPPRM[1:0] 
Access R/WR/W 
Reset 00 
Bit 76543210 
    RWS[3:0]  
Access R/WR/WR/WR/W 
Reset 0000 

Bits 17:16 – READMODE[1:0] NVMCTRL Read Mode

ValueNameDescription
0x0NO_MISS_PENALTYThe NVM Controller (cache system) does not insert Wait states on a cache miss. Gives the best system performance.
0x1LOW_POWERReduces 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.
0x2DETERMINISTICThe 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.
0x3Reserved

Bits 9:8 – SLEEPPRM[1:0] Power Reduction mode during Sleep

Indicates the Power Reduction mode during sleep.
ValueNameDescription
0x0WAKEUPACCESSNVM block enters Low-Power mode when entering sleep.
 NVM block exits Low-Power mode upon first access.
0x1WAKEUPINSTANTNVM block enters Low-Power mode when entering sleep.
 NVM block exits Low-Power mode when exiting sleep.
0x2Reserved
0x3DISABLEDAuto power reduction disabled.

Bits 4:1 – RWS[3:0] NVM Read Wait States

These bits control the number of Wait states for a read operation. '0' indicates zero Wait states, '1' indicates one wait state, etc., up to 15 wait states.

This register is initialized to 0 wait states. Software can change this value based on the NVM access time and system frequency.