Flowcode V4 Problem DS1307 ( I2C )
Moderator: Benj
Flowcode V4 Problem DS1307 ( I2C )
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
- Attachments
-
- Lectur_Affich.fcf
- (14.5 KiB) Downloaded 585 times
Last edited by EtsDriver on Wed Mar 29, 2017 5:12 am, edited 2 times in total.
Reason: Moved topic to correct area. Welcome to forums. For posting on v4 area please take a look at this http://www.matrixtsl.com/mmforums/viewtopic.php?f=29&t=8762 and end of support note http://www.matrixtsl.com/mmforums/viewtopic.php?f=29&t=14301
Reason: Moved topic to correct area. Welcome to forums. For posting on v4 area please take a look at this http://www.matrixtsl.com/mmforums/viewtopic.php?f=29&t=8762 and end of support note http://www.matrixtsl.com/mmforums/viewtopic.php?f=29&t=14301
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Flowcode V4 Problem DS1307 ( I2C )
Hi Dan55,
For your calculations you can use:
Which converts BCD to Decimal.
Same format for when you add hours
Martin
For your calculations you can use:
Code: Select all
Second = (Second >> 4) * 10 + (Second & 15)
Minut = (Minut >> 4) * 10 + (Minut & 15)
Same format for when you add hours
Martin
Martin