Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:20 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 : Count Inputs - ArmMite and/or Micromite - Interrupts

Author Message
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1114
Posted: 02:29am 06 Feb 2021
Copy link to clipboard 
Print this post

Ideally for an ArmMite H7 or a Micromite Extreme, does anyone know of a way to generate an interrupt when a specific count has been reached on a particular count input?

Alternatively, is there any way to pre-set a count input to a predetermined count then interrupt on count zero rollover?

I realise this might be achievable using TIMER but I would like to make use of the High Speed count input in the H7 if possible.

Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 05:01pm 08 Feb 2021
Copy link to clipboard 
Print this post

Check b12  
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 07:35pm 08 Feb 2021
Copy link to clipboard 
Print this post

FWIW: I have been using these with the E-100

The Click Board version is easier to come by.
Pretty sure it can be configured to suit if the cryptic "b12" (no clue what this is) doesn't work out.
Edited 2021-02-09 05:36 by Tinine
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:22pm 08 Feb 2021
Copy link to clipboard 
Print this post

'b12' refers to beta 12 for the CMM2.
The change is something that might eventually filter down to the other platforms.

In the meantime, what size of count and what frequency are you interested in.
A simple interrupt and software counter might be all that's required.

Jim
VK7JH
MMedit
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 08:57pm 08 Feb 2021
Copy link to clipboard 
Print this post

I download it and rename to (in this case) CMM2_V5.07.00b12.zip

Then extract and use. (If I've the time.)

John
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1114
Posted: 02:09am 09 Feb 2021
Copy link to clipboard 
Print this post

Thanks all for the responses - I have a need to count a 16.368MHz pulse train in the background ( non-blocking) with a latency of no more than two or three MMBasic statements between end of count and reading the count value.

Tinine's option of an external counter is another possible solution - thanks.

Peter's recent update of the high speed count capability in the CMM2 beta12 version of MMBasic is perfect for my project in that I can preset the counter to 16,368,000 MHz,  then interrupt on the count of zero and save other values in the interrupt routine.

My preferred option was to use the ArmMite H7 hence my question - hopefully, Peter may choose to port this functionality to the H7 at sometime later. Either way, I now have a workable option with the CMM2 - thanks very much Peter.

Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
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