Discussion in "AVR Discussion Forum" started by    MATHIVANAN    Nov 1, 2007.
Tue Nov 06 2007, 02:44 pm
#11
yea i know I2C. the above program is working very fine and also i am able to set the time also.DS1307 requires
1. start
2.writing the address read (DO)or Write(D1)
3.Read ACK
4.Send ACk
5.Send not ACK
6. STOP
but configuring the port is not same like 8051
because in 8051 Seperately we can do program
but here the data direction may change whole ports

Tue Nov 06 2007, 02:49 pm
#12
I am not able to understand your program actually...
As you said you are able to set time.. how you know that time is getting set? and moreover if I2C is working... what is the problem then.. i am kind of confused :-s
Wed Nov 07 2007, 06:00 am
#13
i am using modbus protocol and also i will set the time from system . the same way i get the time from RTC through USART of ATMEGA8515. ...
Wed Nov 07 2007, 01:06 pm
#14
you need to translate the data sent via serial terminal...
like if you are reading as..
"12:44 am"
then you need to code the way that you break up this data and store the values in respective variables and then store it in the RTC as you are doing already...
Sat Nov 10 2007, 08:20 am
#15
ok.thanks.but we are connecting our device to PLC DCS, due to that we are using modbus protocol

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

BrettTibre
Fri May 17 2024, 06:14 pm
Gordonfax
Fri May 17 2024, 10:28 am
Davidspils
Fri May 17 2024, 10:19 am
Patricknoind
Fri May 17 2024, 09:53 am
JeremyCycle
Fri May 17 2024, 09:46 am
FrabSeby
Thu May 16 2024, 07:31 pm
PeterGem
Thu May 16 2024, 06:27 am
Timothywalay
Thu May 16 2024, 04:40 am