>> According to the datasheet, in Master mode: >> R_W = 1 -- Transmit is in progress >> R_W = 0 -- Transmit is not in progress > >Hmm, I don't remember seeing that, but I just quickly grabbed >a old 18F datasheet and didn't look up your particular PIC, >whatever that was. > >In any case, "transmit in progress" sounds different to me from >"SSPBUF ready to accept another byte", which is how you apparently >are trying to use the bit. Isn't there some xxIF bit in one of >the PIR registers that is specifically meant to tell you when >SSPBUF can take another byte? Sounds to me like the incorrect bit is being checked too - but I also haven't checked the datasheet. BUT what it does sound like is that the I2C hardware is waiting for the slave device to respond with the 9th bit which is the acknowledge bit, and if that doesn't happen, then the second byte won't get transmitted. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist