Search Engine www.edaboard.com

ds1307 Interfacing With 8051

Add Question

20 Threads found on edaboard.com: ds1307 Interfacing With 8051
Hello friends, I am interfacing ds1307 with 8051, i have written code in KEIL overall working fine :-D except reading date & time :sad: please guide me finding the bug. I am able to receive only 1 byte of data. why? I am attaching my keil project with proteus simulation. Please help
Hello All, I'm interfacing ds1307 RTC with 8051 using proteus simulator , I have written the code and the seconds part is working fine but the hour and minutes are showing as 0 and is not getting updated . I believe there's some timing issue or the ds1307 register is not getting updated (...)
hai friends, I am new to embedded field. I have working circuit with 8051-micro and ds1307 rtc with time set function.But it was not working properly.when starting rtc it give correct time.Then rtc time will decreases than actual time.crystal for microcontroller -12Mhz and for-ds1307 is (...)
hello, wich kind of RTC DS1302 SPi ds1307 I2C other ? LCD 4bits 2x16 , 4x20 ? direct or trough I2C ? so with 2 wires SDA,SCL you can drive LCD,EEPROM,RTC
how do i write on a i2c bus as well as read data from a I2C. i want to read and write data from the ds1307 ic. and i want to know how do i code it in c to interface it.
Hi friends, Am posting the code this code am getting a problem that clock runs quickly without going accordingly with our real time clock please help me out please..... Thanks in advance #include sbit set=P1^2; sbit mov=P1^3; sbit inc=P1^4; sbit dec=P3^7; sbit ent=P3^6; void all_disp(); void time_set(); #define
give me a code to turn on led when time is 6pm and to turn it off when time is 6am i edited the code as your request // interfacing ds1307 with AT89C51RD2 #include void _nop_(void); #define delay_us _nop_(); //generates 1 microsecond #define LCD P1 sbit R
i had interfaced the ds1307 for the EEPROM memory with 89s52, im giving the direct value to the specified memory address and its no problem while writing, same way while reading also no problem, but when im passing an argument to the specified memory address, and then i dono whether it write the same data or not and im reading the value from
Hi friends, I am doing a Digital Clock using RTC ds1307 and 89C4051 micro controller. Time is displayed on LCD and different alarms can be set through 3 switches. I have written the following code for updating RTC registers first time. Only minutes code is shown //Minutes min++; if((min>15)&&(min<20)) { onmin=min+6; } else i
hi, i have build my own program (interfacing 8051 with ds1307) but i want to do this steps: lets say that the day now is 21/5/2011 so i want from ds1307 to get the micro controller a pulse output from rtc after 3 days i.e: at day 24 i want to get pulse from rtc how can i do it using square output pin in (...)
Check out this application note: "interfacing the ds1307 with an 8051-Compatible Microcontroller" interfacing the ds1307 with an 8051-Compatible Microcontroller - Maxim IanP :wink:
hi people, i really need rtc c code to interface ds1307 with freescale 20-bit microcontroller mc9s08sh8.the code can be analogous to interfacing with normal 8051 controller..i'll make the necesarry changes..pls reply soon..its urgent.. Thanking u in advance. Pratik Shah
Hello Ram, Hav a luk at the attachment. This code is written for 89c51(interfacing 89c51 with RTC ds1307 using I2C communication) Hope this will help yu. Feel free to contact me if yu have any queries regarding this. Best Regards, Viswanath.
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
This will be a good starting point: 8051 Projects Digital clock using ds1307 Source Code in C Rgds, IanP
The following application note from MAXIM explains in details how to connect the ds1307 to 8051-derivatve including an example of asm code .. "interfacing the ds1307 with an 8051-Compatible Microcontroller" Regards, IanP
For ds1307, the exact code of 24C0x (the I2C eeprom) works perfectly. Both are I2C devices.
Please also check this: ds1307 RTC and p89v51rd2 with C.
I am sure, here is interfacing RTC (ds1307) with 8051 Link:
I use ds1307 as RTC intercing with 8051.