Hi,
I've been doing rather a lot with the PIC16F877A I am using and find I am having to redo bits and peices because I am running out of memory. When I compile the program I normally see I have about 9% free of ROM and about 45% free of RAM.
The other day I purchased some 64K Eeprom's which I interface with using I2C. I only needed 1 and had to buy 10 so I now have 9 lying around which I am not using at present. How easy is it to stick some of the PIC program on the External EEprom and then load it in to RAM to execute? I figure I may as well use up the 45% of RAM that is free if I can.
I figured that the logic of the PIC program would be:
1. Initialise I2C
2. Read byte from Eeprom
3. Store byte to RAM
4. Repeat 2 and 3 until all EEprom read
5. Continue executing ROM
6. Execute RAM instructions when needed.
Is this possible? Has anyone done it?
Thanks heaps,
Craig
I've been doing rather a lot with the PIC16F877A I am using and find I am having to redo bits and peices because I am running out of memory. When I compile the program I normally see I have about 9% free of ROM and about 45% free of RAM.
The other day I purchased some 64K Eeprom's which I interface with using I2C. I only needed 1 and had to buy 10 so I now have 9 lying around which I am not using at present. How easy is it to stick some of the PIC program on the External EEprom and then load it in to RAM to execute? I figure I may as well use up the 45% of RAM that is free if I can.
I figured that the logic of the PIC program would be:
1. Initialise I2C
2. Read byte from Eeprom
3. Store byte to RAM
4. Repeat 2 and 3 until all EEprom read
5. Continue executing ROM
6. Execute RAM instructions when needed.
Is this possible? Has anyone done it?
Thanks heaps,
Craig