![]() |
Forum Index : Microcontroller and PC projects : Count Inputs - ArmMite and/or Micromite - Interrupts
Author | Message | ||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1114 |
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 KingdomPosts: 10310 |
Check b12 ![]() |
||||
Tinine Guru ![]() Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
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: AustraliaPosts: 6283 |
'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 KingdomPosts: 4044 |
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: AustraliaPosts: 1114 |
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! |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |