Each PIC controller has different page size that you can WRITE to.
For example if your chip has 64 words page, then you have to read all 64 words, change what you want, then write back the whole 64 words page.
It is a bit clumsy but that is how it works. You cannot change only the words you really want. And if you write less tat the page size, then data will not be written!
So, my suggestion is to make an array, get the page form Flash, make the changes, then store back to Flash the array.
Ioannis
Bookmarks