2.6 Page Erase
Figure 2-6 shows a high-level overview of erasing a page of code memory.
Table 2-5 provides the ICSP programming details for erasing a page of code memory.
| Command (Binary) | Data (Hex) | Description |
|---|---|---|
|
Step 1: Exit the Reset vector. | ||
|
|
|
|
|
Step 2: Set the NVMADRU/NVMADR register pair to point to the correct page to be erased. | ||
|
|
|
|
|
Step 3: Set the NVMCON register to erase the first page of executive memory. | ||
|
|
|
|
|
Step 4: Initiate the erase cycle. | ||
|
|
|
|
|
Step 5: Generate clock pulses for the Page Erase operation to complete until the WR bit is cleared. | ||
|
— |
— |
Clock out contents of the VISI register.
Repeat until the WR bit is clear. |
