
DEVICE CONFIGURATION
--------------------

PICmicro configuration information can be put in the generated hex
and assembly file. ID locations can also be programmed. The
configuration information is generated IF AND ONLY IF the #pragma
config statement is included.

Note that some PICmicro programmers may reject this information,
especially setting of the ID locations.

Syntax:

    #pragma config <id> = <state> [, <id> = <state>]

    <id>    : PWRTE, WDTE, FOSC, BODEN, ID
    <state> : on, off, LP,HS,XT,RC, <number>, ~<number>

    #pragma config WDTE=off, FOSC=HS
    #pragma config WDTE=0, FOSC=2, PWRTE=1

    #pragma config |= 0x100  // set bit 8
    #pragma config &= 0xFFFC // clear bit 0 and 1
    #pragma config &= ~3     // clear bit 0 and 1
    #pragma config |= 3      // set bit 0 and 1

More than one #pragma config statements is possible. The default
setting of the attributes is 0.

It is not possible to add other symbols in the 'config_def'
statement. The operators '|' and '&' can be used to achieve high-
level readability of unsupported config symbols:

    #define CP_off  |= 0x3F30   // 16C62X and similar
    #pragma config CP_off, FOSC = LP

Programming of ID-locations:

    #pragma config ID=0x1234   //  all 4 locations, 4 bit in each

    #pragma config ID[0] = 0xFFF  //  location 0
    #pragma config ID[1] = 0x010  //  location 1
    #pragma config ID[2] = 1, ID[3] = 0x23

The config and ID information is added at the end of the generated
assembly and hex file.

Configuration word address:
    12 bit core: 0xFFF
    14 bit core: 0x2007

ID words address:
    16C54/55:    0x200-0x203
    16C56:       0x400-0x403
    16C57/58:    0x800-0x803
    14 bit core: 0x2000-0x2003



