Thanks hippy but that's waaaaay over my head
I was thinking more along the lines of something simple like this
' Setting the Time / Date
' To set the correct time after the circuit is first powered up, the current time must be
' written to the registers. The following example PICAXE program will setup the time
' to 11:59:00 on Thursday 25/12/03.
' This is carried out by loading the registers in order from address 00 upwards i.e.
' seconds then minutes then hours etc.
i2cslave %11010000, i2cslow, i2cbyte
writei2c 0, ($00, $59, $11, $03, $25, $12, $03, $10)
' Reading the Time / Date
' To read the current time you can use the following program to load variables within
' the PICAXE with the various register values from the DS1307. Calculations can then
' be carried out to see, for instance, if a particular alarm point has been reached. This
' example program acts as an alarm clock, checking the time every 30 seconds. If the
' time is exactly 07:00 then a buzzer, connected to output 7, will sound for 20
' seconds.
i2cslave %11010000, i2cslow, i2cbyte ' set slave parameter
do
pause 3000 ' wait 30 sec (set to 30000 in use, 3000 for simulation)
readi2c 0, (b0, b1, b2) ' read sec, min, hour
sertxd (#b0, #b1, #b2 , cr,lf)
' if b2 <> $07 then loop ' if hour not 7 loop
'if b1 <> $00 then loop ' if min not 00 loop
'high 7 ' switch on buzzer
'pause 2000 ' wait 20 sec 20000
'low 7 ' switch off buzzer
'pause 6000 ' wait 60 sec to prevent repeat
loop ' loop
but when I tried it all I get on the terminal screen is the attached