Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:28 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 : MMX5.04.18: High speed frequency counter

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10572
Posted: 04:41pm 30 Aug 2018
Copy link to clipboard 
Print this post

Please find attached version 5.04.18 for the 100/144 pin chips

2018-08-31_022540_MMX5.04.18.zip

and the 64-pin chip

2018-08-31_022618_MMX645.04.18.zip

Manual

2018-08-31_024031_Micromite_eXtreme_Manual.pdf

This version includes various bug fixes as per MM+ 5.04.09 as well as new functionality supporting high speed counter/timer functionality. The idea for this is copied from code I developed for the the Armmite H7 but it works just as nicely on the MMX.

Notice how using the counter mode with a pause gives a slight over-count as the counter continues to increment whilst the pause and print statements are parsed and executed (34 uSec).

PAUSE statements in the MM2 greater than 2 milliseconds can be too short by anything between 0 and 1 milliseconds (0 and 500uSsec for the MM+). The MMX code corrects for this and pause statements will be exact other than the time taken to execute the statement.




Pins for the high speed counter are:

64-pin - 52 'NB conflicts with Mouse data
100-pin - 58 'NB conflicts with COM3-RX
144 pin - 80 'NB conflicts with COM3-RX



Edited by matherp 2018-09-01
 
PicFan
Senior Member

Joined: 18/03/2014
Location: Austria
Posts: 133
Posted: 10:53am 02 Sep 2018
Copy link to clipboard 
Print this post

Hi Peter !

Thanks for the new version and the new feature. I would have 2 questions please:

1.) I think the "CFunction CPUspeed" works only with the 28 and 44 pin MM right? I get with the mm + and the mm-extreme wrong values.

2.) The "CFunction InternalTempRead" does not work correctly with any version anymore?

Is that so, or is the mistake with me?

Thanks and best regards

Wolfgang

 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10572
Posted: 04:35pm 25 Sep 2018
Copy link to clipboard 
Print this post

Please find attached version 5.04.19 for the 100/144 pin chips

2018-09-26_023336_MMX5.04.19.zip

and the 64-pin chip

2018-09-26_023401_MMX645.04.19.zip

This fixes a serious bug in string handling found on the Armmite H7. This seems to relate to either a cacheing issue or a bug introduced in a recent compiler update as the bug does not occur on the MM2 or MM+ despite running identical code

This update is highly recommended!Edited by matherp 2018-09-27
 
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