[time-nuts] Maxim DS3232 and I2C

Tom Van Baak tvb at LeapSecond.com
Sat Feb 15 11:23:52 EST 2014


Read SS MM HH SS and if the first and second readings of SS are within the same minute you know you have a good reading.
/tvb

----- Original Message ----- 
From: "d0ct0r" <time at patoka.org>
To: <time-nuts at febo.com>
Sent: Friday, February 14, 2014 2:20 PM
Subject: [time-nuts] Maxim DS3232 and I2C


>I would like to ask an advise for following:
> 
> Lets say I have a DS3232 RTC connected by I2C to some MCU. The maximum 
> allowed I2C bus speed is 400KHZ. And I need to read time (HH:MM:SS) from 
> it. It will be THREE SEPARATE REQUESTS for each part (hours, minutes and 
> seconds). My concern: what if I start to read time at the edge, when it 
> will change itself inside of DS3232 ? Potentially, I could get weird 
> results, like hours and minutes stay the same, but seconds has changed. 
> Or even worth - hours is the same, but seconds and minutes has changed. 
> Is there any method to read all three values (HH:MM:SS) by one single 
> requests ? Or is there any other workaround for this issue ? Or it is 
> not issue at all ? Thanks !
> 
> 
> -- 
> WBW,
> 
> V.P.
> _______________________________________________
> time-nuts mailing list -- time-nuts at febo.com
> To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> and follow the instructions there.
>



More information about the time-nuts mailing list