Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:52 21 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 : Micromite eXtreme: V5.05.01

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10627
Posted: 11:12am 29 Nov 2018
Copy link to clipboard 
Print this post

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

Edited by matherp 2018-11-30
 
PicFan
Senior Member

Joined: 18/03/2014
Location: Austria
Posts: 133
Posted: 08:53pm 29 Nov 2018
Copy link to clipboard 
Print this post

Hi Peter !

Many thanks and best regards from Austria !

Wolfgang
 
cdeagle
Senior Member

Joined: 22/06/2014
Location: United States
Posts: 266
Posted: 09:21pm 29 Nov 2018
Copy link to clipboard 
Print this post

Thanks Peter.
 
circuit
Senior Member

Joined: 10/01/2016
Location: United Kingdom
Posts: 293
Posted: 09:27am 28 Jun 2022
Copy link to clipboard 
Print this post

  matherp said  Please find attached version V5.05.01 of the Micromite eXtreme (MMX) firmware.

updated manual:



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



<edited><editID>matherp</editID><editDate>43433.8903009259</editDate></edited>


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 Kingdom
Posts: 10627
Posted: 10:03am 28 Jun 2022
Copy link to clipboard 
Print this post

  Quote  What might I be doing incorrectly?

I suspect I removed it to save a command slot and mm.persist is just being treated as a normal variable.
  Quote  Anything further on the horizon?

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