|
Forum Index : Microcontroller and PC projects : CMM TIME$ Query
| Author | Message | ||||
Chopperp![]() Guru Joined: 03/01/2018 Location: AustraliaPosts: 1106 |
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: AustraliaPosts: 3308 |
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: AustraliaPosts: 1106 |
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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |