Programming Algorithms

The Program Flash Memory and User ID are programmed one word at a time. The EEPROM memory and configuration regions are programmed one byte at a time.

Figure 1. Device Program/Verify Flowchart
Notes:
  1. 1.See Figure 2.
  2. 2.See Figure 4.
Figure 2. Program Memory Flowchart
Notes:
  1. 1.This step is optional if the device has already been erased or has not been previously programmed.
  2. 2.If the device is code-protected or must be completely erased, then Bulk Erase the device, as shown in Figure 5.
Figure 3. One-Word Program Cycle
Figure 4. User ID and Configuration Memory Program Flowchart
Notes:
  1. 1.This step is optional if the device has already been erased or has not been previously programmed.
  2. 2.See Figure 3.
Figure 5. Bulk Erase Flowchart