Your programmer may be your friend here. My first choice is a humble PICkit2, which allows EEPROM data to be written and read back out too.
So you can set the initial value, run your program see it that works (to debug reads), then push your buttons and see if the correct value gets there (to debug your writes).




Bookmarks