2.5 Erasing Program Memory
Figure 2-5 shows a high-level overview of the Bulk Erase of code memory.
| Command (Binary) | Data (Hex) | Description |
|---|---|---|
| Step 1: Exit the Reset vector. | ||
|
|
|
|
| Step 2: Set the NVMCON register to erase all user program memory. | ||
|
|
|
|
| Step 3: Initiate the erase cycle. | ||
|
|
|
|
|
Step 4: Generate clock pulses for the code memory Bulk Erase operation to complete until the WR bit is cleared. | ||
|
— |
— |
Clock out contents of the VISI register.
Repeat until the WR bit is cleared. |
