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.
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 11:21am 11 Jul 2014
Copy link to clipboard
Print this post
hello,
I own a CGCOLORMAX 1 from Circuit Gizmo
I update software to MMBasic v4.5
how to have a RTC ?
function RTC SETTIME and RTC GETTIME dont work
Pierr, from France73s de F1FCO
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 11:29am 11 Jul 2014
Copy link to clipboard
Print this post
I find the solution :
time$="23:20:00"
date$="11/07/2014"
and when I boot the board, time and date are OK !!!
Pierre73s de F1FCO
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9489
Posted: 01:56pm 11 Jul 2014
Copy link to clipboard
Print this post
RTC GETTIME and RTC SETTIME are MicroMite commands, which won't work on the full size Maximite units, as you have discovered. Well done on working it out and posting back though. Smoke makes things work. When the smoke gets out, it stops!
f1fco Senior Member Joined: 18/03/2012 Location: FrancePosts: 155
Posted: 02:39am 12 Jul 2014
Copy link to clipboard
Print this post
RTC GETTIME and RTC SETTIME works also on a Maximite but with a PCF8563 RTC card
CGColorMax1 as a RTC DS1307 on board, (controled by I2C)
but with MMBasic version 4.5 date and time are read at boot
TIME$ and DATE$ are ok