How do I program the PIC® MCU's ID Locations?
Some 8-bit PIC® devices have locations outside the addressable memory area that can be used for storing program information, such as an ID number.
The config pragma is used to place data into these locations by using a special register name. The pragma is used as follows.
Where x is the number (position) of the ID location, and value is the nibble or byte which is to be positioned into that ID location.
The size of each ID location varies from device to device. See the device datasheet for more information.
Example 1:
Example 2:
Refer to the device datasheet for programming ID Location and the size of each ID location (nibble wide/byte wide).