|
Forum Index : Microcontroller and PC projects : Micromite eXtreme: V5.05.01
| Author | Message | ||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10627 |
Please find attached version V5.05.01 of the Micromite eXtreme (MMX) firmware. For the 100/144 pin parts: 2018-11-29_212107_MMX5.05.01.zip and for the 64-pin parts: 2018-11-29_212157_MMX645.05.01.zip updated manual: 2018-11-29_210840_Micromite_eXtreme_Manual.pdf This brings the numbering back in line with the MM2/MM+ The code contains the new GUI controls and the various bug fixes that Geoff has included in 5.05.01. It includes a new function and command MM.PERSIST. MM.PERSIST is an integer variable that is not affected by CPU RESTART or a watchdog restart. So you can assign a value to it. MM.PERSIST=123 then restart CPU RESTART then use the variable ? MM.PERSIST In addition it includes 2 new functions copied from the Armmite L4 which make date and time arithmetic much easier DATETIME$(n) Returns the date and time corresponding to the epoch number n (number of seconds that have elapsed since midnight GMT on January 1, 1970). The format of the returned string is “dd-mm-yyyy hh:mm:ss”. Use the text NOW to get the current datetime string, i.e. a$ = DATETIME$(NOW) EPOCH(DATETIME$) Returns the the epoch number (number of seconds that have elapsed since midnight GMT on January 1, 1970) for the supplied DATETIME$ string. The format for DATETIME$ is “dd-mm-yyyy hh:mm:ss”. Use NOW to get the epoch number for the current date and time, i.e. n% = EPOCH(NOW) an example of use to, for example, wait until midnight (00:00 tomorrow) irrespective of month and year changes and without needing any sort of calendar would be: n%=EPOCH(NOW)+86400 'get an epoch number for a time we know is tomorrow t$=left$(datetime$(n%),11)+"00:00:00" 'create a time string for midnight m%=EPOCH(t$) 'calculate the epoch number for midnight do loop while EPOCH(NOW) <= m% 'loop until we are at or past midnight |
||||
| PicFan Senior Member Joined: 18/03/2014 Location: AustriaPosts: 133 |
Hi Peter ! Many thanks and best regards from Austria ! Wolfgang |
||||
| cdeagle Senior Member Joined: 22/06/2014 Location: United StatesPosts: 266 |
Thanks Peter. |
||||
| circuit Senior Member Joined: 10/01/2016 Location: United KingdomPosts: 293 |
Peter, When I set MM.PERSIST = 123 it is accepted. Print MM.PERSIST returns 123. But when I reboot the value is back at zero. What might I be doing incorrectly? The chip is PIC32MZ20048EFH144-250/IPL and the firmware is v 5.05.04. It is a bit challenging searching back on the site for specific firmware; Geoff's site still points to V5.04.08 as the current firmware. Am I correct in thinking 5.05.04 is, in fact, the current firmware for this chip? Anything further on the horizon? |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10627 |
I suspect I removed it to save a command slot and mm.persist is just being treated as a normal variable. I have done a beta with a lot of the CMM2 performance enhancements but as the chips are pretty much unavailable at the moment haven't looked at it for ages. I would recommend sticking with 5.05.04 and putting up with any bugs/limitations |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |