Pages: [1]   Go Down
Author Topic: RTC DS1307 is resetting to compile time after clicking Reset button  (Read 778 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

   RTC DS1307 is resetting to compile time value after clicking Reset button. please suggest me scheme so it wont get set to compile time again and again.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Remove the line from the sketch that tells it to do that. It probably contains 'DateTime(__DATE__, __TIME__)' or similar.
« Last Edit: October 02, 2012, 06:12:41 am by dxw00d » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to set RTC for once after that  , there should not be any requirement to set RTC. If i remove that line then it gives me compile error.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to set RTC for once after that  , there should not be any requirement to set RTC.

So you run it once with that line in, then upload the sketch without that line.

If i remove that line then it gives me compile error.

But you aren't going to tell us what the error is.

Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 548
Posts: 46029
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
But you aren't going to tell us what the error is.
Or what the test of the code looks like.
Logged

Pages: [1]   Go Up
Jump to: