I don't think it has anything to do with the LCD.Why you think that ISR is not called? From LCD?
I don't think it has anything to do with the LCD.Why you think that ISR is not called? From LCD?
XC8 v2.10Which version of XC8 are you using?
Which code standard are you using - C99?
Displayed stuff on the LCD, and after that connected a LED too.I ask about that how you know this ISR is not triggered?
void __interrupt() ISR() {
if (INTCONbits.INTF == 1) {
if (PORTDbits.RD6 == 1) {
if (sel[cursel] == 0) {
sel[cursel] = selmax[cursel];
}
else {
sel[cursel] = sel[cursel] - 1;
}
}
else {
if (sel[cursel] == selmax[cursel]) {
sel[cursel] = 0;
} else {
sel[cursel] = sel[cursel] + 1;
}
}
INTCONbits.INTF = 0;
}// if INTF==1
cd(); // CLEARS DISPLAY ON ANY INTERRUPT
__delay_ms(200);
}// IRQ service
