Programming the data EEPROM as others have suggested seems like the easiest answer. Alternatively you could just read the EEPROM to see if those locations hold what you expect them to. If they don't, load them. Another (much more complex) way would be to make your code load the values the first time it's run, then modify the program memory to skip those instructions forever after. Seems like a lot of work though. Josh -- A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams samo benedihih wrote: > I'm building central heating controller. In INIT phase of my program there > is a few instructions that preload first five EEPROM locations with number > five. What I'd like to know is: how do I tell the PIC that it should execute > this part of program only at first go after programming the PIC and that it > shouldn't touch EEPROM in INIT phase after any kind of reset. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.