George Sephton
Senior Member
I have connected the DS1307 to my PICAXE 28X1 as on the i2c manual but when it starts the only thing that shows are Square Blocks and colons [][]:[][]:[][]
Here's my code
ignoring the symbols.
The only difference between the i2c manual's circuit and mine is the resistance used, ive used 1.2K instead of 4.7K and a 330R instead of 470R. Could that be the problem?
EDIT: Just used 4 1.2K resistors in series, still no luck.
Here's my code
Code:
....
i2cslave %11010000,i2cslow,i2cbyte
PowerOnReset:
writei2c 0,($00,$37,$22)
GOSUB InitialiseLcd
Goto Main
END
Main:
debug
readi2c 0,(b0,b1,b2)
outbyte = $80
gosub SendCmdByte
For counter = 0 to 1
lookup counter, (b2), outbyte
gosub SendDataByte
next counter
outbyte = ":"
gosub SendDataByte
For counter = 0 to 1
lookup counter, (b1), outbyte
gosub SendDataByte
next counter
outbyte = ":"
gosub SendDataByte
For counter = 0 to 1
lookup counter, (b0), outbyte
gosub SendDataByte
next counter
goto Main
....
The only difference between the i2c manual's circuit and mine is the resistance used, ive used 1.2K instead of 4.7K and a 330R instead of 470R. Could that be the problem?
EDIT: Just used 4 1.2K resistors in series, still no luck.
Last edited: