In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Here is the code I used for a AT24C512 (64KB) EEPROM. [code] ' Write origData to EEPROM address addr_LSB,addr_MSB I2CStart SDA I2CSend SDA, $A0 I2CSend SDA, addr_MSB I2CSend SDA, addr_LSB I2CSend SDA, origData I2CStop SDA PAUSE 5 ' Read byte back from EEPROM address addr_LSB, addr_MSB I2CStart SDA I2CSend SDA, $A0 I2CSend SDA, addr_MSB I2CSend SDA, addr_LSB I2CStart SDA I2CSend SDA, $A1 I2CRecv SDA, readBack, 1 I2CStop SDA [/code] Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=100537#m120311 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)