Lachlanmiller
Member
Hi guys i have a picaxe 40x1, and just bought a ds1307 chip from dontronics today, i put it in my breadboard, inserted the crystal between pins 1 and 2, put in a cr2032 battery on pin 3, gnd on pin 4, vcc on pin 5, and led with a resistor to vcc on pin6, slc on pic 7, sda on pin 8.
i tried the ds1307 sample program (adding the /16's) and was getting values like 152/152/178 etc
then tried the following simple program :
main:
i2cslave %11010000, i2cslow, i2cbyte
readi2c 0, (b0,b1,b2)
sertxd(#b2,":",#b1,":",#b0,13,10)
pause 1000
goto main
but all i get is :
255:255:255
i am using the 28x/40x proto board. with all the jumpers in the default positions.
Thanks
Lachlan
i tried the ds1307 sample program (adding the /16's) and was getting values like 152/152/178 etc
then tried the following simple program :
main:
i2cslave %11010000, i2cslow, i2cbyte
readi2c 0, (b0,b1,b2)
sertxd(#b2,":",#b1,":",#b0,13,10)
pause 1000
goto main
but all i get is :
255:255:255
i am using the 28x/40x proto board. with all the jumpers in the default positions.
Thanks
Lachlan