Page 1 of 1
problem in accessing registers of DS1307
Posted: Mon Sep 08, 2014 6:15 pm
by waleedabbasi12
Is there any way i can access registers of rtc DS1307 in flowcode macros.
Re: problem in accessing registers of DS1307
Posted: Mon Sep 08, 2014 6:24 pm
by JohnCrow
Hi
The DS1307 uses the I2C bus
This is only available in the Pro version of Flowcode.
I have posted some example programs in the past for FC5 using this. Do a search on the forums.
Now the easiest way to use it is with the DS1307 component posted by Jordy.
http://www.matrixtsl.com/mmforums/viewt ... 307#p51810
Again, it will only work in the Pro Version as it still uses the I2C bus in within the component.
Re: problem in accessing registers of DS1307
Posted: Mon Sep 08, 2014 6:55 pm
by waleedabbasi12
Thank you John. I have read that post by Jordy, its quite helpful. But there is still one problem. I dont understand how to read time from DS1307. It always gives the time which i write on it. I mean the clock doesnot tick.
Re: problem in accessing registers of DS1307
Posted: Mon Sep 08, 2014 7:10 pm
by JohnCrow
Have you got it connected correctly.
Have a look at the circuit in my tutorial post for an example.
http://www.matrixtsl.com/mmforums/viewt ... 307#p25768
If you want to post your flowchart on here we can have a look see if we can help
Re: problem in accessing registers of DS1307
Posted: Mon Sep 08, 2014 7:36 pm
by waleedabbasi12
Thank you. Its done.
Re: problem in accessing registers of DS1307
Posted: Mon Sep 08, 2014 7:57 pm
by JohnCrow
Glad you've got it working
Thanks for letting us know