Difference between DS1307 and DS1302?
jcpole
Posts: 92
Hi all...
Aside from I2C support, are there any serious differences between the DS1307 RTC that comes installed on the PDB and the DS1302 that people keep talking about? I'm working on a BS2px application where the correct time will be pulled down from NTP (Network Time Protocol) chimers through a PINK, and I need to know if one of the RTC chips is better than the other. Since the eventual device is being designed from the ground up, I have the luxury of choosing the better of the two RTCs, assuming that one actually is better than the other.
Just out of curiosity, will the same commands control both devices? Ignoring I/O pin discrepancies for a moment, will sample code written for the DS1302 also run on the DS1307?
Thanks...
Jamie
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--
Jamie C. Pole
Principal Consultant
J.C. Pole & Associates, Inc.
http://www.jcpa.com/
Aside from I2C support, are there any serious differences between the DS1307 RTC that comes installed on the PDB and the DS1302 that people keep talking about? I'm working on a BS2px application where the correct time will be pulled down from NTP (Network Time Protocol) chimers through a PINK, and I need to know if one of the RTC chips is better than the other. Since the eventual device is being designed from the ground up, I have the luxury of choosing the better of the two RTCs, assuming that one actually is better than the other.
Just out of curiosity, will the same commands control both devices? Ignoring I/O pin discrepancies for a moment, will sample code written for the DS1302 also run on the DS1307?
Thanks...
Jamie
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--
Jamie C. Pole
Principal Consultant
J.C. Pole & Associates, Inc.
http://www.jcpa.com/
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
·· Technically no, the DS1302 and the DS1307 do not use the same commands.· The DS1302 has an SPI interface and the DS1307 has an I2C interface.· On a BS2px using either chip will be no problem.· However if you were using a BS2 without I2C support more code would be involved.· Each chip will have registers in certain locations, etc.· As Jon said that's in the datasheet.· I personally prefer the DS1302.· Many prefer the DS1307.· It's really a matter of personal taste and if you require features one has that the other does not.· I don't believe either one is more accurate than the other.· Dallas/Maxim does have more accurate RTC chips, but between these it is pretty even.· If you need DS1307 code Jon has written some.· If you need DS1302 code there is some in a few threads in the Projects Forum.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
The BasicStamp groups them all under Shift-in and Shift-out, but there are proprietary details which are mainly for the programmer to sort out. Speed is a factor in some cases.
The wiring pretty much looks the same.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com