In SX Microcontrollers, SX/B Compiler and SX-Key Tool, davehein wrote: Chet, The code you are starting with is for a 24LC16, which is smaller than the 24LC128 and has a simpler interface. The 24LC128 is a 16Kx8 device, and it requires an extra address byte. The 24LC128 is addressed by sending a control byte followed by the MSB and LSB of the address. Since there are only 14 bits of address, the MSB has two "don't care" bits in the most significant bit positions. You can set these two bits to zero. Since you tied the three select address lines to ground, the control byte should have a value of A1 for reads and A0 for writes. I would suggest that you do an internet search on the 24LC128 and read the data sheet. I recently interfaced to a 24C512, and I had to read the data sheet several times before it made sense to me. I wrote my code in assembly, but the high level read/write routines should look similar to yours. I posted my code in the thread at [url=http://forums.parallax.com/forums/default.aspx?f=7&m=130800]http://forums.parallax.com/forums/default.aspx?f=7&m=130800[/url] . Dave ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=143252#m143267 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)