| Author |
Message |
vikivignesh
Joined: 12 Mar 2009 Posts: 1
|
12 Mar 2009 6:18 rtc interfacing with 8051 |
|
|
|
|
| I AM WORKING WITH DS1307 TO GENERATE AN ALARM .I JUST WANTED TO WRITE THE DATA TO AND TO READ THE DATA FROM DS1307 .I TRIED TO WRITE THE DATA TO GENERATE A SQUARE WAVE BUT I AM NOT ABLE TO WRITE AND HAVING SAME PROBLEM FOR READING THE DATA
|
|
| Back to top |
|
 |
GetDeviceInfo
Joined: 30 Mar 2009 Posts: 103
|
30 Mar 2009 19:57 rtc interfacing with microcontroller |
|
|
|
|
| Couple of things to consider. First, the DS1307 is I2C, so you must be satisfied that your protocol is compliant. Are you bit banging or using a dedicated function. Secondly, your device has particular needs when using the battery backup terminal. Read the documentation carefully as to how the device write protects itself, and how to exit that condition.
|
|
| Back to top |
|
 |
Google AdSense

|
30 Mar 2009 19:57 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
adithyaa
Joined: 01 Apr 2009 Posts: 3
|
06 Apr 2009 13:57 rtc interfacing |
|
|
|
|
sir,
my project name is smoker's counselor we are using 89C52 micro controller.
it has 3 blocks 1.smoke detector 2.lcd interfacing 3.audio output.
when smoke comes it will detected by the smoke detector and a message like QUIT SMOKING will displayed in the lcd and same will come through audio output.
so here when smoke comes then only lcd is displaying message otherwise it is just neutral now i want the lcd to work for no smoking condition.
so I wanna interfacing DS1307rtc to the 89C52 so that it will display the time and calender when there is no smoke .
actually i don't know how to interface rtc the 89C52 can any one suggest me how to do this. plz provide hardware details
plz give the C code for this .
|
|
| Back to top |
|
 |
GetDeviceInfo
Joined: 30 Mar 2009 Posts: 103
|
06 Apr 2009 18:34 rtc and lcd interfacing through microcontroller |
|
|
|
|
Your DS1307 datasheet will depict a typical circuit layout. If yours sheet does not, check out Maxim's datasheet.
Goe to Atmel site and search I2C. You will find documentation and code chunks that you can cut/paste. They may or may not be for your specific device, but some code porting will suffice.
|
|
| Back to top |
|
 |