rtc ds1307 interfacing with 89s52

Status
Not open for further replies.

siprax345

New Member
i am using ds 1307 serial rtc..i want c code for communication btween microcontroller 89s52 and rtc..and show it on lcd ...can anybody help???
 
siprax345 said:
i am using ds 1307 serial rtc..i want c code for communication btween microcontroller 89s52 and rtc..and show it on lcd ...can anybody help???
split ur problem into 3 parts , display a string in lcd , write driver for rtc , and other time setting routines.
u need to know about i2c protocol for communicating with 1307 , search the net . i have done this , but the code is not with me right now. try it and feel free to ask.
 
Check this application note from Maxim **broken link removed** . The sample code is in assembly but you can convert it in C in no time or you can even use in-line assembly feature of your C compiler and directly include this code into your C project.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…