using bptr on an EXTERNAL eeprom

fernando_g

Senior Member
There is a thread where Allycat explains how to write multiple consecutive variables into the internal EEPROM.

He offers the following code snippet:

Code:
bptr = 10         ; Points to b10
write eeprom_location,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc
How about using a similar expression for external EEPROM? Could something to the effect be done?

Code:
i2cslave %10100000, i2cfast, i2cword 'EEPROM setup
bptr= $1C 'Assuming I've a 14M2
writei2c EEPROM_address,(@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc)
Assume that the values contained in the different bptr variables have been previously stored.
 

oracacle

Senior Member
that should work as hippy informed me the other day the bptr can be used in place of the variable name.
providing you don't overflow the page on the eeprom (that maybe a consideration) and don't overflow eeprom address during the write you should be fine
 

hippy

Technical Support
Staff member
That should work as expected. Assuming you don't cross the EEPROM page boundary.
 
Top