Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:56 01 Aug 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 Firmware V5.03

     Page 1 of 3    
Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 02:34am 03 Feb 2017
Copy link to clipboard 
Print this post

After a long beta period V5.03 of the Micromite firmware is here. It can be downloaded from http://geoffg.net/micromite.html (scroll to the bottom of the page).

This is a major new release (the change log runs to three pages).

For the standard 28 and 44-pin Micromite there are a number of minor changes including bug fixes and faster updating of LCD display panels. For the 64 and 100-pin Micromite Plus there are many bug fixes and new features including:
- The ability to play WAV files and generate sine wave tones from 1Hz to 20KHz.
- Implement transparent text and the BLIT command which allows moving objects to be displayed over a background image.
- The ability to synchronise the update of an SSD1963 display to avoid flicker.

For the people who have been following the beta versions the changes since beta 10 are:
- Fixed a bug which caused VAL() to sometimes return a float when it should have returned an integer (thanks to Robert Rozee).
- Micromite Plus increased the maximum allowable number of subroutines and functions in a program to 200.
- Fixed a bug in EVAL() which caused it to fall over with long strings (thanks to Phil Dobber).
- Fixed a bug in ON ERROR SKIP which caused the variable table to be cleared when an error was skipped (thanks to Robert Rozee).

Details are in the Change Log and the user manuals which are included in the firmware download. The source for this version (plus Peter's eXtreme version) is available from http://mmbasic.com

Thanks to everyone who tested the beta versions, a lot of bugs were found and the final version is that much better.

Geoff
Geoff Graham - http://geoffg.net
 
led-bloon

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 207
Posted: 09:27am 03 Feb 2017
Copy link to clipboard 
Print this post

Thanks Geoff,
Now that you have some spare time on your hands, how about fixing
up your WEB site. A "Donate" button would finish it off perfectly!
Best Regards
don

Miss you George
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 11:03am 03 Feb 2017
Copy link to clipboard 
Print this post

not quite so quick! looks like my last couple of emails got lost in the post - there are still a couple of bugs in the new val() function relating specifically to non-decimal bases:

Print Val("&h123")
Print Val("&h456")
a$="789"
Print Val("&h"+a$)

> run
0
0
[5] Print Val("&h"+a$)
Error: Internal fault (sorry)
>


addendum:
looks you're missing an assignment to targ before carrying out the non-decimal conversions:
p = getCstring(ep);
targ = T_INT; // move this line from end of the function
if(*p == '&') {


(the else clause at the end of floating conversion is then not needed)


sorry,
rob :-)Edited by robert.rozee 2017-02-04
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 04:13pm 03 Feb 2017
Copy link to clipboard 
Print this post

Drat, it seems that every time I fix a bug I add another.

I have fixed this and updated the files on my website to V5.03.02

Thanks,
Geoff
Geoff Graham - http://geoffg.net
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 04:57am 04 Feb 2017
Copy link to clipboard 
Print this post

not quite so quick, again!

in editor.c, i believe the line:
for(p = txtp; p <= mark; p++) if(*p == '\n') nbrlines--;
is the cause of the most accursed editor bug.

it should instead read:
for(p = txtp; p < mark; p++) if(*p == '\n') nbrlines--;
in order to not decrement nbrlines in response to a CR character sitting right after (but still outside of) the block of marked text.


cheers,
rob :-)
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 12:24pm 04 Feb 2017
Copy link to clipboard 
Print this post

It would be good if that is the cause but it has been an elusive bug and I'm not sure that the solution will be easy. I am heading overseas again (Ottawa and Winnipeg) and I will have a crack at it when I get back.

Geoff
Geoff Graham - http://geoffg.net
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2950
Posted: 03:02pm 04 Feb 2017
Copy link to clipboard 
Print this post

Geoff,

Lucky you, sounds a nice trip..

Which version of 5.3 should we be using in the mean time?

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 04:43pm 04 Feb 2017
Copy link to clipboard 
Print this post

The current beta test has finished (see the first post in this thread) so you should use the version on my website (which currently is at 5.03.02). This is always the latest stable version so look there if you are unsure.

I plan to increment the last two digits whenever I fix bugs and increment the middle two digits for new features. This makes more sense than the old system.

Beta test versions are another story and may (usually do) contain bugs and I only post these on the Back Shed.

Geoff
Geoff Graham - http://geoffg.net
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2950
Posted: 04:59pm 04 Feb 2017
Copy link to clipboard 
Print this post

Thanks Geoff.

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 08:40pm 04 Feb 2017
Copy link to clipboard 
Print this post

You will only be about 370 miles north of me when you're in Ottawa. You could easily drive down here if you want to. We have a spare room and you would be more than welcome!

Give me a ring when you get to Ottawa if you feel like chatting. 845-226-9059.

HAVE A GOOD TRIP!

Paul in NY
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 09:52pm 04 Feb 2017
Copy link to clipboard 
Print this post

Ah, I'm staying with friends for a week and will not have a car. Would have been good though.

Geoff
Geoff Graham - http://geoffg.net
 
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 11:56pm 04 Feb 2017
Copy link to clipboard 
Print this post

That's too bad! I would have liked to meet you face to face. Give me a ring anyway and we'll chat for awhile. If it is costly for you to call from there I can call you back since I have unlimited phone service in the U.S. and Canada.

Paul
 
PicFan
Senior Member

Joined: 18/03/2014
Location: Austria
Posts: 133
Posted: 05:42am 05 Feb 2017
Copy link to clipboard 
Print this post

Thanks to all who worked on the micromites !

Greetings from Austria !

Wolfgang
 
Evbo
Newbie

Joined: 20/01/2017
Location: Australia
Posts: 2
Posted: 02:57am 06 Feb 2017
Copy link to clipboard 
Print this post

Hi I am a newby playing with explorer 64 upgraded to v 5.03
I too found V5.2 sleep mode consuming around 4 Milli amp and jumping to around 30 milli amp
In v5.03 this has now dropped to about 300 micro amp. I also have a RTC module
but have connected vdd, data and clock to a cd4066 latch. Reducing the current to
zero from the rtc when in sleep mode. The only problem I have with sleep is that every time
sleep is finished or is receiving an interrupt mmbasic restarts like a reset.
Not sure what is going on here. Any ideas please.
Reg evbo
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 11:58am 07 Feb 2017
Copy link to clipboard 
Print this post

You are visiting Ottawa and Winterpeg at this time of year? Take lots of warm clothes.
Visit Vegipete's *Mite Library for cool programs.
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1114
Posted: 12:41pm 07 Feb 2017
Copy link to clipboard 
Print this post

@evbo

Does SLEEP functionality work OK without the 4066 setup? Sounds like you might be getting some sort of drop or pulse on the 3.3 line to the mite when the 4066 brings the RTC back on line causing the reset. Can you monitor the power to the mite with a CRO?

Doug.
Edited by panky 2017-02-08
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
piclover
Senior Member

Joined: 14/06/2015
Location: France
Posts: 134
Posted: 08:20am 08 Feb 2017
Copy link to clipboard 
Print this post

@Geoff

I found a bug in v5.03.02: with v5.02 and all former versions, it was legal to pass a float to a function taking an integer as a parameter (an implicit float to integer conversion happened). Now, MMBASIC, without complaining about the parameter type, sets the parameter to 0 whenever a (non-zero) float is passed...

Simplified repro code:

OPTION EXPLICIT
DIM FLOAT presslog(24)

presslog(24)=1013
LogData(presslog(24))

SUB LogData(p AS INTEGER)
PRINT p
END SUB
This wrongly prints "0" instead of "1013"...

v5.03 breaks many of my programs because of this bug...

The workaround is to explicitly convert the passed parameter to an integer, i.e. LogData(INT(presslog(24))), but still, I think this should be fixed to revert to the old behaviour (implicit conversion)...Edited by piclover 2017-02-09
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 10:17am 08 Feb 2017
Copy link to clipboard 
Print this post

There is a section in the latest Micromite Manual on P36 under the heading of Mixing Floating Point and Integers . It may help you.

An easier way of converting your floats to integers if you have to change your programs may be to use the integer divide.

Using your example of LogData(presslog(24)) just put a \1 on the end.

LogData(presslog(24))\1

It's not as pretty but it sure saves adding more parentheses.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 05:25pm 08 Feb 2017
Copy link to clipboard 
Print this post

That is definitely not good. I did some work in that area for 5.3 and I am amazed that such a bog got through testing.

I will fix it (it will take a few weeks before I can get to it).

Geoff
Geoff Graham - http://geoffg.net
 
Evbo
Newbie

Joined: 20/01/2017
Location: Australia
Posts: 2
Posted: 11:46pm 08 Feb 2017
Copy link to clipboard 
Print this post

  panky said   @evbo

Does SLEEP functionality work OK without the 4066 setup? Sounds like you might be getting some sort of drop or pulse on the 3.3 line to the mite when the 4066 brings the RTC back on line causing the reset. Can you monitor the power to the mite with a CRO?

Doug.

Taken 4066 off and just have a bare bones exp 64. Sleep still resets. Also reflashed chip.
Put a different exp 64 and also tried a exp 100 both work fine with sleep
Must be something else. Have ordered another exp 64 if that works ok then it has to be something on this exp64. Power looks fine on the scope. At least I have 2 good
mmite-plus units. Will keep posted If I find something. Thanks
 
     Page 1 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025