For 12-bit core PICmicro MCUs only, the I2C clock and data pins are fixed at compile time by DEFINEs. They still must be specified in the I2CREAD statements, though this information is ignored by the compiler.
DEFINE I2C_SCL PORTA,1 'For 12-bit core only
DEFINE I2C_SDA PORTA,0 'For 12-bit core only
The upper 7 bits of the Control byte contain the control code along with chip select or additional address information, depending on the particular device. The low order bit is an internal flag indicating whether it is a read or write command and should be kept clear.
Bookmarks