Oleg I need read & write data to Serial EEPROM(AT24c164) via MCU with I2C interface(AT89C51 IC2) under the C environment(or LabWindows/CVI).Could you please post a example which is how to programming this 2-wire interface? Regards ShiShen
hi, first of all, I'm not the one here who may ask your question. I cannot post an example here due its size but I may provide you a link to complex program which utilizes AT24C01 via I2C. Take care that the code is for SiLabs C8051F120 and is wrote with assembler. Anyway the code contains all needed I2C subroutines you may learn and write own C implementation. The code is published by Michael Karas so all copyrights are from him. The link: http://www.8052.com/users/mkaras/loader.pdf Regards, Oleg