1302 vs 1307?
cavelamb
Posts: 720
I'm collecting parts for my Proto board and wanted to ask those who know if there is a preference for
the real time clock chip? Parralax stocks the 1302, but most examples I've seen are for the 1307.
Are they code compatible?
Any serious differences?
Thanks
Richard
the real time clock chip? Parralax stocks the 1302, but most examples I've seen are for the 1307.
Are they code compatible?
Any serious differences?
Thanks
Richard
Comments
http://www.8051projects.net/forum-t8997.html
You can Google 'DS1302 versus DS1307' for more discussions.
Personally, I would use the 1-wire I-Button RTO unit as it has an internal battery that is supposed to provide 10 years service and uses only one pin for i/o.
Both the 1307 & 1337 are 3.3v compatible (i2c is open drain). The 1307 requires 5v vcc, but that's no problem with the Protoboard.
As for code compatibility - I can't speak for 1302-1307, but for the 1338 I took Kye's 1307 driver and modified it.
Obivoulsy the I2C commands are the same, but the RAM addresses and control registers are different.
The 1302 is not code compatible with the 1307. I recently took Kye's 1307 driver and modified it for 1302. As I finally finished by SD card adapter over Thanksgiving. I'm using the 1302 that is built into Parallax's Propeller Professional Development Board.
Basically I took code from one of the OBEX 1302 objects and adopted it to Kye's 1307 interface.
I need to go back and add support for burst mode. I dropped it just to get the code to work...
Jay
One of my intended projects is a "ships bell" function.
So a custom board will be used in the end.
Not needing the 5v supply might be a plus.
I'll dig into the 1338 as well.
Thanks for your consideration.
Bruce Prager
Here's my modified code "as is"
I modified it to the point of getting to work, I haven't flushed it out enough to warrent posting it to the OBEX...
Jay