>I got a X24C02 serial EEPROM, ... > So I read several times the X24C02 datasheet, but >something doesn't sound right. It says the device >sends an acknowledge after every byte received. Fine. >But the problem is "after sending 8 bits, the master >releases the bus (SDA) and the slave will pull down >the SDA line to acknowledge the byte received.". >I'm not exactly sure about this. Right, it is clear that you have no experience of the I2C bus. First step is to rectify this. Go to http://www.semiconductors.philips.com/buses/i2c/support/index.html and go to the bottom of the page and download the I2C bus specification. This is the definitive document on it. Now go to http://www.piclist.com/techref/piclist/index.htm and follow the links to the source code library. There is code in the library to allow using I2C devices with 16F84 PICs. _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist