electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

RTC INTERFACING WITH 8051


Post new topic  Reply to topic    EDAboard.com Forum Index -> Embedded Systems and Real-Time OS -> RTC INTERFACING WITH 8051
Author Message
vikivignesh



Joined: 12 Mar 2009
Posts: 1


Post12 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


Post30 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
Google Adsense




Post30 Mar 2009 19:57   

Ads




Back to top
adithyaa



Joined: 01 Apr 2009
Posts: 3


Post06 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


Post06 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
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Embedded Systems and Real-Time OS -> RTC INTERFACING WITH 8051
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
DS1302 RTC interfacing with 8051 (6)
how will RTC (DS1307) Interfacing with 8051 source code in c (4)
Interfacing 8051 with RTC and DAC to get a user defined wave (1)
interfacing rtc with 89s8252 (1)
interfacing Attiny2313 with RTC 1307 (1)
RTC-DS1307 with 8051 (5)
Interfacing RTC with 8952 code problem (9)
RTC DS1307 Interfacing with MCU 89S52 (45)
how to interface rtc with 8051 (6)
need some rtc based on 8051 with alarms code (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS