Vladimir, What type of programmer are you using to get the hex file into the PIC?. Are you making sure that the DATA CODE PROTECTION BIT (bit 8) is set to 1 in the configuration word. This bit maps to the WREN (EEPROM Write Enable) at location 9C hex. Check if this option is being set during the burn process as the configuration between F84 and an F628 are different. It may have been over looked. As for the code the only thing I see wrong is the missing brackets[ ] after the location. I use the 16F628 for my link controllers and use the EEPROM statement for storing the CWID characters. I hope this helps?
Dave Purola,
Bookmarks