Sorry that was my typo earlier; I have now corrected that.Didn't work. I've been using the input/output table and it states that C.4 is SDA and C.3 is SCL however using these doesn't seem to work.
Use something like IrfanView to resize\resample them to make them smaller.It says that the photo's I'm trying to upload to show you are too large so I'm unable to let you see in any other way than externally.
If you're using windows, then open your pictures in Paint and scale them down (Home Tab>Resize) eg 70% and save them to a new file. It's too easy - you don't need paintshop.It says that the photo's I'm trying to upload to show you are too large so I'm unable to let you see in any other way than externally.
Agreed, and the connection is to the 40-pin socket adjacent to the chip. It should, as described earlier, be to the shorter pin socket to its left. It isn't clear if the right wire is in the leg 15 (27) hole either.I haven't got an AXE091 to check, but your green wire at the left of the picture in post 7 looks to be in the 13th hole.
#Picaxe 28X2
#No_Data
#Terminal 9600
Pause 2000
SerTxd( "DS1307 Test", CR, LF )
Pause 1000
SerTxd("READY ")
HI2cSetup I2cMaster, $D0, I2cSlow, I2cByte
SerTxd("SETUP ")
HI2Cout $0,(0,0,0,0,0,0,0,$10)
SerTxd("WRITE")
SerTxd(CR,LF)
b8 = -1
do
Pause 100
HI2cIn $0,(b0,b1,b2,b3,b4,b5,b6,b7 )
If b0 <> b8 Then
b8 = b0 : Gosub ShowHex
b8 = b1 : Gosub ShowHex
b8 = b2 : Gosub ShowHex
b8 = b3 : Gosub ShowHex
b8 = b4 : Gosub ShowHex
b8 = b5 : Gosub ShowHex
b8 = b6 : Gosub ShowHex
b8 = b7 : Gosub ShowHex
SerTxd( CR,LF)
b8 = b0
End If
loop
ShowHex:
b9 = b8 / $10 + "0"
If b9 > "9" Then : b9 = b9+7 : End If
SerTxd( b9 )
b9 = b8 & $0F + "0"
If b9 > "9" Then : b9 = b9+7 : End If
SerTxd( b9, " " )
Return
DS1307 Test
READY SETUP WRITE
00 00 00 00 00 00 00 10
01 00 00 00 00 00 00 10
02 00 00 00 00 00 00 10
03 00 00 00 00 00 00 10
[i]etc[/i]
That shows that the DS1307 is notionally working, I2C writes and reads do work. If the " If b0 <> b8 Then" command and associated "End If" are removed, the "Pause 100" increased to "Pause 1000", I would predict it to then repeatedly show "00 00 00 00 00 00 00 10" data. It would be worth testing that."DS1307 Test
READY SETUP WRITE
00 00 00 00 00 00 00 10"
I don't think anyone else can either.Can't believe it's so difficult to get a flippin clock module working.
That does seem extremely odd.I swapped AXE boards with a friend to see if the watch crystal on his worked on mine. It did not. Something is still messing with me.
There really is nothing to it. Forget any OLED display to start with. On an AXE091 board all that needs to be done is to connect two wires from the PICAXE socket to the I2C header socket and run the code in post #21.Hippy or someone is it possible to write a tutorial with the main tips to look out for when building a circuit with the 18M2 and the DS1307 with OLED screen.