Hi! Obviously I tried to write 1k of code and test 100 flags to do what DE directive does. To answer question below: I need those values set to 5 ONLY at very first powerup after programming. No matter what kind of reset happens, they must remain the way PIC left them before reset. Thanks a lot to everyone for answers. Regards, Samo > Whoa, step back and look at the overall problem. This EEPROM writing > smells like the answer to the wrong question. Do you want the EEPROM > initialized only the first time its run or on every powerup? If the > former, just put the data into the source code. If it needs to be > initialized every powerup but not on other resets, then RAM seems more > apporpriate. Explain the overall problem you are trying to solve. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu