problem in accessing registers of DS1307

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
waleedabbasi12
Posts: 9
Joined: Mon Sep 08, 2014 6:06 pm
Has thanked: 4 times

problem in accessing registers of DS1307

Post by waleedabbasi12 »

Is there any way i can access registers of rtc DS1307 in flowcode macros.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: problem in accessing registers of DS1307

Post 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.
1 in 10 people understand binary, the other one doesn't !

waleedabbasi12
Posts: 9
Joined: Mon Sep 08, 2014 6:06 pm
Has thanked: 4 times

Re: problem in accessing registers of DS1307

Post 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.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: problem in accessing registers of DS1307

Post 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
1 in 10 people understand binary, the other one doesn't !

waleedabbasi12
Posts: 9
Joined: Mon Sep 08, 2014 6:06 pm
Has thanked: 4 times

Re: problem in accessing registers of DS1307

Post by waleedabbasi12 »

Thank you. Its done.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: problem in accessing registers of DS1307

Post by JohnCrow »

Glad you've got it working
Thanks for letting us know
1 in 10 people understand binary, the other one doesn't !

Post Reply