Hmm, wouldn't the problem with that be that if I go into LPM to make a conversion, right after it completes I would simply go back into LPM because it is all situated in a while loop that continuously repeats to measure and display? Where would I get the chance to switch modes?
This is currently what I have in pseudocode:
while(newMode == 0) {
measure_and_display();
checkForNewMode();
}
where checkForNewMode goes into LPM after turning on the GPIO pin enables as well as the Timer_A to a certain amount. If the ISR for the GPIO pin is reached newMode is set to something other than zero. If the ISR for Timer_A is reached, nothing happens, newMode remains zero, and the while loop will continue again.
In this way I am able to keep measuring and displaying and after each time, there is a small window to push the button (I have already decided that the user would simply hold down the button until the LCD screen tells them that it is changing modes, as there is a chance that they push the button down when there is no interrupt for it (meaning in measure_and_display();). Can you let me know what you think of my current strategy, how it relates to what you were saying, as well as any notable issues that could arise?
Thanks,
Matt