Hi,
I've never actually done anything with I2C so I'm no expert - by far.
But, in case there's some confusion, the I2READ / I2CWRITE commands are both bit-banged routines meaning they do not use the I2C peripheral (the MSSP-module) built into several PICs. This means that there really are no registers to setup except enabling the pin to work as a digital I/O, ie. make sure any analog functions are turned off on the pins in question. It also means that you can use "any" pins for the I2C-lines, not only those designated SDA and SDL in the datasheet - those are for the MSSP module which I2CREAD/I2CWRITE doesn't use.
/Henrik.




Bookmarks