> Have you considered just throwing away the driver and manipulating the i2= c peripheral directly? > > The datasheet typically has enough data for one with modest coding skills > to write a serviceable chunk of code. I've learned over the years that > often for comms and i/o it is better to just ignore the drivers and go af= ter the device directly, > as the driver often makes assumptions which are not relevant to your spe= cific situation. Check out AN734 (Slave mode) and AN735 (Master mode) application notes from= Microchip. I used these successfully with PIC16F876 devices to make an I2C= system. They are in assembly, and IIRC the AN735 code has a bug, but I hav= e the details if you wish to use it. The code as listed is downloadable wit= h the app note. I successfully modified them to use interrupts, using an early version of O= lins template system, and could find the code for you if needed. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .