How does one use the DS1302 clock?

erdc

Member
I thought I ordered the I2C clock (DS1307) from the Canadian PICAXE distributor but received the DS1302 I/O instead (that’s all they sell). I see by some post that some have used this chip, but can not understand just how one connects to it.

The data sheet shows not only do I connect to the I/O pin, but must use their SCLK and CE pins also. Can anyone tell me how to wire it up, and what line code would I use to just get the current time?


I have usefully have communicated with other Picaxe and LCD using both I2C and serial commands, but this one stumps me.
 
Top