__EEPROM_DATA Macro

A macro that stores values in the device’s EEPROM registers at the time of programming.

Include

<xc.h>

Prototype

__EEPROM_DATA(value, value, value, value, value, value, value, value);

Arguments

value
One of eight values that are to be programmed to EEPROM

Remarks

This macro is used to store initial values in the device’s EEPROM registers at the time of programming.

The macro must be given blocks of 8 bytes to write each time it is called and can be called repeatedly to store multiple blocks.

The macro will begin writing to EEPROM address zero and auto-increment the address by 8 each time it is used.

Example

#include <xc.h>

__EEPROM_DATA(0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07)
__EEPROM_DATA(0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F)

int main(void)
{
}