Discussion in "Project Doubts" started by    swathi    Jul 31, 2006.
Mon Jul 31 2006, 10:15 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, 12:45 pm
#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, 01:42 pm
#3
check the download section.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Oariorrca
Wed Oct 16 2024, 01:14 am
Oariorvln
Wed Oct 16 2024, 12:59 am
Jamesrat
Wed Oct 16 2024, 12:56 am
Cazrwam
Tue Oct 15 2024, 04:50 pm
Cazrlby
Tue Oct 15 2024, 04:34 pm
Ameliaror
Tue Oct 15 2024, 03:02 pm
GlendaInvaf
Tue Oct 15 2024, 02:30 pm
Georgepucky
Tue Oct 15 2024, 12:11 am