DS1302 on i2c

Started by ciarez, June 26, 2013, 04:42:41 PM

Previous topic - Next topic

ciarez

Hi.
I'm trying to run an RTC on the i2c bus.
I connected my ds1302 as follow:
EXT -> DS1302
1 -> 1
2 -> 4
5 -> 7
6 -> 6
DS1302 reset is pulled up to +3V3 by a 10K resistor.

And now? I do not understand what is the address for reading and writing even from the datasheet.

This is the output of i2cdetect:
[root@alarm ~]# i2cdetect -r -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- 04 05 06 07 08 -- -- 0b 0c 0d 0e 0f
10: -- -- 12 13 14 15 16 -- -- 19 1a 1b 1c 1d -- --
20: 20 21 22 23 24 -- -- 27 28 29 2a 2b -- -- 2e 2f
30: 30 31 32 -- -- 35 36 37 38 39 -- -- 3c 3d 3e 3f
40: 40 -- -- 43 44 45 46 47 -- -- 4a 4b 4c 4d 4e --
50: -- 51 52 53 54 55 -- -- 58 59 5a 5b 5c -- -- 5f
60: 60 61 62 63 -- -- 66 67 68 69 6a -- -- 6d 6e 6f
70: 70 71 -- -- 74 75 76 77                         
[root@alarm ~]#

Can someone help me?
I have a arch linux with 3.7.1 kernel.