Hello Stephen, > Has anyone had any difficulties using I2C with the CCS C compiler? I've > been trying to get communications working but the system doesn't seem to > be very stable. Sometimes I'll get an address byte and then data and > sometimes I'll just get the address. > > I'm looking for something weird in the compiler itself. If other's have > had no problem getting it to work with CCS compiler than there must be > something i'm doing wrong. I've used CCS I2C routines both hardware and bit-banged, master and slave. Everything worked fine, always. Some months ago I've posted a msg on this list saying that I couldn't made a serial EEPROM work at 400kHz, but found the error this week. I have both SCL and SDA lines set as output (Me dumb, me dumb!) on the PIC. Setting both as input solved the problem. Best regards, Brusque ----------------------------------------------------------------- Edson Brusque C.I.Tronics Lighting Designers Ltda Researcher and Developer Blumenau - SC - Brazil Say NO to HTML mail www.citronics.com.br ----------------------------------------------------------------- -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body