Discussion in "Project Doubts" started by    swathi    Jul 31, 2006.
Mon Jul 31 2006, 04:45 AM
#1
i am doing a project on digital clock with alarm using DS1307 interfaced to AT89c51.
i have a doubt in the code.i have downloaded the code from ur project.u have not used the functions related to DS1307 in the code so h to read the data from the DS1307.u have not even used I2C comm bet the 89c51 n DS1307 then h should we comm with the DS.in the prog u r using poling method n we want n intr method near the one second delay,we r unable to understand wat to do there.while debugging ur prog the program is not responding to the up3,up4,up6 functions.

so plz respond to us as early as poss as we have to show this output today to our sir by 4.00pm. (

thank u. :bye
Mon Jul 31 2006, 07:15 AM
#2

have not used the functions related to DS1307 in the code so h to read the data from the DS1307

swathi


everything is there in the code.
i am writing some steps how to read from DS1307
Start
Send slave address with write bit
send the subaddress from where you want to read
start condition again [NOTE:dont send stop before this]
send slave address with read bit
start reading.
So the above steps are applied in the code as..

run1: acall startc
mov a,#0d0h
acall send
mov a,#00h
acall send
mov r6,#3fh
acall startc
mov a,#0d1h
acall send
mov r0,#40h
here: acall recv
djnz r6,here
acall stop

u have not even used I2C comm bet the 89c51 n DS1307

swathi


and without I2C communication it wouldn't possible to make that project.

in the prog u r using poling method

swathi


as its a software I2C, so its difficult to achive intrr method. just think of it.
and regarding those up functions you are talkin about.
its been the database error. please download the file again. i'm sorry for the mistake.
Mon Jul 31 2006, 08:12 AM
#3
check the download section.

Get Social

Information

Powered by e107 Forum System

Conversation

Mon Apr 12 2021, 11:54 AM
Joe N
I have recently launched my own site, and I am looking to provide value for you for free, by giving away 26 professional level blog post templates (worth $297).
Mon Apr 12 2021, 09:24 AM
Aretha
Hey, I think your site might be having browser compatibility issues. When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, very good blog! https://onanadiete.ru/alpha-numeric-reasoning-questions-and-answers-pdf.pdf alpha numeric reasoning questions and answers pdf alpha numeric reasoning questions and answers pdf

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 92, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123