Is DS1307 and DS1302 the same on programming?
Discussion in "General help Guidance and Discussion" started by kenleung Apr 25, 2008.
Fri Apr 25 2008, 02:57 pm
Ive just downloaded the digi-clock project from this valuable site, and just got a question that can i use DS1302 to replace the DS1307 without having to modify the original program? thx : )
[ Edited Fri Apr 25 2008, 02:58 pm ]
Fri Apr 25 2008, 04:50 pm
Sorry you cannot directly replace DS1307 with DS1302. Reason is, Interface used by DS1302 is 3 wire interface where as DS1307 use two wire interface. So protocols are totally different.
Fri Apr 25 2008, 07:34 pm
hi Ajay, I am a learner of assembly language, can u tell me how i should modify the program for changing the RTC to DS1302 ?many thanks
Fri Apr 25 2008, 08:02 pm
three wire protocol is totally different from two wire.. so whole program need to be rewritten
all you can copy is the the time setting part i think.. coz that can be used as it is.. rest you need to rewrite.
all you can copy is the the time setting part i think.. coz that can be used as it is.. rest you need to rewrite.
Powered by e107 Forum System