Is it possible to retrieve data from the file register in bank 0? Say I would like to retrieve some data stored in a file register in bank 0 and move it to the EEPROM. Are the file registers available in bank 1? Or do they have a different address? Or can I first go to bank 1, prepare and enable writing to the EEPROM, before returning to bank 0, move the data from the file register into the work register, and go back to bank 1 to complete the writing to the EEPROM? As far as I can see I can't store the data in the work register when moving to bank 1 to prepare the EEPROM because I will need the work register for data to the EECON2 register.
Sorry for all these questions. I have never really used the EEPROM part of the PIC before.
Edit: According to PIC Simulator IDE, I should be able to retrieve the data loaced in the file register in bank 1.
Last edited by The Blight; 03-26-2008 at 06:46 PM.
|