Page 1 of 1

Flowcode V4 Problem DS1307 ( I2C )

Posted: Tue Mar 28, 2017 9:29 pm
by Dan55
I do not speak English very well saddened then I have to make a personal project but I have a problem with my rtc. which is the DS1307 in I2C I do not arrive has to post(show) the seconds but the minutes and hours of posters as if secondes était block par les minutes merci d'avance pour les réponses je vous fait joindre mon FLOWCODE

Re: Flowcode V4 Problem DS1307 ( I2C )

Posted: Wed Mar 29, 2017 12:16 pm
by medelec35
Hi Dan55,
For your calculations you can use:

Code: Select all

Second = (Second >> 4) * 10 + (Second & 15)
Minut = (Minut >> 4) * 10 + (Minut & 15) 
Which converts BCD to Decimal.
Same format for when you add hours

Martin