Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 14:16 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 : CMM TIME$ Query

Author Message
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1106
Posted: 09:11am 01 Feb 2019
Copy link to clipboard 
Print this post

For geoffg (or anyone)

For the CMM:-

Will TIME$ = TIME$ set the RTC time to that of the CMM's internal clock?

I have done testing & I think it does.

I wish to reset the RTC periodically as an experiment because I think it is running fast. My program gets reset at midnight and loads the RTC time & date.

Thanks

Brian
ChopperP
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 09:37am 01 Feb 2019
Copy link to clipboard 
Print this post

Yes. To set the time on the attached Maxim DS1307 real time clock you use the standard commands in MMBasic for setting the time (TIME$ and DATE$). These set both the Maximite's internal clock and the DS1307. From then on MMBasic will automatically retrieve the current time and date on power up and set the Maximite's internal clock.

Geoff Graham - http://geoffg.net
 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1106
Posted: 10:17am 01 Feb 2019
Copy link to clipboard 
Print this post

Thanks Geoff.

I normally have MMEdit set the time & date on uploads so rarely use these commands directly.
Had me confused a bit with older documentation which mentions a different chip. Eventually found the correct procedure.

Brian
ChopperP
 
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