Hi, I am looking for simple read and write routines for I2C interface between Atmel low-end 89C2051 microcontroller and 24C04 serial EEPROM. Any help would be great . Thanks in Advance. Rocknmoon
"Basically i am looking for C code." You should not be afraid to use a little assembler where that is the most appropriate solution! Probably the two least appropriate areas for 'C' are timing-critical details, and extensive manipulation of individual bits for low-level hardware IO. This sounds like an ideal application for assembler!