On internet can seen countless simple example like the one below
void __interrupt() isr()
{
if(TMR1IF)
{Do something}
}
But does it work on self-defined variables? As an example, define a bool CurrentMeasurementReady
. I can't find similar examples to the one below.
void __interrupt() isr()
{
if(TMR1IF&&CurrentMeasurementReady)
{Do something}
}