Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:19 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : (DM) MMBASIC 4.x compatible RTC for DM

Author Message
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 12:08am 19 Feb 2013
Copy link to clipboard 
Print this post

Hi everyone.

Is there a way to add a DS1307 RTC chip to a DuinoMite in such a way that it will be used by MMBASIC 4.x for storing date & time ?

Or is there any chance that future MMBASIC releases will support a PCF8563 RTC connected on the UEXT i2c pins ?

Thanks a lot.
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 08:48am 20 Feb 2013
Copy link to clipboard 
Print this post

Hi

Search the forum
This has been done with both these chips

Regards
John
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 10:03am 20 Feb 2013
Copy link to clipboard 
Print this post

I could not find anything.

MMBASIC 4.x on the new Colour Maximite will save the time & date from TIME$ and DATE$ to the on-board DS1307 RTC clock and at startup will read the time & date from the RTC into the TIME$ and DATE$ variables.

The same thing happens on DuinoMite with the DMBASIC firmware where date & time will be saved to and read from a RTC chip connected to the UEXT connector.

What i am asking is - if i install the latest MMBASIC 4.x version on my DuinoMite, will MMBASIC be able to use my UEXT-connected PCF8563 RTC to automatically store & load the values for TIME$ and DATE$ ?

If using the UEXT RTC module is not possible, to which pins should i connect a RTC chip in order to have TIME$ and DATE$ set automatically, like on a Colour Maximite ?

I know that i can have some code to read the RTC & set TIME$ and DATE$ at startup in AUTORUN.BAS and that's what i'll do if MMBASIC won't be able to access a RTC connected on DuinoMite's pins directly

Thanks a lot !
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 10:11am 20 Feb 2013
Copy link to clipboard 
Print this post

On the 100-pin PIC32MX695 or PIC32MX695 the pins of interest for the RTC are pins 58 (SCL) and 59 (SCK).
Micromites and Maximites! - Beginning Maximite
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 10:43am 20 Feb 2013
Copy link to clipboard 
Print this post

Hi Sergiu,

Support for a RTC is not compiled into the Duinomite version of MMBasic because there is not a single standard for the chip type and interface. Your only solution is to modify the source to your requirements or add support into the auto run.has.

Geoff
Geoff Graham - http://geoffg.net
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 11:08am 20 Feb 2013
Copy link to clipboard 
Print this post

Thanks Geoff.

If you're thinking of adding RTC support to the next versions of MMBasic for DuinoMite, the most standard RTC chip for this purpose would be PFC8563 on the UEXT-connected MOD-RTC as built by Olimex: https://www.olimex.com/Products/Modules/Time/MOD-RTC/

Why i am saying "the most standard": all the sites selling Olimex's DuinoMite, are usually also stocking MOD-RTC (Mouser, Digikey & Dontronics certainly do) so a DuinoMite most likely will be bought together with a MOD-RTC board.

Thanks a lot !
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024