An EEPROM sample can be found here.
http://www.picbasic.co.uk/forum/show...461#post104461