Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 ユーザーズマニュアル

製品コード
SW006021-1
ページ / 518
Library Functions
 2012 Microchip Technology Inc.
DS52053B-page 315
__EEPROM_DATA 
Synopsis
#include <xc.h>
__EEPROM_DATA(a,b,c,d,e,f,g,h)
Description
This macro is used to store initial values into 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.
__EEPROM_DATA()
 will begin writing to EEPROM address zero, and will 
auto-increment the address written to 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)
void 
main (void)
{
}
See also
 __CONFIG()
__IDLOC 
Synopsis
#include <xc.h>
 
__IDLOC(x)
Description
This macro is provided for legacy support only. Use the #pragma config for new proj-
ects.
This macro places data into the device’s special locations outside of addressable 
memory reserved for ID. This would be useful for storage of serial numbers etc.
The macro will attempt to write 4 nibbles of data to the 4 locations reserved for ID 
purposes.
Example
#include <xc.h>
/* will store 1, 5, F and 0 in the ID registers */
__IDLOC(15F0);
void 
main (void)
{
}