User Row Programming Sequence
A row programming sequence typically includes the following steps, subject to the constraints externally imposed by the Security module:
- Load NVMSRCADR with address of data in device RAM.
- Load NVMADR with the Flash address to be programmed.
- Configure NVMCON to Row program:
- WREN = 1
- PROGOP = Row Program (0x2)
- Set the WR bit.
- The program sequence is completed and the WR bit is cleared by hardware.
- Clear WREN bit to avoid accidental writes.
- Test the WRERR bit to ensure the program sequence is completed successfully.
Note: Writes to RAM used during bus mastered row programming cannot be
protected. Consequently, the user must be aware that inadvertent corruption of this area
of RAM is possible during programming.