Thanks Steve and Al for your ideas. I guess I must have been having a senior moment....I should have thought of the idea of multiplexing the ADCON settings since I am not using the I2C bus at the same time as I am measuring temperature on AN11. I implemented this and it works fine. Thanks for suggestion!
Al, your suggestion to use any available two pins for the I2C communication makes me ask whether it is possible by just substituting any pins for the normal RB0 and RB1 pins in the I2CWRITE statements as follows:
' Clear RTC STATUS and set CONTROL registers for next RTC interrupt
I2CWRITE PortB.5, PortB.6, RTCdevice, StatusReg,[$00]
PAUSE 10
I2CWRITE PortB.5, PortB.6, RTCdevice, ContReg,[%00000101]
Would like to understand the syntax that would have to be used in I2CWRITE statement just to subtitute any two available pins for the SDA, SCL pins?????
Bookmarks