Make it easy on yourself, get a 24C256, 32k x 8 eeprom. Word address, byte data
I2Cwrite datapin, clockpin, $a0, address, data
But if you're hellbent on using the 24c08...
address var word 'only use lower 10 bit
addr var byte
control var byte
addr = address.lowbyte
control = $a0 + ( address.highbyte << 2 )
i2cwrite datapin, clockpin, control, address, data-whatever
Bookmarks