Hi,
To my Teensy 3.6 I connected a DS3231 RTC (breakout board with backup battery) via I2C.
With a provided script I read out the time...which was uninitialized and a higher level of
logical rubbish (probably the result of some random data).
I set the time and read it out again...works! The time was correct and counts forward.
Since the board is equipped with a backup battery (which I measured fine and healthy) I disconnected the
power from my teensy and waited a while, connected again and read the time...
...
Guess what?
Any time I reconnected the Teensy to read the time from the DS3231 it says 15:04 and ticks forward.
From my technical understanding of that RTC it can either have a valid time (power provided by the backup battery)
or nonsense due to powerfailure (empty or no backup battery at all).
I have no idea, what the reason of this "do you remember the time when we last met"-behaviour is.
I know, that this is not exactly (read: by no means) a Teensy problem...but if someone has any idea how
I can fix that to get an ordinary RTC telling my the ordinary time...I would be very happy !
Cheers!
Have a good weekend!
Meino
To my Teensy 3.6 I connected a DS3231 RTC (breakout board with backup battery) via I2C.
With a provided script I read out the time...which was uninitialized and a higher level of
logical rubbish (probably the result of some random data).
I set the time and read it out again...works! The time was correct and counts forward.
Since the board is equipped with a backup battery (which I measured fine and healthy) I disconnected the
power from my teensy and waited a while, connected again and read the time...
...
Guess what?
Any time I reconnected the Teensy to read the time from the DS3231 it says 15:04 and ticks forward.
From my technical understanding of that RTC it can either have a valid time (power provided by the backup battery)
or nonsense due to powerfailure (empty or no backup battery at all).
I have no idea, what the reason of this "do you remember the time when we last met"-behaviour is.
I know, that this is not exactly (read: by no means) a Teensy problem...but if someone has any idea how
I can fix that to get an ordinary RTC telling my the ordinary time...I would be very happy !
Cheers!
Have a good weekend!
Meino