29.6.2 Control B

Name: CTRLB
Offset: 0x04
Reset: 0x00000000
Property: PAC Write-Protection, Write-Secure

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
     ReservedCACHEDISREADMODE[1:0] 
Access RW/R/RWRW/R/RWRW/R/RWRW/R/RW 
Reset 0000 
Bit 15141312111098 
     FWUP SLEEPPRM[1:0] 
Access RW/R/RWRW/R/RWRW/R/RW 
Reset 000 
Bit 76543210 
  Reserved RWS[3:0]Reserved 
Access RW/R/RWRW/R/RWRW/R/RWRW/R/RWRW/R/RWRW/R/RW 
Reset 000000 

Bit 19 – Reserved Must Be Set to 0

This bit must always be set to ‘0’ when programming the register.

Bit 18 – CACHEDIS Cache Disable

This bit is used to disable the cache.

ValueDescription
0 The cache is enabled
1 The cache is disabled

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

ValueNameDescription
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 -

Bit 11 – FWUP Fast Wake-Up Enable

This bit is used to enable the fast wake-up mode.

ValueDescription
0 Fast wake-up is turned off
1 Fast wake-up is turned on

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

Indicates the Power Reduction Mode during sleep.
ValueNameDescription
0x0 WAKEONACCESS 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.

Bit 6 – Reserved Must Be Set to 0

This bit must always be set to ‘0’ when programming the register.

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.

Bit 0 – Reserved Must Be Set to 0

This bit must always be set to ‘0’ when programming the register.