COUNTER
Posted: Fri Jun 01, 2007 9:19 am
Can you do a count of a button press in a main routine without it being reset back to zero.
Because i have a main routine and a count subrutine. being trigged by port b7 as interupt. The problem is the i can get the counter to count then get stuck in the count routine. or i set the loop to loop on button press it counts but when it exits back to the main routine the count gets reset. :)
Because i have a main routine and a count subrutine. being trigged by port b7 as interupt. The problem is the i can get the counter to count then get stuck in the count routine. or i set the loop to loop on button press it counts but when it exits back to the main routine the count gets reset. :)