Joe G
Member
I'm finally starting to learn C, (got a picket3 from santa) When, in my interrupt, I check for the timer1 flag
like this:
if (PIR1bits.TMR1IF=1) // Timer 1
PIR1bits.TMR1IF = 0;
ADC_Init();
the flag gets set????? what am I doing wrong? I'm using mplab with a pic18lf26k80 in C
I'm also using timer0, which is ok
thanks
like this:
if (PIR1bits.TMR1IF=1) // Timer 1
PIR1bits.TMR1IF = 0;
ADC_Init();
the flag gets set????? what am I doing wrong? I'm using mplab with a pic18lf26k80 in C
I'm also using timer0, which is ok
thanks
Last edited: