Pages: [1]   Go Down
Author Topic: DS1216 clock interface with arduino  (Read 455 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear All,

I have some DS1216 Maxim clocks
(http://datasheets.maximintegrated.com/en/ds/DS1216-DS1216H.pdf)
and would like to interface them with the arduino.
Unfrotunately I have not find any usable information on the Web.

Does any of you can help for information of the branching and software ?

Thanks

Jacques
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8842
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like you send a 64-bit pattern to get access to the clock.

Pull OE low and briefly pull CE low to reset the pattern recognition pointer.

Pull A2 low (RTC Write).  For each bit, set A0 to the bit value, pull WE low, and pull CE low briefly.

After all 64 bits of the pattern are written, read the 64 bits of clock registers:

Pull A2 high (RTC Read).  For each bit, pull OE low, and pull CE low briefly.  Data bit appears on DQ0.

To set the clock, do the pattern recognition cycle, then write the 64 bits of clock registers:

Pull A2 low (RTC Write).  For each bit, set A0 to the bit value, pull WE low, and pull CE low briefly.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot for this information,

but I am afraid that for my level of understanding, you will have to be more specific.
First thing :
What will be the wiring with the arduino ?

Do I only need the pins

RST  -> HIGH through 10kohm + 0.1 uF to Vcc
A2    -> Arduino PIN
A0    -> Arduino PIN
DQ0  -> Arduino PIN
GND  -> Arduino GND
Vcc   -> Arduino Vcc 5V
VccD -> Arduino Vcc 5V
WE   -> Arduino PIN
OE    -> Arduino PIN
CE    -> Arduino PIN

?

Do some of the pins need to be on specific arduino pins ?

Thanks

Jacques
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8842
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You probably only need one Vcc connection and you may not need RST but otherwise I think you have everything correct.

> Do some of the pins need to be on specific arduino pins ?

No.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: