Ummm, Yes?
You can pre-load the EEDATA register before you switch to Bank1 to set EECON1 & EECON2 for the write. Or you can setup for the write, and before you do the
Is that what you mean?
The contents of EEDATA are not effected by the EECON2 write sequence you can swtich banks, get the data, switch banks back and write it to EEDATA then do the write sequence..
Switching banks at any point in the process has no effect on the data stored in W or other registers. The only critical bit is the write sequence which is in the data sheets for each PIC. |