Check out this thread for information on programming EEPROM for 8-bit MCUs.
Also, do a search on "programming EEPROM" in the search box at the bottom left of this web page. You will turn up many discussions on the matter.
---Tom