I just wanted to let you know that there is pre-written code for this chip. Go here:
http://www.melabs.com/resources/samp...ted/MN1307.txt
This might help.
Travin
I just wanted to let you know that there is pre-written code for this chip. Go here:
http://www.melabs.com/resources/samp...ted/MN1307.txt
This might help.
Travin
__________________________________________________ ____________Originally Posted by Travin77
I have already found it but i really do not know how to make it work for PIC16F876A! things might be different a bit...
Many people are telling me that i just to need to write 2 to 3 lines only to fix the actual time, after defining the ports used. And then, i'll be able to read from DS1307. so when i saw that program.... i was chocked because of so many many lines....i don't want the user to do anything with time, i do not want to put buttons.. i just want this IC to have internal real time clock working fine so that whenever i want i can take the difference between 2 time intervals in order to get seconds and then, / 3600 to ge tthe hours...
As you see, i just want an extremely simple thing but i am not able to do it...
this is why, i'll keep on asking if someone can help me to write those 7 to 8 lines as i think..
did you look at this thread
http://www.picbasic.co.uk/forum/showthread.php?t=190
Bookmarks