alright i understand , but when i have multiple conditions in my main function , (such as : if ((P2IN & BIT2)==0) and i want to generate the 1pps when this condition becomes true and stops it when its false , although the ISR function cannot be placed in the main function - it's supposed to be outside the function , so how can i make that connection between the ISR function and the condition ? and how can i do that when i have multiple conditions?
↧