Address should be word or byte variable, not constant.
EDIT:Code:MemAdr var word MemAdr =0 ' Write to external memory I2CWRITE SDA,SCL,$A0,MemAdr ,[RTC_Sec,RTC_Min,RTC_Hou] PAUSE 10 'Read from external memory I2CREAD SDA,SCL,$A0,MemAdr ,[RTC_Sec,RTC_Min,RTC_Hou]
Constant works for clock, as PBP send minimum 8 bits, but it wont work for EEPROM as it expecting 16bits.
I mention that in another topic.
Bookmarks