24.22.2.2 NVMCON2 – Programming Control 2 Register

Name: NVMCON2
Offset: 0x10
Reset: 0x011F4000
Property: -

Bit 3130292827262524 
 ERS[3:0]   SLEEP 
Access R/WR/WR/WR/WR/W 
Reset 00001 
Bit 2322212019181716 
    WS[4:0] 
Access R/WR/WR/WR/WR/W 
Reset 11111 
Bit 15141312111098 
  TEMPCREAD1VREAD1  RETRY[1:0] 
Access RR/WR/WR/WR/W 
Reset 10000 
Bit 76543210 
        NVMPREPG 
Access R/W 
Reset 0 

Bits 31:28 – ERS[3:0] Erase Retry State

These bits are used by software to track the software state of the erase retry procedure in the event of a system Reset (NMCLR) or Brown-out Reset (BOR) event.

Bit 24 – SLEEP Power Down in Sleep mode

Note: This field can only be modified when the NVMKEY unlock sequence is satisfied.
ValueDescription
1

Configures Flash for power-down when the system is in Sleep mode

0

Configures Flash for standby when the system is in Sleep mode

Bits 20:16 – WS[4:0] Flash Access Wait State Control for VREAD1 = 1

Note:
  1. When VREAD1 = 1, WS[4:0] only affects the memory containing NVMADDR[31:0].
  2. This field can only be modified when the NVMKEY unlock sequence is satisfied.
ValueDescription
11111

31 wait states (32 total system clocks)

11110

30 wait states (31 total system clocks)

...
00010

2 wait states (3 total system clocks)

00001

1 wait state (2 total system clocks)

00000

0 wait state (1 total system clock)

Bit 14 – TEMP Operating Temperature Control bit

Bit 13 – CREAD1 Compare Read of Logic 1 bit

Compare read 1 causes all bits in a Flash Word (including ECC if it exists) to be evaluated during the read. If all bits are ‘1’, the lowest Word in the Flash Word evaluates to 0x0000_0001, all other Words are 0x0001_0000. If any bit is ‘0’, the read evaluates to 0x0000_0000 for all Words in the Flash Word.

Note:
  1. When using erase retry in an ECC Flash system, CREAD1 = 1 must be used.
  2. This field can only be modified when the NVMKEY unlock sequence is satisfied.
ValueDescription
1

Compare read enabled only if VREAD1 = 1

0

Compare read disabled

Bit 12 – VREAD1 Verify Read of logic 1 Control bit

Note:
  1. When VREAD1 = 1, the Flash wait state control is from WS[4:0] for the memory containing NVMADDR[31:0].
  2. Using Page Erase Retry and Verify Read procedure increase the life of the Flash memory.
  3. This field can only be modified when NVMCON.WR == 0 and the NVMKEY unlock sequence is satisfied.
ValueDescription
1

Selects erase retry procedure with verify read

0

Selects single erase without verify read

Bits 9:8 – RETRY[1:0] Erase Retry Control bit, only used when VREAD1 = 1

Note: This field can only be modified when NVMCON.WR == 0.
ValueDescription
11

Erase strength for last retry cycle

10

Erase strength for third retry cycle

01

Erase strength for second retry cycle

00

Erase strength for first retry cycle

Bit 0 – NVMPREPG NVM Pre-Program Control Bit

Note: This field can only be modified when NVMCON.NVMWR= = 0.
ValueDescription
1

Program Operations include the Pre-Program step

0

Program Operations exclude the Pre-Program step