DS3231 component

Please add any feature requests for Flowcode version 7 here

Moderator: Benj

Post Reply
MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

DS3231 component

Post by MJU »

In V6 Jordy101091 had made a DS3231 component. => http://www.matrixtsl.com/mmforums/viewt ... 58&t=14566
Why not include this in the V7 component library?

Now there is only a DS1307 simulation available in V7.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: DS3231 component

Post by medelec35 »

Hi MJU,
Did you know that code developed for DS1307 will work on DS3231?
So if got DS1307 you can use the injector for simulation, compile to target and DS3231 will work.

I agree it would be nice to see a RTC component like the superior DS3231.
Especially as they are very cheap and very accurate, since there is temperature compensated crystal.
Reason I stated DS3231 rather then DS1307 is dure to some extra functions.

Martin
Martin

MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Re: DS3231 component

Post by MJU »

medelec35 wrote:Hi MJU,
Did you know that code developed for DS1307 will work on DS3231?
So if got DS1307 you can use the injector for simulation, compile to target and DS3231 will work.

I agree it would be nice to see a RTC component like the superior DS3231.
Especially as they are very cheap and very accurate, since there is temperature compensated crystal.
Reason I stated DS3231 rather then DS1307 is dure to some extra functions.

Martin
Do you mean that by using the injector, if I compile it to the chip it will work?
What's the difference with a real component?

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: DS3231 component

Post by medelec35 »

Yes,
What I mean is, if you download a Flowchart created for DS1307 or develop your own using I2C.
If use DS1307 injector for simulation and all is working then the code will work on both DS1307 and DS3231 when sent to target device.
So if you have both DS1307 and DS3231 as a plug in module, either one will work on the same flowchart without any changes.

Hope that is clearer

Martin
Martin

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: DS3231 component

Post by Benj »

I've been meaning to tackle RTC for a while and this is quite a good opportunity. I'll have a go and see if we can get an official new component included in the upcoming release.

I've made a good start with support for the DS1307 and the DS3231 extra alarm registers but I have used the new component creation features in the latest developmental build so can't currently share with the forums until after the update has gone out.

MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Re: DS3231 component

Post by MJU »

Benj wrote: I have used the new component creation features in the latest developmental build
New component creation feature?? Tell us more? :-)

I'm really anxious to get my hand on the new RTC component :-)
Thanks for the reply!

MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Re: DS3231 component

Post by MJU »

medelec35 wrote:Yes,
What I mean is, if you download a Flowchart created for DS1307 or develop your own using I2C.
If use DS1307 injector for simulation and all is working then the code will work on both DS1307 and DS3231 when sent to target device.
So if you have both DS1307 and DS3231 as a plug in module, either one will work on the same flowchart without any changes.

Hope that is clearer

Martin
Thanks a lot Martin!!

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: DS3231 component

Post by Benj »

New component creation feature?? Tell us more? :-)
Previously when making a component that involved a CAL component then you had to jump through a lot of hoops in terms of creating new properties and then copying the property values back and forth between your component and the CAL component. It was a bit of a nightmare and easy to get wrong.

Now with the new features you simply right click the property you wish to expose in your component and select expose, job done.

Same goes for any component macros you want to expose in your component.
I'm really anxious to get my hand on the new RTC component :-)
The new component is done now and will be in the next build, sorry I can't release it sooner. Hopefully the new build is only a week or two away now.

I also want to have a crack at internal RTC support, I've started going through FCD files and adding XML headers for chips with internal RTC functionality but that's as far as I've got at the moment.

Docara
Posts: 315
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 28 times
Been thanked: 61 times
Contact:

Re: DS3231 component

Post by Docara »

Hi Ben,

I also want to have a crack at internal RTC support, I've started going through FCD files and adding XML headers for chips with internal RTC functionality but that's as far as I've got at the moment.
this is great news - I've said this elsewhere on the forum in the past, but I think this feature is long overdue especially as there is a clear need for a RTC as shown with the number of postings requiring help with the DS1307 (and similar) IC's etc.

Matt

Post Reply