/* EEPROM.C */ #include "p17c44.h" #define DATA_SIZE 0x1000; #pragma romdata DATTBL // put following romdata into section DATTBL unsigned rom data[DATA_SIZE]; #pragma romdata // set back to default romdata section /* configuration bits */ #pragma romdata __config = 0xFE00 rom const unsigned int FOSC0 = 1; // 0xFE00 rom const unsigned int FOSC1 = 1; // 0xFE01 rom const unsigned int WDTPS0 = 1; // 0xFE02 rom const unsigned int WDTPS1 = 1; // 0xFE03 rom const unsigned int PM0 = 1; // 0xFE04 rom const unsigned int spare1 = 1; // 0xFE05 rom const unsigned int PM1 = 1; // 0xFE06 rom const unsigned int spare2 = 1; // 0xFE07 rom const unsigned int PM2 = 1; // 0xFE08 rom const unsigned int spare3 = 1; // 0xFE09 rom const unsigned int spare4 = 1; // 0xFE0A rom const unsigned int spare5 = 1; // 0xFE0B rom const unsigned int spare6 = 1; // 0xFE0C rom const unsigned int spare7 = 1; // 0xFE0D rom const unsigned int spare8 = 1; // 0xFE0E rom const unsigned int spare9 = 1; // 0xFE0F #pragma romdata // set back to default romdata section /* Main application code for default CODE section */ void main( void ) { while( 1 ) { } /* end while */ } /* end main */