please..... i have read the data sheet over and over again, ive read various places about I2C and i have studied the sample codes that i have been pointed to and still not a clue
TRISB = %11111111
second VAR BYTE
minute VAR BYTE
hour VAR BYTE
day VAR BYTE
date VAR BYTE
month VAR BYTE
year VAR BYTE
ITCDEVICE VAR BYTE
ITCADDRESS VAR WORD
SDA VAR PORTC.4
SCL VAR PORTC.3
ITCDEVICE = $D0
ITCADDRESS = $00
second = 0
minute = 0
hour = 12
day = 2
date = 25
year = 5
I2CWrite SDA, SCL, ITCDEVICE, ITCADDRESS, [second, minute, hour, day, date, month, year]
Pause 500
I2CRead SDA, SCL, ITCDEVICE, ITCADDRESS, [second, minute, hour, day, date, month, year]
at this point i dend the variables to my LCD and what comes up on the screen is "16"
thanks
Snood
edit: it's been suggested to me that as i'm recieving "16" or a single "f" that maybe something is holding the data line up? still clueless other than that
Bookmarks