going mad with the clock

yurif74

New Member
Hi i've an axe091 development board fitted with a picaxe 28x2 and a ds1307 clock

tried with this code nothing happen

Code:
do
hi2csetup i2cmaster, %11010000, i2cslow_8, i2cbyte
hi2cin 0,(b0,b1,b2,b3,b4,b5,b6)
debug b0
loop
i tried with i2cslow and i2cslow_8 but no changes
what i'm doing wrong?

i tried also with standard i2cslave code but again... nothing

do i have to set the direction of the c.3 and c.4 ports?
 

benryves

Senior Member
I'm not sure what you're expecting to see (and what you are seeing instead), but the DS1307 will not generally return sensible results until you have initialised it by setting the time and enabling the oscillator (setting CH - bit 7 of address 00h - to 0).
 

MPep

Senior Member
Please your code as you have it now. This way others will have a better chance at being able to help you.
 
Top