Hai,
I cant make the external RB0 interrupt to work in PIC18F4520.
I just tried out a small code to test the interrupt alone and i found that interrupt on change is working but RB0 interrupt doesnt work. I tried all combination of INTCON registers.
Don't use lengthy code and delays inside ISR. In your ISR LCD data is displayed and within 200 ms it is cleared and so you don't see anything on the display.
Yea i know its not a good idea to use lengthy code and delays in interrupt. I dont use them in my program. i used here to test if the interrrupt is working. And found that its not entering the interrupt function.
Don't use lengthy code and delays inside ISR. In your ISR LCD data is displayed and within 200 ms it is cleared and so you don't see anything on the display.