problem with the project
Discussion in "Project Doubts" started by swathi Jul 31, 2006.
Mon Jul 31 2006, 10:15 am
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
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, 12:45 pm
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.
Powered by e107 Forum System