The data gathering happens much more frequently and rapidly within the 1-minute window. The intent is to collect the data, and once the minute is up, manipulate it and ignore (ie disable) the data gathering low-pri ISR routine. Have actually implemented the codes and seems ok, but not sure if this is the right way to do things.
Hi kpatz, thks for the suggestion. Because the low-pri external event happens rapidly, clearing the interrupt flag within the ISR and hoping to disable the interrupt in the main routine do not always happen. There were cases where, before the main routine has the opportunity to disable the interrupt, the event happens again, and the ISR gets triggered. This may go on for a while. Hence, the idea to turn off the interrupt within the ISR to guarantee it will not be triggered again.