6.4.3.1.1 User Page Erase Sequence

Executing a page erase sequence typically includes the following user code steps, subject to the constraints externally imposed by the Security module:

  1. Load NVMADR with an address within the page to be erased.
  2. Configure NVMCON to page erase:
    1. WREN = 1
    2. PROGOP = Page erase (0x3)
  3. Set the WR bit.
  4. The program sequence is completed and the WR bit is cleared by hardware.
  5. Clear WREN bit.
  6. Test the WRERR bit to ensure the erase sequence is completed successfully.