Page 1 of 1

DS3231 component

Posted: Thu Jan 19, 2017 7:01 pm
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.

Re: DS3231 component

Posted: Thu Jan 19, 2017 8:39 pm
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

Re: DS3231 component

Posted: Fri Jan 20, 2017 1:44 am
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?

Re: DS3231 component

Posted: Fri Jan 20, 2017 7:50 am
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

Re: DS3231 component

Posted: Fri Jan 20, 2017 3:39 pm
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.

Re: DS3231 component

Posted: Sun Jan 22, 2017 1:05 am
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!

Re: DS3231 component

Posted: Sun Jan 22, 2017 1:06 am
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!!

Re: DS3231 component

Posted: Mon Jan 23, 2017 1:00 pm
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.

Re: DS3231 component

Posted: Fri Feb 24, 2017 8:29 pm
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