I2C compiles OK for 16F18323; errors with 16F18326
I have I2C code that compiles without errors when I select a 16F18323 but generates error messages when I select an 16F18325 or 16F18326. The error messages say I have undeclared identifiers 'SEN', 'PEN', 'RCEN', 'ACKDT', 'ACKEN'. This makes sense since the 325 and 326 have dual I2C modules. For instance, there is a SEN bit in both SSP1CON2 and SSP2CON2, so SEN is not a unique identifier. So, my question is; is there a unique identifier for the SEN bit in SSP1CON2 that I can use to set the bit as in the code below for the 323 part?
SEN = 1; //Initiate start condition