Schau mal da rein, normalerweise kann man den Beispielen trauen.

http://www.sprut.de/electronic/pic/grund/eeprom.htm