NVMCON1

Nonvolatile Memory Control 1 Register
Note:
  1. 1.This can only be used with PFM.
  2. 2.This bit is set when WR = 1 and clears when the internal programming timer expires or the write is completed successfully.
  3. 3.Bit must be cleared by the user; hardware will not clear this bit.
  4. 4.Bit may be written to ‘1’ by the user in order to implement test sequences.
  5. 5.This bit can only be set by following the sequence described in NVM Unlock Sequence.
  6. 6.Operations are self-timed and the WR bit is cleared by hardware when complete.
  7. 7.Once a write operation is initiated, setting this bit to zero will have no effect.
  8. 8.The bit can only be set in software. The bit is cleared by hardware when the operation is complete.
Name:
NVMCON1
Offset:
0xF81
Reset:
Access:
Bit76543210
NVMREG[1:0]FREEWRERRWRENWRRD
AccessR/WR/WR/S/HCR/W/HSR/WR/S/HCR/S/HC
Reset000000

Bits 7:6 – NVMREG[1:0]: NVM Region Selection bits

NVM Region Selection bits

ValueDescription
10 PFM locations write access
x1 User IDs, Configuration Bits, Rev ID and Device ID locations write access
00 Data EEPROM Memory locations write access

Bit 4 – FREE

Program Flash Memory Erase Enable bit(1)
ValueDescription
1 Performs an erase operation on the next WR command
0 The next WR command performs a write operation

Bit 3 – WRERR

Write-Reset Error Flag bit(2,3,4)
ValueDescription
1 A write operation was interrupted by a Reset (hardware set),
or the WR bit was set during one of the following conditions:
  • an invalid address is accessed
  • NVMREG and address do not point to the same region

  • a write-protected address is accessed.
0 All write operations have completed normally

Bit 2 – WREN: Program/Erase Enable bit

Program/Erase Enable bit

ValueDescription
1 Allows program/erase and refresh cycles
0 Inhibits programming/erasing and user refresh of NVM

Bit 1 – WR

Write Control bit(5,6,7)
ValueNameDescription
1 NVMREG=00 Initiates an erase/program cycle at the corresponding Data EEPROM Memory location specified by NVMADR
1 NVMREG=10 and TBLPTR21=0 Initiates the PFM write operation with data from the holding registers
1 NVMREG=x1 and TBLPTR21 =1 Initiates the User ID write operation with data from the holding registers or single Config byte at TBLPTR
0 NVMREG=xx NVM program/erase operation is complete and inactive

Bit 0 – RD

Read Control bit(8)
ValueDescription
1 Initiates a read at address pointed by NVMREG and NVMADR, and loads data into NVMDAT
0 NVM read operation is complete and inactive