31.2.15.1 Pre-Program

The Flash panels in this device support an option to Flash programming that increase endurance of the panel. This feature is called Pre-Program. When selected, the controller automatically initiates two programming cycles per write. The first is a short cycle and the second is a full cycle. This option adds about 20% to the programming time.

To use this feature set the CTRLA.PREPG bit when writing CTRLA.NVMOP. In all other respects the SFR setup is identical. Pre-Program improves endurance, refer to the Table   1 for more information. It is recommended to either always use or never use Pre-Program. Mixed use of PREPG yields undefined endurance and retention of the panel.

It is highly recommended to always have CTRLA.PREPG = 1.