http://www.picbasic.co.uk/forum/cont...-EEPROM-Part-1
May help a little... Should be the same concept.