6.3.2.1.1 Status Bits

Program Flash memory has two status bits in the NVMCON register to check the status of the NVM operation initiated by the user: the WRERR bit and the WREC bit. These bits ensure that the programming sequence has completed successfully.