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
Have you looked at the following URL? http://www.keil.com/i2c/ Jon
Philips (the inventor of IIC) has a lot of appnotes, most with code Erik
Thanks for pointing to some of the resourses. Basically i am looking for C code. Bye.
It is difficult/impossible to code timing routines in C, the compiler manufaturer is under no obligation to make code run at specific execution times and often the time is release dependdent. Thus all IIC code will be in assebler. You can, of course make a "hich level" C interface to the assembler code. Erik
Hi, If you're interested, I have written an I2c routine (master mode only) in C. It's still not full mature, but it can give you some idea(s) of how to set up your own. Just send me your email to 'g-vcompernolle at tiscali dot be' and I'll send you the code. Rgds, Geert
Hi Geert Could you please post your I2C routine (master mode only) in C to me? Thanksin advance! ShiShen
View all questions in Keil forum