Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:53 12 Nov 2025 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 : MM.Basic suggestion

Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 09:05pm 08 Apr 2019
Copy link to clipboard 
Print this post

From what I can find in the data sheet the DS3231 does not have any useable memory so the RTC SETREG and RTC GETREG commands can only be used on the DS3232 which costs about AU$22.
The DS3231 module has the AT24V32 (32kBit EEPROM) on board (at least all the ones I have do). So a question for Geoff, would it be possible to incorporate twofingers code, or enough of it to save variables, into MM.Basic, it would be much more useful than RTC SETREG and RTC GETREG.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 08:16am 09 Apr 2019
Copy link to clipboard 
Print this post

The problem is that there are so many EEPROM chips (and other chips) that it is impossible to support them all within MMBasic. So I only put in support for the really popular functions like measuring temperature. The proper way to support this type of chip is with a CFunction but, from what I can remember, this has not been written yet for the AT24V32.

But, what is wrong with twofingers' code? You could load it into the library and it would then be part of your MMBasic. Easy.

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

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 08:35am 09 Apr 2019
Copy link to clipboard 
Print this post

Ah yes the Library, forgot about that.
Thanks Geoff.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025