In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Do check your hardware, John; I promise, that program is running -- as you would expect from examining the code -- on my PDB. Actually, the 24LC256 is easier to use as there's no messing around with the slave ID byte, and you can use up to eight of them in a project (not the case with the 24LC16B). I've attached my 24LC512 demo which will in fact work with the 24LC256, 24LC128, 24LC64, and 24LC32 (you just have to limit the EE address for the respective device). Note that this program can write a byte or word to a given address; when a word is written it is stored Little-Endian. There are two functions for reading back: GET_EE and GET_EE2; the latter is for reading back a word value. The address must always be a word. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=205777#m205873 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)