>I am a new member in piclist and i have a problem.i want to send some >data (one simple word or numbers) from my master pic 16F876 >to another slave pic 16F876 using I2C protocol .I have written some code in >assembly but it does not working right.I managed to transfer the >address byte, i get the first ack,then i see the right data on the >oscilloscope ,but i get a nack instead of ack and my next data don't go on. >any help would be accebtable with regard >ps:if you want to send you my code just tell me.i use mplab ide and assembly. I'm having a surprisingly hard time verifying this from the literature I have here, but I believe that when reading from a slave, it is the master that generates the ack bit. It tells the slave when the it has read the last byte. So (if I'm right) make sure you have the master generating this bit. Also make sure your code doesn't check for something it isn't supposed to check for, else it would get stuck. Barry -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist