HI there,
Here's the basic code i use, which seems to work, except for the odd figures i mentioned initially.
Code:
I2CWrite PORTC.2,PORTC.3,$D0,$00,[0, 15, 15, 5, 1, 10, 9, 10]
'WRITE time and date e.g. this dsets clock to 15:15:00 (3:15pm) on
'Thur (5), 1st (1), October (10), 2009 (9), with control set to "10" for
'a 1Hz pulseout on pin7.
'and later i send this to serial port....
SerOut TX,T9600,["Logged at",#RTCHour,":",#RTCMin,":",#RTCSec,",13,10]
Obviously later, i remmed out the WRITE line, so the pic doesnt keep restarting at the same time/date.
Happy to be pointed out any wrong byte(s) i'm using or missing
Marty.
Bookmarks