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 the address of data in device RAM.
- Load NVMADR with the Flash address to be programmed.
- Configure NVMCON to row program:
- WREN =
1
- PROGOP = 0x2
- WREN =
- Set the WR bit.
- The program sequence completes and the WR bit is cleared by hardware.
- Clear WREN bit to avoid accidental writes.
- Test the WRERR bit to ensure the program sequence 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.